Changeset 261946 in webkit
- Timestamp:
- May 20, 2020, 1:14:23 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 41 deleted
- 43 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
LayoutTests/fast/dom/HTMLLinkElement/event-while-removing-attribute-expected.txt (modified) (1 diff)
-
LayoutTests/fast/dom/HTMLObjectElement/beforeload-set-text-crash-expected.txt (deleted)
-
LayoutTests/fast/dom/HTMLObjectElement/beforeload-set-text-crash.xhtml (deleted)
-
LayoutTests/fast/dom/HTMLScriptElement/async-onbeforeload-expected.txt (deleted)
-
LayoutTests/fast/dom/HTMLScriptElement/async-onbeforeload.html (deleted)
-
LayoutTests/fast/dom/HTMLScriptElement/defer-onbeforeload-expected.txt (deleted)
-
LayoutTests/fast/dom/HTMLScriptElement/defer-onbeforeload.html (deleted)
-
LayoutTests/fast/dom/HTMLScriptElement/move-in-beforeload-expected.txt (deleted)
-
LayoutTests/fast/dom/HTMLScriptElement/move-in-beforeload.html (deleted)
-
LayoutTests/fast/dom/HTMLScriptElement/remove-in-beforeload-expected.txt (deleted)
-
LayoutTests/fast/dom/HTMLScriptElement/remove-in-beforeload.html (deleted)
-
LayoutTests/fast/dom/beforeload (deleted)
-
LayoutTests/fast/events/constructors/before-load-event-constructor-expected.txt (deleted)
-
LayoutTests/fast/events/constructors/before-load-event-constructor.html (deleted)
-
LayoutTests/fast/events/event-attribute-expected.txt (modified) (1 diff)
-
LayoutTests/fast/events/event-handler-regions-layout-expected.txt (deleted)
-
LayoutTests/fast/events/event-handler-regions-layout.html (deleted)
-
LayoutTests/fast/frames/crash-display-none-iframe-during-onbeforeload-expected.txt (modified) (1 diff)
-
LayoutTests/fast/frames/didBecomeCurrentDocumentInFrame-crash-expected.txt (added)
-
LayoutTests/fast/frames/didBecomeCurrentDocumentInFrame-crash.html (added)
-
LayoutTests/fast/frames/restoring-page-cache-should-not-run-scripts-via-style-update-expected.txt (modified) (1 diff)
-
LayoutTests/fast/html/link-element-removal-during-beforeload-expected.txt (deleted)
-
LayoutTests/fast/html/link-element-removal-during-beforeload.html (deleted)
-
LayoutTests/fast/parser/document-write-fighting-eof-expected.txt (deleted)
-
LayoutTests/fast/parser/document-write-fighting-eof.html (deleted)
-
LayoutTests/fast/parser/document-write-partial-entity-before-load-expected.txt (deleted)
-
LayoutTests/fast/parser/document-write-partial-entity-before-load.html (deleted)
-
LayoutTests/fast/parser/remove-misnested-iframe-in-beforeload-expected.txt (deleted)
-
LayoutTests/fast/parser/remove-misnested-iframe-in-beforeload.html (deleted)
-
LayoutTests/fast/parser/remove-misnested-iframe-parent-in-beforeload-expected.txt (deleted)
-
LayoutTests/fast/parser/remove-misnested-iframe-parent-in-beforeload.html (deleted)
-
LayoutTests/fast/replaced/object-param-spaces-expected.txt (deleted)
-
LayoutTests/fast/replaced/object-param-spaces.html (deleted)
-
LayoutTests/fast/replaced/object-with-embed-url-param-expected.txt (deleted)
-
LayoutTests/fast/replaced/object-with-embed-url-param.html (deleted)
-
LayoutTests/fast/scrolling/marquee-scroll-crash-expected.txt (modified) (1 diff)
-
LayoutTests/fast/tokenizer/write-before-load-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/cache/cancel-during-revalidation-succeeded-expected.txt (deleted)
-
LayoutTests/http/tests/cache/cancel-during-revalidation-succeeded.html (deleted)
-
LayoutTests/http/tests/media/video-play-stall-before-meta-data-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/plugins/navigation-during-load-embed-expected.txt (deleted)
-
LayoutTests/http/tests/plugins/navigation-during-load-embed.html (deleted)
-
LayoutTests/http/tests/plugins/navigation-during-load-expected.txt (deleted)
-
LayoutTests/http/tests/plugins/navigation-during-load.html (deleted)
-
LayoutTests/http/tests/security/beforeload-iframe-client-redirect-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/beforeload-iframe-server-redirect-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-embed-tag-control-char-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-embed-tag-control-char.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-embed-tag-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-embed-tag-null-char-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-embed-tag-null-char.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-embed-tag.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-src-inject.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-tag-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-tag-javascript-url-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-tag-javascript-url.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/object-tag.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/resources/echo-object-src.pl (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/resources/utilities.js (modified) (1 diff)
-
LayoutTests/js/dom/constructor-length.html (modified) (1 diff)
-
LayoutTests/js/dom/modules/module-will-fire-beforeload-expected.txt (deleted)
-
LayoutTests/js/dom/modules/module-will-fire-beforeload.html (deleted)
-
LayoutTests/media/media-blocked-by-beforeload-expected.txt (deleted)
-
LayoutTests/media/media-blocked-by-beforeload.html (deleted)
-
LayoutTests/media/video-beforeload-remove-source-expected.txt (deleted)
-
LayoutTests/media/video-beforeload-remove-source.html (deleted)
-
LayoutTests/platform/glib/js/dom/constructor-length-expected.txt (modified) (1 diff)
-
LayoutTests/platform/gtk/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/ios-wk1/TestExpectations (modified) (2 diffs)
-
LayoutTests/platform/ios-wk2/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/ios/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/ios/js/dom/constructor-length-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/js/dom/constructor-length-expected.txt (modified) (1 diff)
-
LayoutTests/platform/win/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/win/js/dom/constructor-length-expected.txt (modified) (1 diff)
-
LayoutTests/platform/wincairo/js/dom/constructor-length-expected.txt (modified) (1 diff)
-
LayoutTests/platform/wk2/TestExpectations (modified) (1 diff)
-
LayoutTests/plugins/unsupported-plugin-with-replacement-in-iframe-crash-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/bindings/js/WebCoreBuiltinNames.h (modified) (1 diff)
-
Source/WebCore/dom/BeforeLoadEvent.idl (modified) (1 diff)
-
Source/WebCore/dom/Node.cpp (modified) (2 diffs)
-
Source/WebCore/page/RuntimeEnabledFeatures.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r261940 r261946 1 2020-05-20 Chris Dumez <cdumez@apple.com> 2 3 Disable support for BeforeLoadEvent 4 https://bugs.webkit.org/show_bug.cgi?id=212140 5 <rdar://problem/62847577> 6 7 Reviewed by Antti Koivisto. 8 9 * fast/frames/didBecomeCurrentDocumentInFrame-crash-expected.txt: Added. 10 * fast/frames/didBecomeCurrentDocumentInFrame-crash.html: Added. 11 Add layout test coverage for crash in <rdar://problem/62847577>. 12 13 * fast/dom/HTMLLinkElement/event-while-removing-attribute-expected.txt: 14 * fast/dom/HTMLObjectElement/beforeload-set-text-crash-expected.txt: Removed. 15 * fast/dom/HTMLObjectElement/beforeload-set-text-crash.xhtml: Removed. 16 * fast/dom/HTMLScriptElement/async-onbeforeload-expected.txt: Removed. 17 * fast/dom/HTMLScriptElement/async-onbeforeload.html: Removed. 18 * fast/dom/HTMLScriptElement/defer-onbeforeload-expected.txt: Removed. 19 * fast/dom/HTMLScriptElement/defer-onbeforeload.html: Removed. 20 * fast/dom/HTMLScriptElement/move-in-beforeload-expected.txt: Removed. 21 * fast/dom/HTMLScriptElement/move-in-beforeload.html: Removed. 22 * fast/dom/HTMLScriptElement/remove-in-beforeload-expected.txt: Removed. 23 * fast/dom/HTMLScriptElement/remove-in-beforeload.html: Removed. 24 * fast/dom/beforeload/cached-image-before-load-expected.txt: Removed. 25 * fast/dom/beforeload/cached-image-before-load.html: Removed. 26 * fast/dom/beforeload/clear-video-poster-in-beforeload-listener-expected.txt: Removed. 27 * fast/dom/beforeload/clear-video-poster-in-beforeload-listener.html: Removed. 28 * fast/dom/beforeload/flash-before-load-expected.txt: Removed. 29 * fast/dom/beforeload/flash-before-load.html: Removed. 30 * fast/dom/beforeload/frame-before-load-expected.txt: Removed. 31 * fast/dom/beforeload/frame-before-load.html: Removed. 32 * fast/dom/beforeload/image-before-load-expected.txt: Removed. 33 * fast/dom/beforeload/image-before-load-innerHTML-expected.txt: Removed. 34 * fast/dom/beforeload/image-before-load-innerHTML.html: Removed. 35 * fast/dom/beforeload/image-before-load.html: Removed. 36 * fast/dom/beforeload/image-object-before-load-expected.txt: Removed. 37 * fast/dom/beforeload/image-object-before-load-innerHTML-expected.txt: Removed. 38 * fast/dom/beforeload/image-object-before-load-innerHTML.html: Removed. 39 * fast/dom/beforeload/image-object-before-load.html: Removed. 40 * fast/dom/beforeload/image-removed-during-before-load-expected.txt: Removed. 41 * fast/dom/beforeload/image-removed-during-before-load.html: Removed. 42 * fast/dom/beforeload/link-before-load-expected.txt: Removed. 43 * fast/dom/beforeload/link-before-load.html: Removed. 44 * fast/dom/beforeload/pi-before-load-expected.txt: Removed. 45 * fast/dom/beforeload/pi-before-load.xhtml: Removed. 46 * fast/dom/beforeload/recursive-css-pi-before-load-expected.txt: Removed. 47 * fast/dom/beforeload/recursive-css-pi-before-load.html: Removed. 48 * fast/dom/beforeload/recursive-link-before-load-expected.txt: Removed. 49 * fast/dom/beforeload/recursive-link-before-load.html: Removed. 50 * fast/dom/beforeload/recursive-xsl-pi-before-load-expected.txt: Removed. 51 * fast/dom/beforeload/recursive-xsl-pi-before-load.html: Removed. 52 * fast/dom/beforeload/remove-bad-object-in-beforeload-listener-expected.txt: Removed. 53 * fast/dom/beforeload/remove-bad-object-in-beforeload-listener.html: Removed. 54 * fast/dom/beforeload/remove-flash-in-beforeload-listener-expected.txt: Removed. 55 * fast/dom/beforeload/remove-flash-in-beforeload-listener.html: Removed. 56 * fast/dom/beforeload/remove-frame-in-beforeload-listener-expected.txt: Removed. 57 * fast/dom/beforeload/remove-frame-in-beforeload-listener.html: Removed. 58 * fast/dom/beforeload/remove-image-in-beforeload-listener-expected.txt: Removed. 59 * fast/dom/beforeload/remove-image-in-beforeload-listener.html: Removed. 60 * fast/dom/beforeload/remove-link-in-beforeload-listener-expected.txt: Removed. 61 * fast/dom/beforeload/remove-link-in-beforeload-listener.html: Removed. 62 * fast/dom/beforeload/remove-script-in-beforeload-listener-expected.txt: Removed. 63 * fast/dom/beforeload/remove-script-in-beforeload-listener.html: Removed. 64 * fast/dom/beforeload/remove-video-in-beforeload-listener-expected.txt: Removed. 65 * fast/dom/beforeload/remove-video-in-beforeload-listener.html: Removed. 66 * fast/dom/beforeload/remove-video-poster-in-beforeload-listener-expected.txt: Removed. 67 * fast/dom/beforeload/remove-video-poster-in-beforeload-listener.html: Removed. 68 * fast/dom/beforeload/resources/content.xhtml: Removed. 69 * fast/dom/beforeload/resources/fail.css: Removed. 70 * fast/dom/beforeload/resources/fail.js: Removed. 71 * fast/dom/beforeload/resources/pass.css: Removed. 72 * fast/dom/beforeload/resources/print.js: Removed. 73 * fast/dom/beforeload/resources/test.xsl: Removed. 74 * fast/dom/beforeload/script-before-load-dynamic-expected.txt: Removed. 75 * fast/dom/beforeload/script-before-load-dynamic.html: Removed. 76 * fast/dom/beforeload/script-before-load-expected.txt: Removed. 77 * fast/dom/beforeload/script-before-load-xhtml-expected.txt: Removed. 78 * fast/dom/beforeload/script-before-load-xhtml.xhtml: Removed. 79 * fast/dom/beforeload/script-before-load.html: Removed. 80 * fast/dom/beforeload/video-before-load-expected.txt: Removed. 81 * fast/dom/beforeload/video-before-load.html: Removed. 82 * fast/events/constructors/before-load-event-constructor-expected.txt: Removed. 83 * fast/events/constructors/before-load-event-constructor.html: Removed. 84 * fast/events/event-attribute-expected.txt: 85 * fast/events/event-handler-regions-layout-expected.txt: Removed. 86 * fast/events/event-handler-regions-layout.html: Removed. 87 * fast/frames/crash-display-none-iframe-during-onbeforeload-expected.txt: 88 * fast/frames/restoring-page-cache-should-not-run-scripts-via-style-update-expected.txt: 89 * fast/html/link-element-removal-during-beforeload-expected.txt: Removed. 90 * fast/html/link-element-removal-during-beforeload.html: Removed. 91 * fast/parser/document-write-fighting-eof-expected.txt: Removed. 92 * fast/parser/document-write-fighting-eof.html: Removed. 93 * fast/parser/document-write-partial-entity-before-load-expected.txt: Removed. 94 * fast/parser/document-write-partial-entity-before-load.html: Removed. 95 * fast/parser/remove-misnested-iframe-in-beforeload-expected.txt: Removed. 96 * fast/parser/remove-misnested-iframe-in-beforeload.html: Removed. 97 * fast/parser/remove-misnested-iframe-parent-in-beforeload-expected.txt: Removed. 98 * fast/parser/remove-misnested-iframe-parent-in-beforeload.html: Removed. 99 * fast/replaced/object-param-spaces-expected.txt: Removed. 100 * fast/replaced/object-param-spaces.html: Removed. 101 * fast/scrolling/marquee-scroll-crash-expected.txt: 102 * fast/tokenizer/write-before-load-expected.txt: 103 * http/tests/security/beforeload-iframe-client-redirect-expected.txt: 104 * http/tests/security/beforeload-iframe-server-redirect-expected.txt: 105 * http/tests/security/xssAuditor/object-embed-tag-control-char-expected.txt: 106 * http/tests/security/xssAuditor/object-embed-tag-control-char.html: 107 * http/tests/security/xssAuditor/object-embed-tag-expected.txt: 108 * http/tests/security/xssAuditor/object-embed-tag-null-char-expected.txt: 109 * http/tests/security/xssAuditor/object-embed-tag-null-char.html: 110 * http/tests/security/xssAuditor/object-embed-tag.html: 111 * http/tests/security/xssAuditor/object-src-inject.html: 112 * http/tests/security/xssAuditor/object-tag-expected.txt: 113 * http/tests/security/xssAuditor/object-tag-javascript-url-expected.txt: 114 * http/tests/security/xssAuditor/object-tag-javascript-url.html: 115 * http/tests/security/xssAuditor/object-tag.html: 116 * http/tests/security/xssAuditor/resources/echo-intertag.pl: 117 * http/tests/security/xssAuditor/resources/echo-object-src.pl: 118 * http/tests/security/xssAuditor/resources/utilities.js: 119 (notifyDoneAfterReceivingLoaded): 120 (notifyDoneAfterReceivingBeforeloadFromIds): Deleted. 121 * plugins/unsupported-plugin-with-replacement-in-iframe-crash-expected.txt: 122 Update existing tests accordingly. 123 1 124 2020-05-20 Myles C. Maxfield <mmaxfield@apple.com> 2 125 -
trunk/LayoutTests/TestExpectations
r261859 r261946 1686 1686 [ Debug ] fast/loader/document-with-fragment-url-3.html [ Pass Timeout ] 1687 1687 [ Debug ] fast/loader/document-with-fragment-url-4.html [ Pass Timeout ] 1688 1689 webkit.org/b/110546 [ Debug ] fast/parser/document-write-fighting-eof.html [ Skip ]1690 webkit.org/b/110546 [ Debug ] fast/parser/document-write-partial-entity-before-load.html [ Skip ]1691 1688 1692 1689 webkit.org/b/85902 [ Debug ] fast/overflow/lots-of-sibling-inline-boxes.html [ Slow ] -
trunk/LayoutTests/fast/dom/HTMLLinkElement/event-while-removing-attribute-expected.txt
r216259 r261946 4 4 5 5 6 PASS Before load event handled for original link element.7 PASS Before load event handled for original link element.8 PASS Before load event handled for original link element.9 6 PASS successfullyParsed is true 10 7 -
trunk/LayoutTests/fast/events/event-attribute-expected.txt
r182046 r261946 4 4 5 5 6 cancelled onbeforeload async7 6 PASS /*img*/ typeof (element["onclick"]) is "function" 8 7 PASS /*img*/ typeof (element["oncontextmenu"]) is "function" -
trunk/LayoutTests/fast/frames/crash-display-none-iframe-during-onbeforeload-expected.txt
r186486 r261946 1 1 PASS if no crash or assert while loading the iframe. 2 -
trunk/LayoutTests/fast/frames/restoring-page-cache-should-not-run-scripts-via-style-update-expected.txt
r248591 r261946 1 1 This tests that pageshow event is fired before the object element loads when a document in the page cache is restored. 2 2 3 PASS 3 Running... -
trunk/LayoutTests/fast/scrolling/marquee-scroll-crash-expected.txt
r226491 r261946 1 Test passes if it does not crash. 1 marquee -
trunk/LayoutTests/fast/tokenizer/write-before-load-expected.txt
r61604 r261946 1 1 2 3 45 6 71 1 2 5 6 7 -
trunk/LayoutTests/http/tests/media/video-play-stall-before-meta-data-expected.txt
r158743 r261946 2 2 Test that stalling very early, while loading meta-data, stops delaying the load event. 3 3 4 EVENT(beforeload)5 4 EVENT(loadstart) 6 5 EVENT(stalled) -
trunk/LayoutTests/http/tests/security/beforeload-iframe-client-redirect-expected.txt
r259900 r261946 1 CONSOLE MESSAGE: http://127.0.0.1:8000/security/resources/client-redir.html?url=http://localhost:8000/security/resources/post-done.html2 1 This test produces output in the console. Only the initial URL should be logged. -
trunk/LayoutTests/http/tests/security/beforeload-iframe-server-redirect-expected.txt
r259900 r261946 1 CONSOLE MESSAGE: http://127.0.0.1:8000/resources/redirect.php?url=http://localhost:8000/security/resources/post-done.html2 1 This test produces output in the console. Only the initial URL should be logged. -
trunk/LayoutTests/http/tests/security/xssAuditor/object-embed-tag-control-char-expected.txt
r259900 r261946 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-control-char.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.2 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-control-char.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.3 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-control-char.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-control-char.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 2 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-control-char.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 3 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-control-char.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 4 4 -
trunk/LayoutTests/http/tests/security/xssAuditor/object-embed-tag-control-char.html
r176413 r261946 8 8 testRunner.setXSSAuditorEnabled(true); 9 9 testRunner.waitUntilDone(); 10 notifyDoneAfterReceiving BeforeloadFromIds(["object", "embed"]);10 notifyDoneAfterReceivingLoaded(); 11 11 } 12 12 </script> 13 13 </head> 14 14 <body> 15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-control-char.html& relay-target-ids-for-event=beforeload&q=<object id='object' name='plugin' type='application/x-webkit-test-netscape'><param name='movie' value='http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05' /><embed id='embed' name='plugin' type='application/x-webkit-test-netscape' src='http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05' /></object>">15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-control-char.html&wait-for-load=1&q=<object id='object' name='plugin' type='application/x-webkit-test-netscape'><param name='movie' value='http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05' /><embed id='embed' name='plugin' type='application/x-webkit-test-netscape' src='http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%05' /></object>"> 16 16 </iframe> 17 17 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/object-embed-tag-expected.txt
r259900 r261946 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.2 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.3 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 2 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 3 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 4 4 -
trunk/LayoutTests/http/tests/security/xssAuditor/object-embed-tag-null-char-expected.txt
r259900 r261946 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-null-char.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.2 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-null-char.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.3 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-null-char.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-null-char.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 2 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-null-char.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 3 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-null-char.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3Cembed%20id=%27embed%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%20src=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 4 4 -
trunk/LayoutTests/http/tests/security/xssAuditor/object-embed-tag-null-char.html
r176413 r261946 8 8 testRunner.setXSSAuditorEnabled(true); 9 9 testRunner.waitUntilDone(); 10 notifyDoneAfterReceiving BeforeloadFromIds(["object", "embed"]);10 notifyDoneAfterReceivingLoaded(); 11 11 } 12 12 </script> 13 13 </head> 14 14 <body> 15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-null-char.html& relay-target-ids-for-event=beforeload&q=<object id='object' name='plugin' type='application/x-webkit-test-netscape'><param name='movie' value='http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf' /><embed id='embed' name='plugin' type='application/x-webkit-test-netscape' src='http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf' /></object>">15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag-null-char.html&wait-for-load=1&q=<object id='object' name='plugin' type='application/x-webkit-test-netscape'><param name='movie' value='http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf' /><embed id='embed' name='plugin' type='application/x-webkit-test-netscape' src='http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/dummy.swf' /></object>"> 16 16 </iframe> 17 17 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/object-embed-tag.html
r176413 r261946 8 8 testRunner.setXSSAuditorEnabled(true); 9 9 testRunner.waitUntilDone(); 10 notifyDoneAfterReceiving BeforeloadFromIds(["object", "embed"]);10 notifyDoneAfterReceivingLoaded(); 11 11 } 12 12 </script> 13 13 </head> 14 14 <body> 15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag.html& relay-target-ids-for-event=beforeload&q=<object id='object' name='plugin' type='application/x-webkit-test-netscape'><param name='movie' value='http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf' /><embed id='embed' name='plugin' type='application/x-webkit-test-netscape' src='http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf' /></object>">15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-embed-tag.html&wait-for-load=1&q=<object id='object' name='plugin' type='application/x-webkit-test-netscape'><param name='movie' value='http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf' /><embed id='embed' name='plugin' type='application/x-webkit-test-netscape' src='http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf' /></object>"> 16 16 </iframe> 17 17 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/object-src-inject.html
r120174 r261946 8 8 testRunner.setXSSAuditorEnabled(true); 9 9 testRunner.waitUntilDone(); 10 notifyDoneAfterReceiving BeforeloadFromIds(["object"]);10 notifyDoneAfterReceivingLoaded(); 11 11 } 12 12 </script> 13 13 </head> 14 14 <body> 15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-object-src.pl? relay-target-ids-for-event=beforeload&q=http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf">15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-object-src.pl?wait-for-load=1&q=http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf"> 16 16 </iframe> 17 17 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/object-tag-expected.txt
r259900 r261946 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-tag.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.2 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-tag.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-tag.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 2 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-tag.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20name=%27plugin%27%20type=%27application/x-webkit-test-netscape%27%3E%3Cparam%20name=%27movie%27%20value=%27http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf%27%20/%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/object-tag-javascript-url-expected.txt
r259900 r261946 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-tag-javascript-url.html& relay-target-ids-for-event=beforeload&q=%3Cobject%20id=%27object%27%20data=%27javascript:alert(document.domain)%27%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header.1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-tag-javascript-url.html&wait-for-load=1&q=%3Cobject%20id=%27object%27%20data=%27javascript:alert(document.domain)%27%3E%3C/object%3E' because its source code was found within the request. The auditor was enabled because the server did not send an 'X-XSS-Protection' header. 2 2 -
trunk/LayoutTests/http/tests/security/xssAuditor/object-tag-javascript-url.html
r176413 r261946 8 8 testRunner.setXSSAuditorEnabled(true); 9 9 testRunner.waitUntilDone(); 10 notifyDoneAfterReceiving BeforeloadFromIds(["object"]);10 notifyDoneAfterReceivingLoaded(); 11 11 } 12 12 </script> 13 13 </head> 14 14 <body> 15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-tag-javascript-url.html& relay-target-ids-for-event=beforeload&q=<object id='object' data='javascript:alert(document.domain)'></object>">15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-tag-javascript-url.html&wait-for-load=1&q=<object id='object' data='javascript:alert(document.domain)'></object>"> 16 16 </iframe> 17 17 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/object-tag.html
r176413 r261946 8 8 testRunner.setXSSAuditorEnabled(true); 9 9 testRunner.waitUntilDone(); 10 notifyDoneAfterReceiving BeforeloadFromIds(["object"]);10 notifyDoneAfterReceivingLoaded(); 11 11 } 12 12 </script> 13 13 </head> 14 14 <body> 15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-tag.html& relay-target-ids-for-event=beforeload&q=<object id='object' name='plugin' type='application/x-webkit-test-netscape'><param name='movie' value='http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf' /></object>">15 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/object-tag.html&wait-for-load=1&q=<object id='object' name='plugin' type='application/x-webkit-test-netscape'><param name='movie' value='http://127.0.0.1:8000/security/xssAuditor/resources/dummy.swf' /></object>"> 16 16 </iframe> 17 17 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
r206809 r261946 79 79 print "<!DOCTYPE html>\n"; 80 80 print "<html>\n"; 81 if ($cgi->param(' relay-target-ids-for-event')) {81 if ($cgi->param('wait-for-load')) { 82 82 print "<script>\n"; 83 print "document.addEventListener('" . $cgi->param('relay-target-ids-for-event') . "', function(event) {\n";84 print " window.parent.postMessage( event.target.id, '*');\n";85 print "} , true);\n";83 print "onload = function() {\n"; 84 print " window.parent.postMessage('loaded', '*');\n"; 85 print "}\n"; 86 86 print "</script>\n"; 87 87 } -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/echo-object-src.pl
r66254 r261946 9 9 print "<!DOCTYPE html>\n"; 10 10 print "<html>\n"; 11 if ($cgi->param('relay-target-ids-for-event')) { 12 print "<script>\n"; 13 print "document.addEventListener('" . $cgi->param('relay-target-ids-for-event') . "', function(event) {\n"; 14 print " window.parent.postMessage(event.target.id, '*');\n"; 15 print "}, true);\n"; 16 print "</script>\n"; 17 } 11 print "<script>\n"; 12 print "onload = function() {\n"; 13 print " window.parent.postMessage('loaded', '*');\n"; 14 print "}\n"; 15 print "</script>\n"; 18 16 print "<body>\n"; 19 17 print "<object id=\"object\" name=\"plugin\" type=\"application/x-webkit-test-netscape\">\n"; -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/utilities.js
r205026 r261946 49 49 } 50 50 51 52 function notifyDoneAfterReceivingBeforeloadFromIds(ids) 51 function notifyDoneAfterReceivingLoaded() 53 52 { 54 var loadAttempted = 0;55 53 window.addEventListener("message", function(event) { 56 var index = ids.indexOf(event.data); 57 if (index == -1) 58 return; 59 60 loadAttempted = loadAttempted | (1 << index); 61 if (loadAttempted == (1 << ids.length) - 1) 54 if (event.data == "loaded") 62 55 testRunner.notifyDone(); 63 56 }, false); -
trunk/LayoutTests/js/dom/constructor-length.html
r205932 r261946 12 12 shouldBe('AutocompleteErrorEvent.length', '1'); 13 13 shouldBe('AnimationEvent.length', '1'); 14 shouldBe('BeforeLoadEvent.length', '1');15 14 shouldBe('Blob.length', '0'); 16 15 shouldBe('CloseEvent.length', '1'); -
trunk/LayoutTests/platform/glib/js/dom/constructor-length-expected.txt
r261701 r261946 8 8 FAIL AutocompleteErrorEvent.length should be 1. Threw exception ReferenceError: Can't find variable: AutocompleteErrorEvent 9 9 PASS AnimationEvent.length is 1 10 PASS BeforeLoadEvent.length is 111 10 PASS Blob.length is 0 12 11 PASS CloseEvent.length is 1 -
trunk/LayoutTests/platform/gtk/TestExpectations
r261922 r261946 1552 1552 webkit.org/b/89650 svg/W3C-SVG-1.1/struct-dom-06-b.svg [ Failure Pass ] 1553 1553 1554 webkit.org/b/89811 media/media-blocked-by-beforeload.html [ Failure Pass ]1555 1554 webkit.org/b/84856 media/media-controller-playback.html [ Crash Failure Timeout Pass ] 1556 1555 -
trunk/LayoutTests/platform/ios-wk1/TestExpectations
r261859 r261946 1557 1557 fast/block/nested-renderers.html [ Crash Pass ] 1558 1558 fast/box-shadow/box-shadow-with-zero-radius.html [ Pass ImageOnlyFailure ] 1559 fast/dom/HTMLObjectElement/beforeload-set-text-crash.xhtml [ Crash Pass ]1560 1559 fast/dom/URL-attribute-reflection.html [ Crash Pass ] 1561 1560 fast/dynamic/window-scrollbars-test.html [ Failure Pass ] … … 1885 1884 fast/canvas/canvas-createPattern-video-loading.html [ Skip ] 1886 1885 fast/canvas/canvas-createPattern-video-modify.html [ Skip ] 1887 fast/dom/beforeload/video-before-load.html [ Skip ]1888 1886 fast/dom/FileList-iterator.html [ Skip ] 1889 1887 fast/dom/HTMLAnchorElement/anchor-file-blob-download-no-extension.html [ Skip ] -
trunk/LayoutTests/platform/ios-wk2/TestExpectations
r261887 r261946 1169 1169 1170 1170 webkit.org/b/171957 fast/animation/request-animation-frame-time-unit.html [ Pass Failure ] 1171 1172 webkit.org/b/172772 [ Release ] http/tests/cache/cancel-during-revalidation-succeeded.html [ Skip ]1173 1171 1174 1172 webkit.org/b/172454 http/tests/navigation/statistics.html [ Pass Failure ] -
trunk/LayoutTests/platform/ios/TestExpectations
r261896 r261946 1755 1755 fast/preloader/image-srcset.html [ Failure ] 1756 1756 fast/replaced/invalid-object-with-fallback.html [ Failure ] 1757 fast/replaced/object-with-embed-url-param.html [ Failure ]1758 1757 fast/replaced/percent-height-in-anonymous-block.html [ Failure ] 1759 1758 fast/ruby/ruby-block-style-not-updated-with-before-after-content.html [ Failure ] -
trunk/LayoutTests/platform/ios/js/dom/constructor-length-expected.txt
r205932 r261946 8 8 FAIL AutocompleteErrorEvent.length should be 1. Threw exception ReferenceError: Can't find variable: AutocompleteErrorEvent 9 9 PASS AnimationEvent.length is 1 10 PASS BeforeLoadEvent.length is 111 10 PASS Blob.length is 0 12 11 PASS CloseEvent.length is 1 -
trunk/LayoutTests/platform/mac/js/dom/constructor-length-expected.txt
r205932 r261946 8 8 FAIL AutocompleteErrorEvent.length should be 1. Threw exception ReferenceError: Can't find variable: AutocompleteErrorEvent 9 9 PASS AnimationEvent.length is 1 10 PASS BeforeLoadEvent.length is 111 10 PASS Blob.length is 0 12 11 PASS CloseEvent.length is 1 -
trunk/LayoutTests/platform/win/TestExpectations
r261869 r261946 1058 1058 media/controls-drag-timebar.html [ Skip ] # Timeout 1059 1059 media/event-attributes.html [ Skip ] # Timeout 1060 media/media-blocked-by-beforeload.html [ Skip ] # Timeout1061 1060 media/media-captions.html [ Skip ] # Timeout 1062 1061 media/media-continues-playing-after-replace-source.html [ Skip ] # Timeout -
trunk/LayoutTests/platform/win/js/dom/constructor-length-expected.txt
r205932 r261946 8 8 FAIL AutocompleteErrorEvent.length should be 1. Threw exception ReferenceError: Can't find variable: AutocompleteErrorEvent 9 9 PASS AnimationEvent.length is 1 10 PASS BeforeLoadEvent.length is 111 10 PASS Blob.length is 0 12 11 PASS CloseEvent.length is 1 -
trunk/LayoutTests/platform/wincairo/js/dom/constructor-length-expected.txt
r229351 r261946 8 8 FAIL AutocompleteErrorEvent.length should be 1. Threw exception ReferenceError: Can't find variable: AutocompleteErrorEvent 9 9 PASS AnimationEvent.length is 1 10 PASS BeforeLoadEvent.length is 111 10 PASS Blob.length is 0 12 11 PASS CloseEvent.length is 1 -
trunk/LayoutTests/platform/wk2/TestExpectations
r261103 r261946 278 278 # These tests use Flash, which is not a good idea, because it is not installed on all machines that run tests. 279 279 # WebKitTestRunner detects attempts to use Flash, and raises an assertion. 280 fast/dom/beforeload/flash-before-load.html [ Skip ]281 fast/dom/beforeload/remove-flash-in-beforeload-listener.html [ Skip ]282 280 fast/loader/sandboxed-plugin-crash.html [ Skip ] 283 281 plugins/hidden-iframe-with-swf-plugin.html [ Skip ] -
trunk/LayoutTests/plugins/unsupported-plugin-with-replacement-in-iframe-crash-expected.txt
r259900 r261946 1 1 CONSOLE MESSAGE: 1. Updating the layout with an embed object inside an iframe 2 CONSOLE MESSAGE: 2. beforeload for the object fires and dirties the style tree3 2 CONSOLE MESSAGE: Tried to use an unsupported plug-in. 4 3 CONSOLE MESSAGE: 3. Updated layout. The test passed. -
trunk/Source/WebCore/ChangeLog
r261941 r261946 1 2020-05-20 Chris Dumez <cdumez@apple.com> 2 3 Disable support for BeforeLoadEvent 4 https://bugs.webkit.org/show_bug.cgi?id=212140 5 <rdar://problem/62847577> 6 7 Reviewed by Antti Koivisto. 8 9 Disable support for BeforeLoadEvent. Other browsers do not support it and 10 Chrome dropped it shortly after the fork: 11 - https://bugs.chromium.org/p/chromium/issues/detail?id=333318 12 13 This is a synchronous event and therefore very dangerous. 14 15 Test: fast/frames/didBecomeCurrentDocumentInFrame-crash.html 16 17 * bindings/js/WebCoreBuiltinNames.h: 18 * dom/BeforeLoadEvent.idl: 19 * dom/Node.cpp: 20 (WebCore::Node::dispatchBeforeLoadEvent): 21 * page/RuntimeEnabledFeatures.h: 22 (WebCore::RuntimeEnabledFeatures::setLegacyBeforeLoadEventEnabled): 23 (WebCore::RuntimeEnabledFeatures::legacyBeforeLoadEventEnabled const): 24 1 25 2020-05-20 Zalan Bujtas <zalan@apple.com> 2 26 -
trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h
r261845 r261946 53 53 macro(AuthenticatorAttestationResponse) \ 54 54 macro(AuthenticatorResponse) \ 55 macro(BeforeLoadEvent) \ 55 56 macro(BlobEvent) \ 56 57 macro(Cache) \ -
trunk/Source/WebCore/dom/BeforeLoadEvent.idl
r207215 r261946 26 26 27 27 [ 28 Constructor(DOMString type, optional BeforeLoadEventInit eventInitDict) 28 Constructor(DOMString type, optional BeforeLoadEventInit eventInitDict), 29 EnabledAtRuntime=LegacyBeforeLoadEvent 29 30 ] interface BeforeLoadEvent : Event { 30 31 readonly attribute DOMString url; -
trunk/Source/WebCore/dom/Node.cpp
r260762 r261946 65 65 #include "RenderTextControl.h" 66 66 #include "RenderView.h" 67 #include "RuntimeEnabledFeatures.h" 67 68 #include "SVGElement.h" 68 69 #include "ScopedEventQueue.h" … … 2411 2412 bool Node::dispatchBeforeLoadEvent(const String& sourceURL) 2412 2413 { 2414 if (!RuntimeEnabledFeatures::sharedFeatures().legacyBeforeLoadEventEnabled()) 2415 return true; 2416 2413 2417 if (!document().hasListenerType(Document::BEFORELOAD_LISTENER)) 2414 2418 return true; -
trunk/Source/WebCore/page/RuntimeEnabledFeatures.h
r261074 r261946 360 360 bool cssLogicalEnabled() const { return m_CSSLogicalEnabled; } 361 361 362 void setLegacyBeforeLoadEventEnabled(bool isEnabled) { m_legacyBeforeLoadEventEnabled = isEnabled; } 363 bool legacyBeforeLoadEventEnabled() const { return m_legacyBeforeLoadEventEnabled; } 364 362 365 void setLineHeightUnitsEnabled(bool isEnabled) { m_lineHeightUnitsEnabled = isEnabled; } 363 366 bool lineHeightUnitsEnabled() const { return m_lineHeightUnitsEnabled; } … … 632 635 bool m_needsInAppBrowserPrivacyQuirks { false }; 633 636 637 bool m_legacyBeforeLoadEventEnabled { false }; 638 634 639 #if ENABLE(ACCESSIBILITY_ISOLATED_TREE) 635 640 bool m_accessibilityIsolatedTree { false };
Note:
See TracChangeset
for help on using the changeset viewer.