2010-12-23 Anders Carlsson <andersca@apple.com>
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Dec 2010 18:16:02 +0000 (18:16 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Dec 2010 18:16:02 +0000 (18:16 +0000)
commit2a9f7c1d0f4f67b8ea67e2697b5765f65300ce01
tree104cee3b389929db56d4909d2ee53b9d5d7d36b0
parent37fd60c6386f58065ec0e980cba2f2d50a55f060
2010-12-23  Anders Carlsson  <andersca@apple.com>

        Reviewed by John Sullivan.

        Nothing happens clicking "launch live player" on live.cnn.com
        https://bugs.webkit.org/show_bug.cgi?id=51540
        <rdar://problem/8791086>

        Implement NPN_PushPopupsEnabledState/NPN_PopPopupsEnabledState.

        * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
        (WebKit::NPN_PushPopupsEnabledState):
        Call NetscapePlugin::pushPopupsEnabledState.

        (WebKit::NPN_PopPopupsEnabledState):
        Call NetscapePlugin::popPopupsEnabledState.

        * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
        (WebKit::NetscapePlugin::pushPopupsEnabledState):
        Append the boolean to the vector.

        (WebKit::NetscapePlugin::popPopupsEnabledState):
        Remove the last boolean from the vector.

        (WebKit::NetscapePlugin::allowPopups):
        Return the last boolean from the vector.

        * WebProcess/Plugins/Netscape/NetscapePlugin.h:
        * WebProcess/Plugins/PluginView.cpp:
        (WebKit::PluginView::performJavaScriptURLRequest):
        Update the "allowPopupsFromPlugin" state.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@74564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2/ChangeLog
WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp
WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.h
WebKit2/WebProcess/Plugins/PluginView.cpp