Changeset 88677 in webkit


Ignore:
Timestamp:
Jun 13, 2011 1:07:53 PM (13 years ago)
Author:
andersca@apple.com
Message:

2011-06-13 Anders Carlsson <andersca@apple.com>

Reviewed by Dan Bernstein.

BankID plug-in isn't instantiated correctly
https://bugs.webkit.org/show_bug.cgi?id=62588
<rdar://problem/9586600>

  • Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm: (WebKit::NetscapePluginModule::determineQuirks): The BankID plug-in uses the QuickDraw drawing model but doesn't draw anything so we can use the half-baked QuickDraw support.
  • WebProcess/Plugins/PluginProcessConnection.cpp: (WebKit::defaultSyncMessageTimeout): Don't use a sync message timeout for the BankID plug-in since it sends synchronous Apple Events and we don't want the plug-in to die while it's waiting for a reply.
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r88669 r88677  
     12011-06-13  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        BankID plug-in isn't instantiated correctly
     6        https://bugs.webkit.org/show_bug.cgi?id=62588
     7        <rdar://problem/9586600>
     8
     9        * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
     10        (WebKit::NetscapePluginModule::determineQuirks):
     11        The BankID plug-in uses the QuickDraw drawing model but doesn't draw anything so we can
     12        use the half-baked QuickDraw support.
     13
     14        * WebProcess/Plugins/PluginProcessConnection.cpp:
     15        (WebKit::defaultSyncMessageTimeout):
     16        Don't use a sync message timeout for the BankID plug-in since it sends synchronous Apple Events
     17        and we don't want the plug-in to die while it's waiting for a reply.
     18
    1192011-06-13  Chris Fleizach  <cfleizach@apple.com>
    220
  • trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm

    r87945 r88677  
    442442        m_pluginQuirks.add(PluginQuirks::AllowHalfBakedQuickDrawSupport);
    443443    }
     444
     445    if (plugin.bundleIdentifier == "com.jattesaker.macid2.NPPlugin") {
     446        // The BankID plug-in uses QuickDraw but doesn't paint or receive events
     447        // so we'll allow it to be instantiated even though we don't support QuickDraw.
     448        m_pluginQuirks.add(PluginQuirks::AllowHalfBakedQuickDrawSupport);
     449    }
    444450#endif
    445451}
  • trunk/Source/WebKit2/WebProcess/Plugins/PluginProcessConnection.cpp

    r88048 r88677  
    5959    if (pathGetFileName(pluginPath) == "SharePointBrowserPlugin.plugin")
    6060        return CoreIPC::Connection::NoTimeout;
    61    
     61
     62    // We don't want a message timeout for the BankID plug-in since it can spin a nested
     63    // run loop when it's waiting for a reply to an AppleEvent.
     64    if (pathGetFileName(pluginPath) == "PersonalPlugin.bundle")
     65        return CoreIPC::Connection::NoTimeout;
     66
    6267    return syncMessageTimeout;
    6368}
Note: See TracChangeset for help on using the changeset viewer.