Changeset 190826 in webkit


Ignore:
Timestamp:
Oct 9, 2015 3:48:39 PM (9 years ago)
Author:
andersca@apple.com
Message:

Remove hack that allowed plug-ins to always take over certain image formats
https://bugs.webkit.org/show_bug.cgi?id=149972

Reviewed by Tim Horton.

This hack was added 8 years ago to allow a certain plug-in to show multi-page TIFF images on uspto.gov.
We now support said TIFFs natively, and the plug-in has been discontinued so it's safe to get rid of this.

  • loader/SubframeLoader.cpp:

(WebCore::SubframeLoader::shouldUsePlugin): Deleted.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r190820 r190826  
     12015-10-09  Anders Carlsson  <andersca@apple.com>
     2
     3        Remove hack that allowed plug-ins to always take over certain image formats
     4        https://bugs.webkit.org/show_bug.cgi?id=149972
     5
     6        Reviewed by Tim Horton.
     7
     8        This hack was added 8 years ago to allow a certain plug-in to show multi-page TIFF images on uspto.gov.
     9        We now support said TIFFs natively, and the plug-in has been discontinued so it's safe to get rid of this.
     10
     11        * loader/SubframeLoader.cpp:
     12        (WebCore::SubframeLoader::shouldUsePlugin): Deleted.
     13
    1142015-10-09  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/Source/WebCore/loader/SubframeLoader.cpp

    r190338 r190826  
    375375    }
    376376
    377     // Allow other plug-ins to win over QuickTime because if the user has installed a plug-in that
    378     // can handle TIFF (which QuickTime can also handle) they probably intended to override QT.
    379     if (m_frame.page() && (mimeType == "image/tiff" || mimeType == "image/tif" || mimeType == "image/x-tiff")) {
    380         String pluginName = m_frame.page()->pluginData().pluginNameForWebVisibleMimeType(mimeType);
    381         if (!pluginName.isEmpty() && !pluginName.contains("QuickTime", false))
    382             return true;
    383     }
    384        
    385377    ObjectContentType objectType = m_frame.loader().client().objectContentType(url, mimeType, shouldPreferPlugInsForImages);
    386378    // If an object's content can't be handled and it has no fallback, let
Note: See TracChangeset for help on using the changeset viewer.