haikuwebkit/LayoutTests/plugins/npp-set-window-called-durin...

3 lines
157 B
Plaintext
Raw Permalink Normal View History

Unreviewed gardening after r104803. Remove unnecessary "line 0" from expected files. * fast/dom/exception-getting-event-handler-expected.txt: * fast/dom/javascript-url-exception-isolation-expected.txt: * fast/dom/nested-script-exceptions-expected.txt: * fast/events/window-onerror13-expected.txt: * fast/events/window-onerror16-expected.txt: * fast/js/global-recursion-on-full-stack-expected.txt: * fast/js/uncaught-exception-line-number-expected.txt: * fast/xmlhttprequest/xmlhttprequest-recursive-sync-event-expected.txt: * http/tests/appcache/404-resource-expected.txt: * http/tests/appcache/manifest-redirect-expected.txt: * http/tests/appcache/origin-quota-expected.txt: * http/tests/appcache/resource-redirect-2-expected.txt: * http/tests/appcache/resource-redirect-expected.txt: * http/tests/appcache/wrong-signature-2-expected.txt: * http/tests/appcache/wrong-signature-expected.txt: * http/tests/history/cross-origin-replace-history-object-child-expected.txt: * http/tests/inspector/appcache/appcache-manifest-with-non-existing-file-expected.txt: * http/tests/loading/cross-origin-XHR-willLoadRequest-expected.txt: * http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked-expected.txt: * http/tests/security/cross-frame-access-getOwnPropertyDescriptor-expected.txt: * http/tests/security/mixedContent/insecure-plugin-in-iframe-expected.txt: * http/tests/security/window-onerror-exception-in-iframe-expected.txt: * http/tests/security/xss-DENIED-defineProperty-expected.txt: * http/tests/security/xss-eval-expected.txt: * http/tests/xmlhttprequest/workers/shared-worker-access-control-basic-get-fail-non-simple-expected.txt: * inspector/console/alert-toString-exception-expected.txt: * platform/qt/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-expected.txt: * platform/qt/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body-expected.txt: * platform/qt/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny-expected.txt: * platform/qt/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt: * platform/qt/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt: * platform/qt/http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt: * platform/qt/http/tests/security/contentSecurityPolicy/xsl-img-blocked-expected.txt: * platform/qt/http/tests/security/cross-frame-access-put-expected.txt: * platform/qt/http/tests/security/xss-DENIED-xsl-document-securityOrigin-expected.txt: * platform/qt/http/tests/security/xssAuditor/script-tag-with-fancy-unicode-expected.txt: * platform/qt/plugins/document-open-expected.txt: * platform/qt/plugins/plugin-initiate-popup-window-expected.txt: * plugins/keyboard-events-expected.txt: * plugins/mouse-events-expected.txt: * plugins/mouse-events-fixedpos-expected.txt: * plugins/nested-plugin-objects-expected.txt: * plugins/netscape-destroy-plugin-script-objects-expected.txt: * plugins/npp-set-window-called-during-destruction-expected.txt: * storage/sql-error-codes-expected.txt: * storage/statement-error-callback-expected.txt: * storage/transaction-callback-exception-crash-expected.txt: Canonical link: https://commits.webkit.org/92972@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-01-12 12:19:21 +00:00
CONSOLE MESSAGE: PLUGIN: Success: NPP_SetWindow was called during plugin destruction
Pass NPP_SetWindow a null window handle during plugin destruction on non-Mac platforms This matches WebKit1. Fixes <http://webkit.org/b/47009> WebKit2 needs to call NPP_SetWindow when destroying a plugin Reviewed by Anders Carlsson. Source/WebKit2: * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: (WebKit::NetscapePlugin::destroy): Null out our NPWindow's window handle and pass it to NPP_SetWindow (unless we're on Mac). Tools: Test that NPP_SetWindow is passed a null window handle during plugin destruction on non-Mac platforms * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp: (pluginLogWithArguments): Moved code to format and log the message here... (pluginLog): ...from here. * DumpRenderTree/TestNetscapePlugIn/PluginObject.h: Added pluginLogWithArguments. * DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp: (PluginTest::log): Added. Calls through to pluginLogWithArguments. * DumpRenderTree/TestNetscapePlugIn/PluginTest.h: Added log. * DumpRenderTree/TestNetscapePlugIn/Tests/NPPSetWindowCalledDuringDestruction.cpp: Added. (NPPSetWindowCalledDuringDestruction::setWillBeDestroyed): Records that destruction is about to begin. (NPPSetWindowCalledDuringDestruction::NPPSetWindowCalledDuringDestruction): Simple constructor. (NPPSetWindowCalledDuringDestruction::NPP_GetValue): Creates and returns a ScriptObject that can be used to invoke our setWillBeDestroyed function. (NPPSetWindowCalledDuringDestruction::NPP_SetWindow): Records what has happened (and logs if anything unexpected happens). (NPPSetWindowCalledDuringDestruction::NPP_Destroy): On Mac, logs a failure message if NPP_SetWindow was called during destruction. On other platforms, logs a failure message if NPP_SetWindow was *not* called during destruction. (NPPSetWindowCalledDuringDestruction::ScriptObject::hasMethod): Return true for our only method, setWillBeDestroyed. (NPPSetWindowCalledDuringDestruction::ScriptObject::invoke): Call through to the PluginTest object. * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: * GNUmakefile.am: Added new test. * Scripts/old-run-webkit-tests: Skip the new test when using out-of-process plugins with WebKit1 on Mac, since it can't work properly due to <http://webkit.org/b/58077>. LayoutTests: Test that NPP_SetWindow is passed a null window handle during plugin destruction on non-Mac platforms * platform/win-wk2/Skipped: Removed a test that no longer crashes thanks to this fix. * plugins/npp-set-window-called-during-destruction-expected.txt: Added. * plugins/npp-set-window-called-during-destruction.html: Added. * platform/mac/plugins/npp-set-window-called-during-destruction-expected.txt: Added. This is different from the cross-platform results because we don't expect NPP_SetWindow to be called during destruction. * platform/win/plugins/npp-set-window-called-during-destruction-expected.txt: Added. This is a copy of the cross-platform results, needed to override the Mac-specific results. Canonical link: https://commits.webkit.org/73078@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-04-08 16:00:38 +00:00
This tests whether a NPP_SetWindow is called during plugin destruction.