Changeset 209746 in webkit


Ignore:
Timestamp:
Dec 12, 2016, 4:37:40 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

Remove unused workaround for Silverlight
https://bugs.webkit.org/show_bug.cgi?id=165773

Patch by Alex Christensen <achristensen@webkit.org> on 2016-12-12
Reviewed by Dean Jackson.

  • Plugins/WebNetscapePluginView.mm:

(-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]): Deleted.
This code was introduced in January 2010. Microsoft fixed their bug shortly thereafter.
Allowing 6 years for users to update Silverlight is more than enough.
Safari doesn't even use WebKit1 for this any more.
I need this to be removed because this is the only non-WebGL code that needs to link against
the OpenGL framework, and I'm changing how that is done to link only through ANGLE instead.

Location:
trunk/Source/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r209733 r209746  
     12016-12-12  Alex Christensen  <achristensen@webkit.org>
     2
     3        Remove unused workaround for Silverlight
     4        https://bugs.webkit.org/show_bug.cgi?id=165773
     5
     6        Reviewed by Dean Jackson.
     7
     8        * Plugins/WebNetscapePluginView.mm:
     9        (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]): Deleted.
     10        This code was introduced in January 2010.  Microsoft fixed their bug shortly thereafter.
     11        Allowing 6 years for users to update Silverlight is more than enough.
     12        Safari doesn't even use WebKit1 for this any more.
     13        I need this to be removed because this is the only non-WebGL code that needs to link against
     14        the OpenGL framework, and I'm changing how that is done to link only through ANGLE instead.
     15
    1162016-12-12  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebKit/mac/Plugins/WebNetscapePluginView.mm

    r209683 r209746  
    8787#define LoginWindowDidSwitchToUserNotification      @"WebLoginWindowDidSwitchToUserNotification"
    8888#define WKNVSupportsCompositingCoreAnimationPluginsBool 74656  /* TRUE if the browser supports hardware compositing of Core Animation plug-ins  */
    89 static const int WKNVSilverlightFullscreenPerformanceIssueFixed = 7288546; /* TRUE if Siverlight addressed its underlying  bug in <rdar://problem/7288546> */
    9089
    9190using namespace WebCore;
     
    22372236}
    22382237
    2239 // Work around Silverlight full screen performance issue by maintaining an accelerated GL pixel format.
    2240 // We can safely remove it at some point in the future when both:
    2241 // 1) Microsoft releases a genuine fix for 7288546.
    2242 // 2) Enough Silverlight users update to the new Silverlight.
    2243 // For now, we'll distinguish older broken versions of Silverlight by asking the plug-in if it resolved its full screen badness.
    2244 - (void)_workaroundSilverlightFullscreenBug:(BOOL)initializedPlugin
    2245 {
    2246     ASSERT(_isSilverlight);
    2247     NPBool isFullscreenPerformanceIssueFixed = 0;
    2248     NPPluginFuncs *pluginFuncs = [_pluginPackage.get() pluginFuncs];
    2249     if (pluginFuncs->getvalue && pluginFuncs->getvalue(plugin, static_cast<NPPVariable>(WKNVSilverlightFullscreenPerformanceIssueFixed), &isFullscreenPerformanceIssueFixed) == NPERR_NO_ERROR && isFullscreenPerformanceIssueFixed)
    2250         return;
    2251    
    2252     static CGLPixelFormatObj pixelFormatObject = 0;
    2253     static unsigned refCount = 0;
    2254    
    2255     if (initializedPlugin) {
    2256         refCount++;
    2257         if (refCount == 1) {
    2258             const CGLPixelFormatAttribute attributes[] = { kCGLPFAAccelerated, static_cast<CGLPixelFormatAttribute>(0) };
    2259             GLint npix;
    2260             CGLChoosePixelFormat(attributes, &pixelFormatObject, &npix);
    2261         } 
    2262     } else {
    2263         ASSERT(pixelFormatObject);
    2264         refCount--;
    2265         if (!refCount)
    2266             CGLReleasePixelFormat(pixelFormatObject);
    2267     }
    2268 }
    2269 
    22702238- (NPError)_createPlugin
    22712239{
     
    22842252    NPError npErr = [_pluginPackage.get() pluginFuncs]->newp((char *)[_MIMEType.get() cString], plugin, _mode, argsCount, cAttributes, cValues, NULL);
    22852253    [[self class] setCurrentPluginView:nil];
    2286     if (_isSilverlight)
    2287         [self _workaroundSilverlightFullscreenBug:YES];
    22882254    LOG(Plugins, "NPP_New: %d", npErr);
    22892255    return npErr;
     
    22922258- (void)_destroyPlugin
    22932259{
    2294     if (_isSilverlight)
    2295         [self _workaroundSilverlightFullscreenBug:NO];
    2296    
    22972260    NPError npErr;
    22982261    npErr = ![_pluginPackage.get() pluginFuncs]->destroy(plugin, NULL);
Note: See TracChangeset for help on using the changeset viewer.