Changeset 272607 in webkit
- Timestamp:
- Feb 9, 2021, 1:21:26 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 131 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/events/popup-blocked-from-unique-frame-via-window-open-named-sibling-frame-expected.txt (modified) (1 diff)
-
LayoutTests/fast/events/popup-blocked-from-unique-frame-via-window-open-named-sibling-frame.html (modified) (1 diff)
-
LayoutTests/fast/events/popup-when-select-change-expected.txt (modified) (1 diff)
-
LayoutTests/fast/events/popup-when-select-change.html (modified) (1 diff)
-
LayoutTests/fast/events/resize-subframe-expected.txt (modified) (1 diff)
-
LayoutTests/fast/events/resize-subframe.html (modified) (1 diff)
-
LayoutTests/fast/forms/autofocus-in-sandbox-with-allow-scripts-expected.txt (modified) (1 diff)
-
LayoutTests/fast/forms/autofocus-in-sandbox-with-allow-scripts.html (modified) (1 diff)
-
LayoutTests/fast/frames/resources/navigate-top-by-name-to-fail.html (modified) (1 diff)
-
LayoutTests/fast/frames/sandboxed-iframe-navigation-top-by-name-denied-expected.txt (modified) (1 diff)
-
LayoutTests/fast/frames/sandboxed-iframe-parsing-space-characters-expected.txt (modified) (1 diff)
-
LayoutTests/fast/frames/sandboxed-iframe-parsing-space-characters.html (modified) (1 diff)
-
LayoutTests/fast/frames/sandboxed-iframe-scripting-02-expected.txt (modified) (1 diff)
-
LayoutTests/fast/frames/sandboxed-iframe-scripting-02.html (modified) (1 diff)
-
LayoutTests/http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html (modified) (4 diffs)
-
LayoutTests/http/tests/cookies/third-party-cookie-relaxing-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/history/cross-origin-replace-history-object-child-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/history/cross-origin-replace-history-object-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-child-iframe.html (modified) (2 diffs)
-
LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-iframe.html (modified) (1 diff)
-
LayoutTests/http/tests/misc/frame-default-enc-different-domain-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/misc/frame-default-enc-same-domain-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/misc/resources/frame-default-enc-frame.html (modified) (1 diff)
-
LayoutTests/http/tests/plugins/resources/third-party-cookie-accept-policy-iframe.html (modified) (2 diffs)
-
LayoutTests/http/tests/plugins/third-party-cookie-accept-policy-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/embed-redirect-allowed-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/embed-redirect-allowed2-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-cross-origin-load-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/iframe-allowed-when-loaded-via-javascript-url-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/iframe-inside-csp-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-child-src-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-child-src2-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-frame-src-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-frame-src2-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/object-redirect-allowed-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/object-redirect-allowed2-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/object-src-does-not-affect-child-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/resources/alert-fail.html (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/resources/alert-fail.js (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/resources/alert-pass.html (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/resources/alert-pass.js (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandboxed-eval.php (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header-control-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-report-only-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrades-mixed-content-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/cross-frame-access-put-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/cross-origin-js-prompt-forbidden-expected.txt (added)
-
LayoutTests/http/tests/security/cross-origin-js-prompt-forbidden.html (added)
-
LayoutTests/http/tests/security/data-url-inline.css-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/data-url-inline.css.html (modified) (1 diff)
-
LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessor-iframe.html (modified) (1 diff)
-
LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessor-opened-frame.html (modified) (1 diff)
-
LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-subframe-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/drag-drop-different-origin-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/drag-drop-local-file-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/drag-drop-same-unique-origin-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-websocket.html (modified) (3 diffs)
-
LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-iframe-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-main-frame-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/no-indexeddb-from-sandbox-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/no-indexeddb-from-sandbox.html (modified) (1 diff)
-
LayoutTests/http/tests/security/no-popup-from-sandbox-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/no-popup-from-sandbox-top-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/no-popup-from-sandbox-top.html (modified) (1 diff)
-
LayoutTests/http/tests/security/no-popup-from-sandbox.html (modified) (1 diff)
-
LayoutTests/http/tests/security/popup-allowed-by-sandbox-when-allowed-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/popup-allowed-by-sandbox-when-allowed.html (modified) (1 diff)
-
LayoutTests/http/tests/security/resources/cross-frame-iframe-for-put-test.html (modified) (2 diffs)
-
LayoutTests/http/tests/security/resources/cross-origin-js-prompt-forbidden.html (added)
-
LayoutTests/http/tests/security/resources/drag-drop-allowed.html (modified) (1 diff)
-
LayoutTests/http/tests/security/resources/drag-drop.html (modified) (1 diff)
-
LayoutTests/http/tests/security/resources/sandboxed-iframe-ALLOWED-modals-iframe.html (added)
-
LayoutTests/http/tests/security/same-origin-different-domain-js-prompt-forbidden-expected.txt (added)
-
LayoutTests/http/tests/security/same-origin-different-domain-js-prompt-forbidden.html (added)
-
LayoutTests/http/tests/security/sandboxed-iframe-ALLOWED-modals.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xss-DENIED-window-index-assign-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xss-DENIED-window-index-assign.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xss-DENIED-window-name-alert-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xss-DENIED-window-name-alert.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/base-href-control-char-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/base-href-direct-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/base-href-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/base-href-null-char-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/base-href-safe-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/base-href-safe2-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/base-href-safe3-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/base-href-scheme-relative-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/cached-frame-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/cached-frame.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/cookie-injection-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/data-urls-work-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/data-urls-work.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/dom-write-innerHTML-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/dom-write-innerHTML.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/form-action-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/formaction-on-button-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/formaction-on-input-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/javascript-link-safe-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/javascript-link-safe.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/property-escape-noquotes-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/property-escape-noquotes-tab-slash-chars-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/property-escape-noquotes-tab-slash-chars.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/property-escape-noquotes.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/property-inject-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/property-inject.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/resources/base-href/really-safe-script.js (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/resources/base-href/safe-script.js (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl (modified) (4 diffs)
-
LayoutTests/http/tests/security/xssAuditor/resources/javascript-link-safe.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/resources/nph-cached.pl (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/resources/safe-script-noquotes.js (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/resources/safe-script.js (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/resources/script-tag-safe2.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/script-tag-near-start-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/script-tag-near-start.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/script-tag-safe2-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/script-tag-safe2.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/script-tag-safe3-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/script-tag-safe3.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/script-tag-src-redirect-safe-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/script-tag-with-injected-comment-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/script-tag-with-injected-comment.html (modified) (1 diff)
-
LayoutTests/http/tests/security/xssAuditor/script-tag-with-source-same-host-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-sync-expected.txt (modified) (1 diff)
-
LayoutTests/platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt (modified) (1 diff)
-
LayoutTests/plugins/fullscreen-plugins-dont-reload-expected.txt (modified) (1 diff)
-
LayoutTests/plugins/plugin-document-back-forward-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/DOMWindow.cpp (modified) (3 diffs)
-
Source/WebCore/page/SecurityOrigin.h (modified) (1 diff)
-
Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r272600 r272607 1 2021-02-09 Chris Dumez <cdumez@apple.com> 2 3 Disallow alert/confirm/prompt in cross-origin-domain subframes 4 https://bugs.webkit.org/show_bug.cgi?id=221568 5 6 Reviewed by Geoff Garen. 7 8 Add layout test coverage and update existing tests to stop using alert() in cross-origin iframes. 9 10 * fast/events/popup-blocked-from-unique-frame-via-window-open-named-sibling-frame-expected.txt: 11 * fast/events/popup-blocked-from-unique-frame-via-window-open-named-sibling-frame.html: 12 * fast/events/popup-when-select-change-expected.txt: 13 * fast/events/popup-when-select-change.html: 14 * fast/events/resize-subframe-expected.txt: 15 * fast/events/resize-subframe.html: 16 * fast/forms/autofocus-in-sandbox-with-allow-scripts-expected.txt: 17 * fast/forms/autofocus-in-sandbox-with-allow-scripts.html: 18 * fast/frames/resources/navigate-top-by-name-to-fail.html: 19 * fast/frames/sandboxed-iframe-navigation-top-by-name-denied-expected.txt: 20 * http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html: 21 * http/tests/cookies/third-party-cookie-relaxing-expected.txt: 22 * http/tests/history/cross-origin-replace-history-object-child-expected.txt: 23 * http/tests/history/cross-origin-replace-history-object-expected.txt: 24 * http/tests/history/resources/cross-origin-replaces-history-object-child-iframe.html: 25 * http/tests/history/resources/cross-origin-replaces-history-object-iframe.html: 26 * http/tests/plugins/resources/third-party-cookie-accept-policy-iframe.html: 27 * http/tests/plugins/third-party-cookie-accept-policy-expected.txt: 28 * http/tests/security/contentSecurityPolicy/embed-redirect-allowed-expected.txt: 29 * http/tests/security/contentSecurityPolicy/embed-redirect-allowed2-expected.txt: 30 * http/tests/security/contentSecurityPolicy/frame-src-cross-origin-load-expected.txt: 31 * http/tests/security/contentSecurityPolicy/iframe-allowed-when-loaded-via-javascript-url-expected.txt: 32 * http/tests/security/contentSecurityPolicy/iframe-inside-csp-expected.txt: 33 * http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-child-src-expected.txt: 34 * http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-child-src2-expected.txt: 35 * http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-frame-src-expected.txt: 36 * http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-frame-src2-expected.txt: 37 * http/tests/security/contentSecurityPolicy/object-redirect-allowed-expected.txt: 38 * http/tests/security/contentSecurityPolicy/object-redirect-allowed2-expected.txt: 39 * http/tests/security/contentSecurityPolicy/resources/alert-fail.html: 40 * http/tests/security/contentSecurityPolicy/resources/alert-fail.js: 41 (catch): 42 * http/tests/security/contentSecurityPolicy/resources/alert-pass.html: 43 * http/tests/security/contentSecurityPolicy/resources/alert-pass.js: 44 (catch): 45 * http/tests/security/contentSecurityPolicy/resources/sandbox.php: 46 * http/tests/security/contentSecurityPolicy/resources/sandboxed-eval.php: 47 * http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header-control-expected.txt: 48 * http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header-expected.txt: 49 * http/tests/security/contentSecurityPolicy/sandbox-report-only-expected.txt: 50 * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt: 51 * http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrades-mixed-content-expected.txt: 52 * http/tests/security/cross-origin-js-prompt-forbidden-expected.txt: Added. 53 * http/tests/security/cross-origin-js-prompt-forbidden.html: Added. 54 * http/tests/security/dataURL/resources/foreign-domain-data-url-accessor-iframe.html: 55 * http/tests/security/dataURL/resources/foreign-domain-data-url-accessor-opened-frame.html: 56 * http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-subframe-expected.txt: 57 * http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open-expected.txt: 58 * http/tests/security/mixedContent/resources/frame-with-insecure-websocket.html: 59 * http/tests/security/mixedContent/websocket/insecure-websocket-in-iframe-expected.txt: 60 * http/tests/security/resources/cross-origin-js-prompt-forbidden.html: Added. 61 * http/tests/security/same-origin-different-domain-js-prompt-forbidden-expected.txt: Added. 62 * http/tests/security/same-origin-different-domain-js-prompt-forbidden.html: Added. 63 * http/tests/security/xssAuditor/base-href-control-char-expected.txt: 64 * http/tests/security/xssAuditor/base-href-direct-expected.txt: 65 * http/tests/security/xssAuditor/base-href-expected.txt: 66 * http/tests/security/xssAuditor/base-href-null-char-expected.txt: 67 * http/tests/security/xssAuditor/base-href-safe-expected.txt: 68 * http/tests/security/xssAuditor/base-href-safe2-expected.txt: 69 * http/tests/security/xssAuditor/base-href-safe3-expected.txt: 70 * http/tests/security/xssAuditor/base-href-scheme-relative-expected.txt: 71 * http/tests/security/xssAuditor/cached-frame-expected.txt: 72 * http/tests/security/xssAuditor/cached-frame.html: 73 * http/tests/security/xssAuditor/cookie-injection-expected.txt: 74 * http/tests/security/xssAuditor/data-urls-work-expected.txt: 75 * http/tests/security/xssAuditor/data-urls-work.html: 76 * http/tests/security/xssAuditor/dom-write-innerHTML-expected.txt: 77 * http/tests/security/xssAuditor/dom-write-innerHTML.html: 78 * http/tests/security/xssAuditor/form-action-expected.txt: 79 * http/tests/security/xssAuditor/formaction-on-button-expected.txt: 80 * http/tests/security/xssAuditor/formaction-on-input-expected.txt: 81 * http/tests/security/xssAuditor/javascript-link-safe-expected.txt: 82 * http/tests/security/xssAuditor/javascript-link-safe.html: 83 * http/tests/security/xssAuditor/property-escape-noquotes-expected.txt: 84 * http/tests/security/xssAuditor/property-escape-noquotes-tab-slash-chars-expected.txt: 85 * http/tests/security/xssAuditor/property-escape-noquotes-tab-slash-chars.html: 86 * http/tests/security/xssAuditor/property-escape-noquotes.html: 87 * http/tests/security/xssAuditor/property-inject-expected.txt: 88 * http/tests/security/xssAuditor/property-inject.html: 89 * http/tests/security/xssAuditor/resources/base-href/really-safe-script.js: 90 * http/tests/security/xssAuditor/resources/base-href/safe-script.js: 91 * http/tests/security/xssAuditor/resources/echo-intertag.pl: 92 * http/tests/security/xssAuditor/resources/javascript-link-safe.html: 93 * http/tests/security/xssAuditor/resources/nph-cached.pl: 94 * http/tests/security/xssAuditor/resources/safe-script-noquotes.js: 95 * http/tests/security/xssAuditor/resources/safe-script.js: 96 * http/tests/security/xssAuditor/resources/script-tag-safe2.html: 97 * http/tests/security/xssAuditor/script-tag-near-start-expected.txt: 98 * http/tests/security/xssAuditor/script-tag-near-start.html: 99 * http/tests/security/xssAuditor/script-tag-safe2-expected.txt: 100 * http/tests/security/xssAuditor/script-tag-safe2.html: 101 * http/tests/security/xssAuditor/script-tag-safe3-expected.txt: 102 * http/tests/security/xssAuditor/script-tag-safe3.html: 103 * http/tests/security/xssAuditor/script-tag-src-redirect-safe-expected.txt: 104 * http/tests/security/xssAuditor/script-tag-with-injected-comment-expected.txt: 105 * http/tests/security/xssAuditor/script-tag-with-injected-comment.html: 106 * http/tests/security/xssAuditor/script-tag-with-source-same-host-expected.txt: 107 * platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt: 108 1 109 2021-02-09 Peng Liu <peng.liu6@apple.com> 2 110 -
trunk/LayoutTests/fast/events/popup-blocked-from-unique-frame-via-window-open-named-sibling-frame-expected.txt
r267644 r272607 1 CONSOLE MESSAGE: Unsafe JavaScript attempt to initiate navigation for frame with URL 'about:blank' from frame with URL 'data:text/html,<script> alert(window.open('about:blank', 'A') ?%20'FAIL'%20:%20'PASS');%3C/script%3E'. The frame attempting navigation is neither same-origin with the target, nor is it the target's parent or opener.1 CONSOLE MESSAGE: Unsafe JavaScript attempt to initiate navigation for frame with URL 'about:blank' from frame with URL 'data:text/html,<script>console.log(window.open('about:blank', 'A') ?%20'FAIL'%20:%20'PASS');%3C/script%3E'. The frame attempting navigation is neither same-origin with the target, nor is it the target's parent or opener. 2 2 3 ALERT: PASS3 CONSOLE MESSAGE: PASS 4 4 -
trunk/LayoutTests/fast/events/popup-blocked-from-unique-frame-via-window-open-named-sibling-frame.html
r269236 r272607 12 12 <body> 13 13 <iframe name="A"></iframe> 14 <iframe name="B" src="data:text/html,<script> alert(window.open('about:blank', 'A') ? 'FAIL' : 'PASS');</script>"></iframe>14 <iframe name="B" src="data:text/html,<script>console.log(window.open('about:blank', 'A') ? 'FAIL' : 'PASS');</script>"></iframe> 15 15 </body> 16 16 </html> -
trunk/LayoutTests/fast/events/popup-when-select-change-expected.txt
r61941 r272607 1 ALERT: PASSED1 CONSOLE MESSAGE: PASSED 2 2 If the pop-up was not blocked then there will be an PASS message. Otherwise, the test fails. 3 3 -
trunk/LayoutTests/fast/events/popup-when-select-change.html
r269236 r272607 39 39 <select onchange="onpopup()" id="control1"><option value="0">abcd</option><option value="0">efgh</option></select> 40 40 If the pop-up was not blocked then there will be an PASS message. Otherwise, the test fails. 41 <form id="form" action="data:text/html,<script> alert('PASSED')</script>" target="target">41 <form id="form" action="data:text/html,<script>console.log('PASSED')</script>" target="target"> 42 42 <input id="control2" type="submit" value="Submit to new window"/> 43 43 </form> -
trunk/LayoutTests/fast/events/resize-subframe-expected.txt
r28371 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/fast/events/resize-subframe.html
r120792 r272607 19 19 if (window.testRunner) 20 20 { 21 alert('PASS');21 console.log('PASS'); 22 22 testRunner.notifyDone(); 23 23 } -
trunk/LayoutTests/fast/forms/autofocus-in-sandbox-with-allow-scripts-expected.txt
r267644 r272607 1 ALERT: INPUT1 CONSOLE MESSAGE: INPUT 2 2 This test passes if the activeElement is the input element rather than the body (which it would be if the sandbox didn't allow autofocus although allow-scripts flag is set). -
trunk/LayoutTests/fast/forms/autofocus-in-sandbox-with-allow-scripts.html
r221193 r272607 6 6 (which it would be if the sandbox didn't allow autofocus although allow-scripts flag is set). 7 7 <iframe sandbox="allow-scripts allow-modals" 8 src="data:text/html,<input autofocus onfocus><script>window.onload = function() { alert(document.activeElement.tagName) }</script>"></iframe>8 src="data:text/html,<input autofocus onfocus><script>window.onload = function() { console.log(document.activeElement.tagName) }</script>"></iframe> -
trunk/LayoutTests/fast/frames/resources/navigate-top-by-name-to-fail.html
r56591 r272607 1 1 <script> 2 2 if (window.open("fail-and-notify-done.html", "target")) 3 alert("FAIL");3 console.log("FAIL"); 4 4 if (window.open("fail-and-notify-done.html", "_top")) 5 alert("FAIL");5 console.log("FAIL"); 6 6 if (window.open("fail-and-notify-done.html", "_parent")) 7 alert("FAIL");7 console.log("FAIL"); 8 8 if (window.open("fail-and-notify-done.html", "_blank")) 9 alert("FAIL");10 alert("PASS");9 console.log("FAIL"); 10 console.log("PASS"); 11 11 </script> -
trunk/LayoutTests/fast/frames/sandboxed-iframe-navigation-top-by-name-denied-expected.txt
r259900 r272607 7 7 8 8 CONSOLE MESSAGE: Blocked opening 'fail-and-notify-done.html' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set. 9 ALERT: PASS9 CONSOLE MESSAGE: PASS 10 10 This test verifies that a sandboxed IFrame cannot navigate the top-level frame without allow-top-navigation. This test passes if the navigation does not occur. 11 11 -
trunk/LayoutTests/fast/frames/sandboxed-iframe-parsing-space-characters-expected.txt
r267644 r272607 1 ALERT: PASS: Form feed is a delimiter.1 CONSOLE MESSAGE: PASS: Form feed is a delimiter. 2 2 CONSOLE MESSAGE: Error while parsing the 'sandbox' attribute: 'allow-scripts 3 3 allow-forms' is an invalid sandbox flag. 4 CONSOLE MESSAGE: Blocked script execution in 'data:text/html,<script> alert('FAIL: Vertical tab is not a delimiter.');</script>' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.5 ALERT: PASS: Newline is a delimiter.6 ALERT: PASS: Return is a delimiter.4 CONSOLE MESSAGE: Blocked script execution in 'data:text/html,<script>console.log('FAIL: Vertical tab is not a delimiter.');</script>' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. 5 CONSOLE MESSAGE: PASS: Newline is a delimiter. 6 CONSOLE MESSAGE: PASS: Return is a delimiter. 7 7 CONSOLE MESSAGE: Error while parsing the 'sandbox' attribute: 'allow-scriptsxallow-forms' is an invalid sandbox flag. 8 CONSOLE MESSAGE: Blocked script execution in 'data:text/html,<script> alert('FAIL: x is not a delimiter.');</script>' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.9 ALERT: PASS: Tab is a delimiter.10 ALERT: PASS: Space is a delimiter character.8 CONSOLE MESSAGE: Blocked script execution in 'data:text/html,<script>console.log('FAIL: x is not a delimiter.');</script>' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. 9 CONSOLE MESSAGE: PASS: Tab is a delimiter. 10 CONSOLE MESSAGE: PASS: Space is a delimiter character. 11 11 This tests whether we correct parse various space characters in the sandbox attribute. 12 12 -
trunk/LayoutTests/fast/frames/sandboxed-iframe-parsing-space-characters.html
r221193 r272607 26 26 var iframe = document.createElement('iframe'); 27 27 iframe.sandbox = policy; 28 iframe.src = "data:text/html,<script> alert('" + message + "');<\/script>";28 iframe.src = "data:text/html,<script>console.log('" + message + "');<\/script>"; 29 29 iframe.onload = next; 30 30 document.body.appendChild(iframe); -
trunk/LayoutTests/fast/frames/sandboxed-iframe-scripting-02-expected.txt
r145993 r272607 1 ALERT: PASS: Executed script in data URL1 CONSOLE MESSAGE: PASS: Executed script in data URL 2 2 Verify that sandboxed frames with sandbox='allow-scripts' can execute script from data: URLs. 3 3 -
trunk/LayoutTests/fast/frames/sandboxed-iframe-scripting-02.html
r221193 r272607 25 25 <body> 26 26 <iframe sandbox="allow-same-origin allow-scripts allow-modals" 27 src="data:text/html,<script> alert('PASS: Executed script in data URL');window.parent.postMessage({'pass': true}, '*');</script>">27 src="data:text/html,<script>console.log('PASS: Executed script in data URL');window.parent.postMessage({'pass': true}, '*');</script>"> 28 28 </iframe> 29 29 <script> -
trunk/LayoutTests/http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html
r205854 r272607 19 19 return; 20 20 } else 21 alert("Unknown message.");21 console.log("Unknown message."); 22 22 } 23 23 … … 32 32 function showCookies() 33 33 { 34 alert("Test stage " + stage++ + " document.cookie is: " + sortCookie(document.cookie));34 console.log("Test stage " + stage++ + " document.cookie is: " + sortCookie(document.cookie)); 35 35 parent.window.postMessage("done", "*"); 36 36 } … … 40 40 var baseurl = "http://localhost:8000/cookies/resources/cookie-utility.php"; 41 41 var url = queryCommand ? baseurl + "?queryfunction=" + queryCommand : baseurl; 42 alert(url);42 console.log(url); 43 43 var req = new XMLHttpRequest(); 44 44 req.open('GET', url, false); … … 46 46 47 47 if (req.status == 200) 48 alert("XHR response - " + req.responseText);48 console.log("XHR response - " + req.responseText); 49 49 else 50 alert("xhr error");50 console.log("xhr error"); 51 51 52 52 parent.window.postMessage("done", "*"); -
trunk/LayoutTests/http/tests/cookies/third-party-cookie-relaxing-expected.txt
r267644 r272607 2 2 3 3 ALERT: Allowing all cookies 4 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=deleteCookies5 ALERT: XHR response - Deleted all cookies6 ALERT: Test stage 1 document.cookie is:4 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=deleteCookies 5 CONSOLE MESSAGE: XHR response - Deleted all cookies 6 CONSOLE MESSAGE: Test stage 1 document.cookie is: 7 7 ALERT: Restricting to first party only cookies 8 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooCookie9 ALERT: XHR response - Set the foo cookie10 ALERT: Test stage 2 document.cookie is:8 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooCookie 9 CONSOLE MESSAGE: XHR response - Set the foo cookie 10 CONSOLE MESSAGE: Test stage 2 document.cookie is: 11 11 ALERT: 12 12 13 13 ALERT: Allowing all cookies 14 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=deleteCookies15 ALERT: XHR response - Deleted all cookies16 ALERT: Test stage 3 document.cookie is:14 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=deleteCookies 15 CONSOLE MESSAGE: XHR response - Deleted all cookies 16 CONSOLE MESSAGE: Test stage 3 document.cookie is: 17 17 ALERT: Restricting to first party only cookies 18 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooAndBarCookie19 ALERT: XHR response - Set the foo and bar cookies20 ALERT: Test stage 4 document.cookie is:18 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooAndBarCookie 19 CONSOLE MESSAGE: XHR response - Set the foo and bar cookies 20 CONSOLE MESSAGE: Test stage 4 document.cookie is: 21 21 ALERT: 22 22 23 23 ALERT: Allowing all cookies 24 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=deleteCookies25 ALERT: XHR response - Deleted all cookies26 ALERT: Test stage 5 document.cookie is:27 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooCookie28 ALERT: XHR response - Set the foo cookie29 ALERT: Test stage 6 document.cookie is: foo=awesomevalue24 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=deleteCookies 25 CONSOLE MESSAGE: XHR response - Deleted all cookies 26 CONSOLE MESSAGE: Test stage 5 document.cookie is: 27 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooCookie 28 CONSOLE MESSAGE: XHR response - Set the foo cookie 29 CONSOLE MESSAGE: Test stage 6 document.cookie is: foo=awesomevalue 30 30 ALERT: Restricting to first party only cookies 31 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=deleteCookies32 ALERT: XHR response - Deleted all cookies33 ALERT: Test stage 7 document.cookie is:31 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=deleteCookies 32 CONSOLE MESSAGE: XHR response - Deleted all cookies 33 CONSOLE MESSAGE: Test stage 7 document.cookie is: 34 34 ALERT: 35 35 36 36 ALERT: Allowing all cookies 37 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=deleteCookies38 ALERT: XHR response - Deleted all cookies39 ALERT: Test stage 8 document.cookie is:40 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooCookie41 ALERT: XHR response - Set the foo cookie42 ALERT: Test stage 9 document.cookie is: foo=awesomevalue37 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=deleteCookies 38 CONSOLE MESSAGE: XHR response - Deleted all cookies 39 CONSOLE MESSAGE: Test stage 8 document.cookie is: 40 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooCookie 41 CONSOLE MESSAGE: XHR response - Set the foo cookie 42 CONSOLE MESSAGE: Test stage 9 document.cookie is: foo=awesomevalue 43 43 ALERT: Restricting to first party only cookies 44 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooAndBarCookie45 ALERT: XHR response - Set the foo and bar cookies46 ALERT: Test stage 10 document.cookie is: bar=anotherawesomevalue; foo=awesomevalue44 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooAndBarCookie 45 CONSOLE MESSAGE: XHR response - Set the foo and bar cookies 46 CONSOLE MESSAGE: Test stage 10 document.cookie is: bar=anotherawesomevalue; foo=awesomevalue 47 47 -
trunk/LayoutTests/http/tests/history/cross-origin-replace-history-object-child-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match. 2 2 ALERT: Child window's history object before attempt to clear: undefined 3 ALERT: About to shadow child window's history object: [object History] 4 ALERT: PASS: Could not shadow child window's history object: [object History]3 CONSOLE MESSAGE: Use of window.alert is not allowed in different origin-domain iframes. 4 CONSOLE MESSAGE: PASS: Could not shadow child window's history object: [object History] 5 5 CONSOLE MESSAGE: SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match. 6 6 ALERT: Child window's history object after attempt to clear: undefined -
trunk/LayoutTests/http/tests/history/cross-origin-replace-history-object-expected.txt
r259900 r272607 1 1 ALERT: Parent window's history object before attempt to clear: [object History] 2 ALERT: Attempting to clear parent window's history object:2 CONSOLE MESSAGE: Attempting to clear parent window's history object: 3 3 CONSOLE MESSAGE: SecurityError: Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match. 4 4 ALERT: Parent window's history object after attempt to clear: [object History] -
trunk/LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-child-iframe.html
r196797 r272607 10 10 return; 11 11 } else 12 alert("Unknown message.");12 console.log("Unknown message."); 13 13 } 14 14 … … 18 18 window.history = ""; 19 19 if (window.history === "") 20 alert("FAIL: Shadowed child window's history object: " + window.history);20 console.log("FAIL: Shadowed child window's history object: " + window.history); 21 21 else 22 alert("PASS: Could not shadow child window's history object: " + window.history);22 console.log("PASS: Could not shadow child window's history object: " + window.history); 23 23 parent.window.postMessage("done", "*"); 24 24 } -
trunk/LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-iframe.html
r205148 r272607 10 10 return; 11 11 } else 12 alert("Unknown message.");12 console.log("Unknown message."); 13 13 } 14 14 15 15 function setHistoryLength() 16 16 { 17 alert("Attempting to clear parent window's history object:");17 console.log("Attempting to clear parent window's history object:"); 18 18 try { 19 19 parent.window.history = ""; -
trunk/LayoutTests/http/tests/misc/frame-default-enc-different-domain-expected.txt
r204605 r272607 1 ALERT: windows-12521 CONSOLE MESSAGE: windows-1252 2 2 -
trunk/LayoutTests/http/tests/misc/frame-default-enc-same-domain-expected.txt
r37775 r272607 1 ALERT: windows-12561 CONSOLE MESSAGE: windows-1256 2 2 -
trunk/LayoutTests/http/tests/misc/resources/frame-default-enc-frame.html
r30986 r272607 11 11 chs = document.characterSet; 12 12 13 alert(chs);13 console.log(chs); 14 14 </script> 15 15 -
trunk/LayoutTests/http/tests/plugins/resources/third-party-cookie-accept-policy-iframe.html
r124692 r272607 23 23 function trySetCookie() 24 24 { 25 alert("Cookies should be clear, and are: '" + document.cookie + "'");26 alert("About to set a cookie, but on localhost instead of 127.0.0.1, which is our main document domain - This should fail.");25 console.log("Cookies should be clear, and are: '" + document.cookie + "'"); 26 console.log("About to set a cookie, but on localhost instead of 127.0.0.1, which is our main document domain - This should fail."); 27 27 if (window.testRunner) 28 28 testRunner.setAlwaysAcceptCookies(false); … … 32 32 function completeTest() 33 33 { 34 alert("Cookies should still be clear, and are: '" + document.cookie + "'");34 console.log("Cookies should still be clear, and are: '" + document.cookie + "'"); 35 35 resetCookies(); 36 36 if (window.testRunner) -
trunk/LayoutTests/http/tests/plugins/third-party-cookie-accept-policy-expected.txt
r55738 r272607 1 ALERT: Cookies should be clear, and are: ''2 ALERT: About to set a cookie, but on localhost instead of 127.0.0.1, which is our main document domain - This should fail.3 ALERT: Cookies should still be clear, and are: ''1 CONSOLE MESSAGE: Cookies should be clear, and are: '' 2 CONSOLE MESSAGE: About to set a cookie, but on localhost instead of 127.0.0.1, which is our main document domain - This should fail. 3 CONSOLE MESSAGE: Cookies should still be clear, and are: '' 4 4 This tests that plug-ins cannot set cookies in violation of the 3rd party cookie policy. 5 5 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/embed-redirect-allowed-expected.txt
r199612 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/embed-redirect-allowed2-expected.txt
r199612 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-cross-origin-load-expected.txt
r267644 r272607 1 1 CONSOLE MESSAGE: Refused to load https://localhost:8443/security/contentSecurityPolicy/resources/alert-fail.html because it does not appear in the frame-src directive of the Content Security Policy. 2 2 ALERT: PASS 3 ALERT: PASS3 CONSOLE MESSAGE: PASS 4 4 IFrames blocked by CSP should generate a 'load' event, regardless of blocked state. This means they appear to be normal cross-origin loads, thereby not leaking URL information directly to JS. 5 5 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/iframe-allowed-when-loaded-via-javascript-url-expected.txt
r250255 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 3 3 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/iframe-inside-csp-expected.txt
r119913 r272607 1 ALERT: PASS (1/2): Script can execute2 ALERT: PASS (2/2): Eval works1 CONSOLE MESSAGE: PASS (1/2): Script can execute 2 CONSOLE MESSAGE: PASS (2/2): Eval works 3 3 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-child-src-expected.txt
r199612 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-child-src2-expected.txt
r199612 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-frame-src-expected.txt
r199612 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/iframe-redirect-allowed-by-frame-src2-expected.txt
r199612 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/object-redirect-allowed-expected.txt
r199612 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/object-redirect-allowed2-expected.txt
r199612 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/object-src-does-not-affect-child-expected.txt
r195367 r272607 1 ALERT: Plugin Loaded!1 CONSOLE MESSAGE: Plugin Loaded! 2 2 This tests that an object-src directive on a top-level page is not inherited by a PluginDocument embedded in an iframe on the page. This test passes if an alert pops up saying that the plugin loaded. 3 3 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/alert-fail.html
r84460 r272607 1 1 <script> 2 alert('FAIL'); 2 let isSameOrigin = true; 3 try { top.name } catch (e) { isSameOrigin = false; } 4 if (isSameOrigin) 5 alert("FAIL"); 6 else 7 console.log("FAIL"); 3 8 </script> -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/alert-fail.js
r99329 r272607 1 alert('FAIL'); 1 { 2 let isSameOrigin = true; 3 try { top.name } catch (e) { isSameOrigin = false; } 4 if (isSameOrigin) 5 alert("FAIL"); 6 else 7 console.log("FAIL"); 8 } -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/alert-pass.html
r199612 r272607 1 1 <script> 2 alert("PASS"); 2 let isSameOrigin = true; 3 try { top.name } catch (e) { isSameOrigin = false; } 4 if (isSameOrigin) 5 alert("PASS"); 6 else 7 console.log("PASS"); 3 8 4 9 var shouldNotifyDone = document.location.search.indexOf("?notifyDone=1") !== -1 && window.testRunner; -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/alert-pass.js
r195367 r272607 1 alert('PASS'); 1 { 2 let isSameOrigin = true; 3 try { top.name } catch (e) { isSameOrigin = false; } 4 if (isSameOrigin) 5 alert("PASS"); 6 else 7 console.log("PASS"); 8 } -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php
r195367 r272607 9 9 <p>Ready</p> 10 10 <script> 11 alert("Script executed in iframe.");11 console.log("Script executed in iframe."); 12 12 window.secret = "I am a secret"; 13 13 </script> -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandboxed-eval.php
r221193 r272607 3 3 ?> 4 4 <script> 5 alert('PASS (1/2): Script can execute');5 console.log('PASS (1/2): Script can execute'); 6 6 </script> 7 7 <script> 8 eval(" alert('PASS (2/2): Eval works')");8 eval("console.log('PASS (2/2): Eval works')"); 9 9 </script> 10 10 Done. -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header-control-expected.txt
r119204 r272607 1 ALERT: Script executed in iframe.1 CONSOLE MESSAGE: Script executed in iframe. 2 2 ALERT: PASS: Iframe was not in a unique origin 3 3 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header-expected.txt
r259900 r272607 1 ALERT: Script executed in iframe.1 CONSOLE MESSAGE: Script executed in iframe. 2 2 CONSOLE MESSAGE: SecurityError: Sandbox access violation: Blocked a frame at "http://127.0.0.1:8000" from accessing a cross-origin frame. The frame being accessed is sandboxed and lacks the "allow-same-origin" flag. 3 3 ALERT: PASS: Iframe was in a unique origin -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-report-only-expected.txt
r195367 r272607 1 1 CONSOLE MESSAGE: The Content Security Policy directive 'sandbox' is ignored when delivered in a report-only policy. 2 2 CONSOLE MESSAGE: The Content Security Policy 'sandbox' was delivered in report-only mode, but does not specify a 'report-uri'; the policy will have no effect. Please either add a 'report-uri' directive, or deliver the policy via the 'Content-Security-Policy' header. 3 ALERT: Script executed in iframe.3 CONSOLE MESSAGE: Script executed in iframe. 4 4 ALERT: PASS: Iframe was not in a unique origin 5 5 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt
r231450 r272607 2 2 main frame - didFinishDocumentLoadForFrame 3 3 frame "<!--frame1-->" - didCommitLoadForFrame 4 ALERT: PASS4 CONSOLE MESSAGE: PASS 5 5 frame "<!--frame2-->" - didStartProvisionalLoadForFrame 6 6 frame "<!--frame1-->" - didFinishDocumentLoadForFrame 7 7 frame "<!--frame2-->" - didCommitLoadForFrame 8 ALERT: PASS9 ALERT: PASS8 CONSOLE MESSAGE: PASS 9 CONSOLE MESSAGE: PASS 10 10 frame "<!--frame2-->" - didFinishDocumentLoadForFrame 11 11 frame "<!--frame2-->" - didHandleOnloadEventsForFrame -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/upgrades-mixed-content-expected.txt
r267644 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 This page should alert "PASS" and not generate any mixed content warnings in the console. -
trunk/LayoutTests/http/tests/security/cross-frame-access-put-expected.txt
r269612 r272607 1 1 CONSOLE MESSAGE: Blocked a frame with origin "http://localhost:8000" from accessing a frame with origin "http://127.0.0.1:8000". Protocols, domains, and ports must match. 2 ALERT: PASS: window.Attr should be 'function Attr() { [native code]}' and is.3 ALERT: PASS: window.CDATASection should be 'function CDATASection() { [native code]}' and is.4 ALERT: PASS: window.CharacterData should be 'function CharacterData() { [native code]}' and is.5 ALERT: PASS: window.Comment should be 'function Comment() { [native code]}' and is.6 ALERT: PASS: window.CSSPrimitiveValue should be 'function CSSPrimitiveValue() { [native code]}' and is.7 ALERT: PASS: window.CSSRule should be 'function CSSRule() { [native code]}' and is.8 ALERT: PASS: window.CSSStyleDeclaration should be 'function CSSStyleDeclaration() { [native code]}' and is.9 ALERT: PASS: window.CSSValue should be 'function CSSValue() { [native code]}' and is.10 ALERT: PASS: window.Document should be 'function Document() { [native code]}' and is.11 ALERT: PASS: window.DocumentFragment should be 'function DocumentFragment() { [native code]}' and is.12 ALERT: PASS: window.DocumentType should be 'function DocumentType() { [native code]}' and is.13 ALERT: PASS: window.DOMException should be 'function DOMException() { [native code]}' and is.14 ALERT: PASS: window.DOMImplementation should be 'function DOMImplementation() { [native code]}' and is.15 ALERT: PASS: window.DOMParser should be 'function DOMParser() { [native code]}' and is.16 ALERT: PASS: window.Element should be 'function Element() { [native code]}' and is.17 ALERT: PASS: window.EvalError should be 'function EvalError() { [native code]}' and is.18 ALERT: PASS: window.Event should be 'function Event() { [native code]}' and is.19 ALERT: PASS: window.HTMLAnchorElement should be 'function HTMLAnchorElement() { [native code]}' and is.20 ALERT: PASS: window.HTMLAppletElement should be 'undefined' and is.21 ALERT: PASS: window.HTMLAreaElement should be 'function HTMLAreaElement() { [native code]}' and is.22 ALERT: PASS: window.HTMLBaseElement should be 'function HTMLBaseElement() { [native code]}' and is.23 ALERT: PASS: window.HTMLBodyElement should be 'function HTMLBodyElement() { [native code]}' and is.24 ALERT: PASS: window.HTMLBRElement should be 'function HTMLBRElement() { [native code]}' and is.25 ALERT: PASS: window.HTMLButtonElement should be 'function HTMLButtonElement() { [native code]}' and is.26 ALERT: PASS: window.HTMLCanvasElement should be 'function HTMLCanvasElement() { [native code]}' and is.27 ALERT: PASS: window.HTMLDirectoryElement should be 'function HTMLDirectoryElement() { [native code]}' and is.28 ALERT: PASS: window.HTMLDivElement should be 'function HTMLDivElement() { [native code]}' and is.29 ALERT: PASS: window.HTMLDListElement should be 'function HTMLDListElement() { [native code]}' and is.30 ALERT: PASS: window.HTMLDocument should be 'function HTMLDocument() { [native code]}' and is.31 ALERT: PASS: window.HTMLElement should be 'function HTMLElement() { [native code]}' and is.32 ALERT: PASS: window.HTMLFieldSetElement should be 'function HTMLFieldSetElement() { [native code]}' and is.33 ALERT: PASS: window.HTMLFontElement should be 'function HTMLFontElement() { [native code]}' and is.34 ALERT: PASS: window.HTMLFormElement should be 'function HTMLFormElement() { [native code]}' and is.35 ALERT: PASS: window.HTMLFrameElement should be 'function HTMLFrameElement() { [native code]}' and is.36 ALERT: PASS: window.HTMLFrameSetElement should be 'function HTMLFrameSetElement() { [native code]}' and is.37 ALERT: PASS: window.HTMLHeadElement should be 'function HTMLHeadElement() { [native code]}' and is.38 ALERT: PASS: window.HTMLHeadingElement should be 'function HTMLHeadingElement() { [native code]}' and is.39 ALERT: PASS: window.HTMLHRElement should be 'function HTMLHRElement() { [native code]}' and is.40 ALERT: PASS: window.HTMLHtmlElement should be 'function HTMLHtmlElement() { [native code]}' and is.41 ALERT: PASS: window.HTMLIFrameElement should be 'function HTMLIFrameElement() { [native code]}' and is.42 ALERT: PASS: window.HTMLImageElement should be 'function HTMLImageElement() { [native code]}' and is.43 ALERT: PASS: window.HTMLInputElement should be 'function HTMLInputElement() { [native code]}' and is.44 ALERT: PASS: window.HTMLIsIndexElement should be 'undefined' and is.45 ALERT: PASS: window.HTMLLabelElement should be 'function HTMLLabelElement() { [native code]}' and is.46 ALERT: PASS: window.HTMLLegendElement should be 'function HTMLLegendElement() { [native code]}' and is.47 ALERT: PASS: window.HTMLLIElement should be 'function HTMLLIElement() { [native code]}' and is.48 ALERT: PASS: window.HTMLLinkElement should be 'function HTMLLinkElement() { [native code]}' and is.49 ALERT: PASS: window.HTMLMapElement should be 'function HTMLMapElement() { [native code]}' and is.50 ALERT: PASS: window.HTMLMarqueeElement should be 'function HTMLMarqueeElement() { [native code]}' and is.51 ALERT: PASS: window.HTMLMenuElement should be 'function HTMLMenuElement() { [native code]}' and is.52 ALERT: PASS: window.HTMLMetaElement should be 'function HTMLMetaElement() { [native code]}' and is.53 ALERT: PASS: window.HTMLModElement should be 'function HTMLModElement() { [native code]}' and is.54 ALERT: PASS: window.HTMLOListElement should be 'function HTMLOListElement() { [native code]}' and is.55 ALERT: PASS: window.HTMLOptGroupElement should be 'function HTMLOptGroupElement() { [native code]}' and is.56 ALERT: PASS: window.HTMLOptionElement should be 'function HTMLOptionElement() { [native code]}' and is.57 ALERT: PASS: window.HTMLParagraphElement should be 'function HTMLParagraphElement() { [native code]}' and is.58 ALERT: PASS: window.HTMLParamElement should be 'function HTMLParamElement() { [native code]}' and is.59 ALERT: PASS: window.HTMLPreElement should be 'function HTMLPreElement() { [native code]}' and is.60 ALERT: PASS: window.HTMLQuoteElement should be 'function HTMLQuoteElement() { [native code]}' and is.61 ALERT: PASS: window.HTMLScriptElement should be 'function HTMLScriptElement() { [native code]}' and is.62 ALERT: PASS: window.HTMLSelectElement should be 'function HTMLSelectElement() { [native code]}' and is.63 ALERT: PASS: window.HTMLStyleElement should be 'function HTMLStyleElement() { [native code]}' and is.64 ALERT: PASS: window.HTMLTableCaptionElement should be 'function HTMLTableCaptionElement() { [native code]}' and is.65 ALERT: PASS: window.HTMLTableCellElement should be 'function HTMLTableCellElement() { [native code]}' and is.66 ALERT: PASS: window.HTMLTableColElement should be 'function HTMLTableColElement() { [native code]}' and is.67 ALERT: PASS: window.HTMLTableElement should be 'function HTMLTableElement() { [native code]}' and is.68 ALERT: PASS: window.HTMLTableRowElement should be 'function HTMLTableRowElement() { [native code]}' and is.69 ALERT: PASS: window.HTMLTableSectionElement should be 'function HTMLTableSectionElement() { [native code]}' and is.70 ALERT: PASS: window.HTMLTextAreaElement should be 'function HTMLTextAreaElement() { [native code]}' and is.71 ALERT: PASS: window.HTMLTitleElement should be 'function HTMLTitleElement() { [native code]}' and is.72 ALERT: PASS: window.HTMLUListElement should be 'function HTMLUListElement() { [native code]}' and is.73 ALERT: PASS: window.MutationEvent should be 'function MutationEvent() { [native code]}' and is.74 ALERT: PASS: window.Node should be 'function Node() { [native code]}' and is.75 ALERT: PASS: window.NodeFilter should be 'function NodeFilter() { [native code]}' and is.76 ALERT: PASS: window.ProcessingInstruction should be 'function ProcessingInstruction() { [native code]}' and is.77 ALERT: PASS: window.Range should be 'function Range() { [native code]}' and is.78 ALERT: PASS: window.RangeError should be 'function RangeError() { [native code]}' and is.79 ALERT: PASS: window.RangeException should be 'undefined' and is.80 ALERT: PASS: window.ReferenceError should be 'function ReferenceError() { [native code]}' and is.81 ALERT: PASS: window.SyntaxError should be 'function SyntaxError() { [native code]}' and is.82 ALERT: PASS: window.Text should be 'function Text() { [native code]}' and is.83 ALERT: PASS: window.TypeError should be 'function TypeError() { [native code]}' and is.84 ALERT: PASS: window.URIError should be 'function URIError() { [native code]}' and is.85 ALERT: PASS: window.XMLDocument should be 'function XMLDocument() { [native code]}' and is.86 ALERT: PASS: window.XMLSerializer should be 'function XMLSerializer() { [native code]}' and is.87 ALERT: PASS: window.XPathEvaluator should be 'function XPathEvaluator() { [native code]}' and is.88 ALERT: PASS: window.XPathResult should be 'function XPathResult() { [native code]}' and is.89 ALERT: PASS: window.clientInformation should be '[object Navigator]' and is.90 ALERT: PASS: window.closed should be 'false' and is.91 ALERT: PASS: window.console should be '[object console]' and is.92 ALERT: PASS: window.crypto should be '[object Crypto]' and is.93 ALERT: PASS: window.defaultStatus should be '' and is.94 ALERT: PASS: window.defaultstatus should be '' and is.95 ALERT: PASS: window.devicePixelRatio should be '1' and is.96 ALERT: PASS: window.document should be '[object HTMLDocument]' and is.97 ALERT: PASS: window.embeds should be 'undefined' and is.98 ALERT: PASS: window.event should be 'undefined' and is.2 CONSOLE MESSAGE: PASS: window.Attr should be 'function Attr() { [native code]}' and is. 3 CONSOLE MESSAGE: PASS: window.CDATASection should be 'function CDATASection() { [native code]}' and is. 4 CONSOLE MESSAGE: PASS: window.CharacterData should be 'function CharacterData() { [native code]}' and is. 5 CONSOLE MESSAGE: PASS: window.Comment should be 'function Comment() { [native code]}' and is. 6 CONSOLE MESSAGE: PASS: window.CSSPrimitiveValue should be 'function CSSPrimitiveValue() { [native code]}' and is. 7 CONSOLE MESSAGE: PASS: window.CSSRule should be 'function CSSRule() { [native code]}' and is. 8 CONSOLE MESSAGE: PASS: window.CSSStyleDeclaration should be 'function CSSStyleDeclaration() { [native code]}' and is. 9 CONSOLE MESSAGE: PASS: window.CSSValue should be 'function CSSValue() { [native code]}' and is. 10 CONSOLE MESSAGE: PASS: window.Document should be 'function Document() { [native code]}' and is. 11 CONSOLE MESSAGE: PASS: window.DocumentFragment should be 'function DocumentFragment() { [native code]}' and is. 12 CONSOLE MESSAGE: PASS: window.DocumentType should be 'function DocumentType() { [native code]}' and is. 13 CONSOLE MESSAGE: PASS: window.DOMException should be 'function DOMException() { [native code]}' and is. 14 CONSOLE MESSAGE: PASS: window.DOMImplementation should be 'function DOMImplementation() { [native code]}' and is. 15 CONSOLE MESSAGE: PASS: window.DOMParser should be 'function DOMParser() { [native code]}' and is. 16 CONSOLE MESSAGE: PASS: window.Element should be 'function Element() { [native code]}' and is. 17 CONSOLE MESSAGE: PASS: window.EvalError should be 'function EvalError() { [native code]}' and is. 18 CONSOLE MESSAGE: PASS: window.Event should be 'function Event() { [native code]}' and is. 19 CONSOLE MESSAGE: PASS: window.HTMLAnchorElement should be 'function HTMLAnchorElement() { [native code]}' and is. 20 CONSOLE MESSAGE: PASS: window.HTMLAppletElement should be 'undefined' and is. 21 CONSOLE MESSAGE: PASS: window.HTMLAreaElement should be 'function HTMLAreaElement() { [native code]}' and is. 22 CONSOLE MESSAGE: PASS: window.HTMLBaseElement should be 'function HTMLBaseElement() { [native code]}' and is. 23 CONSOLE MESSAGE: PASS: window.HTMLBodyElement should be 'function HTMLBodyElement() { [native code]}' and is. 24 CONSOLE MESSAGE: PASS: window.HTMLBRElement should be 'function HTMLBRElement() { [native code]}' and is. 25 CONSOLE MESSAGE: PASS: window.HTMLButtonElement should be 'function HTMLButtonElement() { [native code]}' and is. 26 CONSOLE MESSAGE: PASS: window.HTMLCanvasElement should be 'function HTMLCanvasElement() { [native code]}' and is. 27 CONSOLE MESSAGE: PASS: window.HTMLDirectoryElement should be 'function HTMLDirectoryElement() { [native code]}' and is. 28 CONSOLE MESSAGE: PASS: window.HTMLDivElement should be 'function HTMLDivElement() { [native code]}' and is. 29 CONSOLE MESSAGE: PASS: window.HTMLDListElement should be 'function HTMLDListElement() { [native code]}' and is. 30 CONSOLE MESSAGE: PASS: window.HTMLDocument should be 'function HTMLDocument() { [native code]}' and is. 31 CONSOLE MESSAGE: PASS: window.HTMLElement should be 'function HTMLElement() { [native code]}' and is. 32 CONSOLE MESSAGE: PASS: window.HTMLFieldSetElement should be 'function HTMLFieldSetElement() { [native code]}' and is. 33 CONSOLE MESSAGE: PASS: window.HTMLFontElement should be 'function HTMLFontElement() { [native code]}' and is. 34 CONSOLE MESSAGE: PASS: window.HTMLFormElement should be 'function HTMLFormElement() { [native code]}' and is. 35 CONSOLE MESSAGE: PASS: window.HTMLFrameElement should be 'function HTMLFrameElement() { [native code]}' and is. 36 CONSOLE MESSAGE: PASS: window.HTMLFrameSetElement should be 'function HTMLFrameSetElement() { [native code]}' and is. 37 CONSOLE MESSAGE: PASS: window.HTMLHeadElement should be 'function HTMLHeadElement() { [native code]}' and is. 38 CONSOLE MESSAGE: PASS: window.HTMLHeadingElement should be 'function HTMLHeadingElement() { [native code]}' and is. 39 CONSOLE MESSAGE: PASS: window.HTMLHRElement should be 'function HTMLHRElement() { [native code]}' and is. 40 CONSOLE MESSAGE: PASS: window.HTMLHtmlElement should be 'function HTMLHtmlElement() { [native code]}' and is. 41 CONSOLE MESSAGE: PASS: window.HTMLIFrameElement should be 'function HTMLIFrameElement() { [native code]}' and is. 42 CONSOLE MESSAGE: PASS: window.HTMLImageElement should be 'function HTMLImageElement() { [native code]}' and is. 43 CONSOLE MESSAGE: PASS: window.HTMLInputElement should be 'function HTMLInputElement() { [native code]}' and is. 44 CONSOLE MESSAGE: PASS: window.HTMLIsIndexElement should be 'undefined' and is. 45 CONSOLE MESSAGE: PASS: window.HTMLLabelElement should be 'function HTMLLabelElement() { [native code]}' and is. 46 CONSOLE MESSAGE: PASS: window.HTMLLegendElement should be 'function HTMLLegendElement() { [native code]}' and is. 47 CONSOLE MESSAGE: PASS: window.HTMLLIElement should be 'function HTMLLIElement() { [native code]}' and is. 48 CONSOLE MESSAGE: PASS: window.HTMLLinkElement should be 'function HTMLLinkElement() { [native code]}' and is. 49 CONSOLE MESSAGE: PASS: window.HTMLMapElement should be 'function HTMLMapElement() { [native code]}' and is. 50 CONSOLE MESSAGE: PASS: window.HTMLMarqueeElement should be 'function HTMLMarqueeElement() { [native code]}' and is. 51 CONSOLE MESSAGE: PASS: window.HTMLMenuElement should be 'function HTMLMenuElement() { [native code]}' and is. 52 CONSOLE MESSAGE: PASS: window.HTMLMetaElement should be 'function HTMLMetaElement() { [native code]}' and is. 53 CONSOLE MESSAGE: PASS: window.HTMLModElement should be 'function HTMLModElement() { [native code]}' and is. 54 CONSOLE MESSAGE: PASS: window.HTMLOListElement should be 'function HTMLOListElement() { [native code]}' and is. 55 CONSOLE MESSAGE: PASS: window.HTMLOptGroupElement should be 'function HTMLOptGroupElement() { [native code]}' and is. 56 CONSOLE MESSAGE: PASS: window.HTMLOptionElement should be 'function HTMLOptionElement() { [native code]}' and is. 57 CONSOLE MESSAGE: PASS: window.HTMLParagraphElement should be 'function HTMLParagraphElement() { [native code]}' and is. 58 CONSOLE MESSAGE: PASS: window.HTMLParamElement should be 'function HTMLParamElement() { [native code]}' and is. 59 CONSOLE MESSAGE: PASS: window.HTMLPreElement should be 'function HTMLPreElement() { [native code]}' and is. 60 CONSOLE MESSAGE: PASS: window.HTMLQuoteElement should be 'function HTMLQuoteElement() { [native code]}' and is. 61 CONSOLE MESSAGE: PASS: window.HTMLScriptElement should be 'function HTMLScriptElement() { [native code]}' and is. 62 CONSOLE MESSAGE: PASS: window.HTMLSelectElement should be 'function HTMLSelectElement() { [native code]}' and is. 63 CONSOLE MESSAGE: PASS: window.HTMLStyleElement should be 'function HTMLStyleElement() { [native code]}' and is. 64 CONSOLE MESSAGE: PASS: window.HTMLTableCaptionElement should be 'function HTMLTableCaptionElement() { [native code]}' and is. 65 CONSOLE MESSAGE: PASS: window.HTMLTableCellElement should be 'function HTMLTableCellElement() { [native code]}' and is. 66 CONSOLE MESSAGE: PASS: window.HTMLTableColElement should be 'function HTMLTableColElement() { [native code]}' and is. 67 CONSOLE MESSAGE: PASS: window.HTMLTableElement should be 'function HTMLTableElement() { [native code]}' and is. 68 CONSOLE MESSAGE: PASS: window.HTMLTableRowElement should be 'function HTMLTableRowElement() { [native code]}' and is. 69 CONSOLE MESSAGE: PASS: window.HTMLTableSectionElement should be 'function HTMLTableSectionElement() { [native code]}' and is. 70 CONSOLE MESSAGE: PASS: window.HTMLTextAreaElement should be 'function HTMLTextAreaElement() { [native code]}' and is. 71 CONSOLE MESSAGE: PASS: window.HTMLTitleElement should be 'function HTMLTitleElement() { [native code]}' and is. 72 CONSOLE MESSAGE: PASS: window.HTMLUListElement should be 'function HTMLUListElement() { [native code]}' and is. 73 CONSOLE MESSAGE: PASS: window.MutationEvent should be 'function MutationEvent() { [native code]}' and is. 74 CONSOLE MESSAGE: PASS: window.Node should be 'function Node() { [native code]}' and is. 75 CONSOLE MESSAGE: PASS: window.NodeFilter should be 'function NodeFilter() { [native code]}' and is. 76 CONSOLE MESSAGE: PASS: window.ProcessingInstruction should be 'function ProcessingInstruction() { [native code]}' and is. 77 CONSOLE MESSAGE: PASS: window.Range should be 'function Range() { [native code]}' and is. 78 CONSOLE MESSAGE: PASS: window.RangeError should be 'function RangeError() { [native code]}' and is. 79 CONSOLE MESSAGE: PASS: window.RangeException should be 'undefined' and is. 80 CONSOLE MESSAGE: PASS: window.ReferenceError should be 'function ReferenceError() { [native code]}' and is. 81 CONSOLE MESSAGE: PASS: window.SyntaxError should be 'function SyntaxError() { [native code]}' and is. 82 CONSOLE MESSAGE: PASS: window.Text should be 'function Text() { [native code]}' and is. 83 CONSOLE MESSAGE: PASS: window.TypeError should be 'function TypeError() { [native code]}' and is. 84 CONSOLE MESSAGE: PASS: window.URIError should be 'function URIError() { [native code]}' and is. 85 CONSOLE MESSAGE: PASS: window.XMLDocument should be 'function XMLDocument() { [native code]}' and is. 86 CONSOLE MESSAGE: PASS: window.XMLSerializer should be 'function XMLSerializer() { [native code]}' and is. 87 CONSOLE MESSAGE: PASS: window.XPathEvaluator should be 'function XPathEvaluator() { [native code]}' and is. 88 CONSOLE MESSAGE: PASS: window.XPathResult should be 'function XPathResult() { [native code]}' and is. 89 CONSOLE MESSAGE: PASS: window.clientInformation should be '[object Navigator]' and is. 90 CONSOLE MESSAGE: PASS: window.closed should be 'false' and is. 91 CONSOLE MESSAGE: PASS: window.console should be '[object console]' and is. 92 CONSOLE MESSAGE: PASS: window.crypto should be '[object Crypto]' and is. 93 CONSOLE MESSAGE: PASS: window.defaultStatus should be '' and is. 94 CONSOLE MESSAGE: PASS: window.defaultstatus should be '' and is. 95 CONSOLE MESSAGE: PASS: window.devicePixelRatio should be '1' and is. 96 CONSOLE MESSAGE: PASS: window.document should be '[object HTMLDocument]' and is. 97 CONSOLE MESSAGE: PASS: window.embeds should be 'undefined' and is. 98 CONSOLE MESSAGE: PASS: window.event should be 'undefined' and is. 99 99 CONSOLE MESSAGE: Blocked a frame with origin "http://localhost:8000" from accessing a frame with origin "http://127.0.0.1:8000". Protocols, domains, and ports must match. 100 ALERT: PASS: window.frameElement should be 'null' and is.101 ALERT: PASS: window.frames should be '[object Window]' and is.102 ALERT: PASS: window.history should be '[object History]' and is.103 ALERT: PASS: window.images should be 'undefined' and is.104 ALERT: PASS: window.innerHeight should be '150' and is.105 ALERT: PASS: window.innerWidth should be '300' and is.106 ALERT: PASS: window.length should be '0' and is.107 ALERT: PASS: window.locationbar should be '[object BarProp]' and is.108 ALERT: PASS: window.menubar should be '[object BarProp]' and is.109 ALERT: PASS: window.name should be '' and is.110 ALERT: PASS: window.navigator should be '[object Navigator]' and is.111 ALERT: PASS: window.offscreenBuffering should be 'true' and is.112 ALERT: PASS: window.onabort should be 'null' and is.113 ALERT: PASS: window.onbeforeunload should be 'null' and is.114 ALERT: PASS: window.onblur should be 'null' and is.115 ALERT: PASS: window.onchange should be 'null' and is.116 ALERT: PASS: window.onclick should be 'null' and is.117 ALERT: PASS: window.ondblclick should be 'null' and is.118 ALERT: PASS: window.onerror should be 'null' and is.119 ALERT: PASS: window.onfocus should be 'null' and is.120 ALERT: PASS: window.onkeydown should be 'null' and is.121 ALERT: PASS: window.onkeypress should be 'null' and is.122 ALERT: PASS: window.onkeyup should be 'null' and is.123 ALERT: PASS: window.onload should be 'null' and is.124 ALERT: PASS: window.onmousedown should be 'null' and is.125 ALERT: PASS: window.onmousemove should be 'null' and is.126 ALERT: PASS: window.onmouseout should be 'null' and is.127 ALERT: PASS: window.onmouseover should be 'null' and is.128 ALERT: PASS: window.onmouseup should be 'null' and is.129 ALERT: PASS: window.onmousewheel should be 'null' and is.130 ALERT: PASS: window.onreset should be 'null' and is.131 ALERT: PASS: window.onresize should be 'null' and is.132 ALERT: PASS: window.onscroll should be 'null' and is.133 ALERT: PASS: window.onsearch should be 'null' and is.134 ALERT: PASS: window.onselect should be 'null' and is.135 ALERT: PASS: window.onsubmit should be 'null' and is.136 ALERT: PASS: window.onunload should be 'null' and is.137 ALERT: PASS: window.opener should be 'null' and is.138 ALERT: PASS: window.outerHeight matched the expected value.139 ALERT: PASS: window.outerWidth matched the expected value.140 ALERT: PASS: window.pageXOffset should be '0' and is.141 ALERT: PASS: window.pageYOffset should be '0' and is.142 ALERT: PASS: window.personalbar should be '[object BarProp]' and is.143 ALERT: PASS: window.plugins should be 'undefined' and is.144 ALERT: PASS: window.screen should be '[object Screen]' and is.145 ALERT: PASS: window.screenLeft should be '0' and is.146 ALERT: PASS: window.screenTop matched the expected value.147 ALERT: PASS: window.screenX should be '0' and is.148 ALERT: PASS: window.screenY matched the expected value.149 ALERT: PASS: window.scrollbars should be '[object BarProp]' and is.150 ALERT: PASS: window.scrollX should be '0' and is.151 ALERT: PASS: window.scrollY should be '0' and is.152 ALERT: PASS: window.self should be '[object Window]' and is.153 ALERT: PASS: window.status should be '' and is.154 ALERT: PASS: window.statusbar should be '[object BarProp]' and is.155 ALERT: PASS: window.toolbar should be '[object BarProp]' and is.156 ALERT: PASS: window.window should be '[object Window]' and is.157 ALERT: PASS: window.parent should be parentOld and is.158 ALERT: PASS: window.top should be topOld and is.159 ALERT: PASS: window.addEventListener should be 'function addEventListener() { [native code]}' and is.160 ALERT: PASS: window.alert should be 'function alert() { [native code]}' and is.161 ALERT: PASS: window.atob should be 'function atob() { [native code]}' and is.162 ALERT: PASS: window.btoa should be 'function btoa() { [native code]}' and is.163 ALERT: PASS: window.captureEvents should be 'function captureEvents() { [native code]}' and is.164 ALERT: PASS: window.clearInterval should be 'function clearInterval() { [native code]}' and is.165 ALERT: PASS: window.clearTimeout should be 'function clearTimeout() { [native code]}' and is.166 ALERT: PASS: window.confirm should be 'function confirm() { [native code]}' and is.167 ALERT: PASS: window.eval should be 'function eval() { [native code]}' and is.168 ALERT: PASS: window.find should be 'function find() { [native code]}' and is.169 ALERT: PASS: window.getComputedStyle should be 'function getComputedStyle() { [native code]}' and is.170 ALERT: PASS: window.getMatchedCSSRules should be 'function getMatchedCSSRules() { [native code]}' and is.171 ALERT: PASS: window.getSelection should be 'function getSelection() { [native code]}' and is.172 ALERT: PASS: window.moveBy should be 'function moveBy() { [native code]}' and is.173 ALERT: PASS: window.moveTo should be 'function moveTo() { [native code]}' and is.174 ALERT: PASS: window.open should be 'function open() { [native code]}' and is.175 ALERT: PASS: window.print should be 'function print() { [native code]}' and is.176 ALERT: PASS: window.prompt should be 'function prompt() { [native code]}' and is.177 ALERT: PASS: window.releaseEvents should be 'function releaseEvents() { [native code]}' and is.178 ALERT: PASS: window.removeEventListener should be 'function removeEventListener() { [native code]}' and is.179 ALERT: PASS: window.resizeBy should be 'function resizeBy() { [native code]}' and is.180 ALERT: PASS: window.resizeTo should be 'function resizeTo() { [native code]}' and is.181 ALERT: PASS: window.scroll should be 'function scroll() { [native code]}' and is.182 ALERT: PASS: window.scrollBy should be 'function scrollBy() { [native code]}' and is.183 ALERT: PASS: window.scrollTo should be 'function scrollTo() { [native code]}' and is.184 ALERT: PASS: window.setInterval should be 'function setInterval() { [native code]}' and is.185 ALERT: PASS: window.setTimeout should be 'function setTimeout() { [native code]}' and is.186 ALERT: PASS: window.showModalDialog matched the expected value.187 ALERT: PASS: window.stop should be 'function stop() { [native code]}' and is.100 CONSOLE MESSAGE: PASS: window.frameElement should be 'null' and is. 101 CONSOLE MESSAGE: PASS: window.frames should be '[object Window]' and is. 102 CONSOLE MESSAGE: PASS: window.history should be '[object History]' and is. 103 CONSOLE MESSAGE: PASS: window.images should be 'undefined' and is. 104 CONSOLE MESSAGE: PASS: window.innerHeight should be '150' and is. 105 CONSOLE MESSAGE: PASS: window.innerWidth should be '300' and is. 106 CONSOLE MESSAGE: PASS: window.length should be '0' and is. 107 CONSOLE MESSAGE: PASS: window.locationbar should be '[object BarProp]' and is. 108 CONSOLE MESSAGE: PASS: window.menubar should be '[object BarProp]' and is. 109 CONSOLE MESSAGE: PASS: window.name should be '' and is. 110 CONSOLE MESSAGE: PASS: window.navigator should be '[object Navigator]' and is. 111 CONSOLE MESSAGE: PASS: window.offscreenBuffering should be 'true' and is. 112 CONSOLE MESSAGE: PASS: window.onabort should be 'null' and is. 113 CONSOLE MESSAGE: PASS: window.onbeforeunload should be 'null' and is. 114 CONSOLE MESSAGE: PASS: window.onblur should be 'null' and is. 115 CONSOLE MESSAGE: PASS: window.onchange should be 'null' and is. 116 CONSOLE MESSAGE: PASS: window.onclick should be 'null' and is. 117 CONSOLE MESSAGE: PASS: window.ondblclick should be 'null' and is. 118 CONSOLE MESSAGE: PASS: window.onerror should be 'null' and is. 119 CONSOLE MESSAGE: PASS: window.onfocus should be 'null' and is. 120 CONSOLE MESSAGE: PASS: window.onkeydown should be 'null' and is. 121 CONSOLE MESSAGE: PASS: window.onkeypress should be 'null' and is. 122 CONSOLE MESSAGE: PASS: window.onkeyup should be 'null' and is. 123 CONSOLE MESSAGE: PASS: window.onload should be 'null' and is. 124 CONSOLE MESSAGE: PASS: window.onmousedown should be 'null' and is. 125 CONSOLE MESSAGE: PASS: window.onmousemove should be 'null' and is. 126 CONSOLE MESSAGE: PASS: window.onmouseout should be 'null' and is. 127 CONSOLE MESSAGE: PASS: window.onmouseover should be 'null' and is. 128 CONSOLE MESSAGE: PASS: window.onmouseup should be 'null' and is. 129 CONSOLE MESSAGE: PASS: window.onmousewheel should be 'null' and is. 130 CONSOLE MESSAGE: PASS: window.onreset should be 'null' and is. 131 CONSOLE MESSAGE: PASS: window.onresize should be 'null' and is. 132 CONSOLE MESSAGE: PASS: window.onscroll should be 'null' and is. 133 CONSOLE MESSAGE: PASS: window.onsearch should be 'null' and is. 134 CONSOLE MESSAGE: PASS: window.onselect should be 'null' and is. 135 CONSOLE MESSAGE: PASS: window.onsubmit should be 'null' and is. 136 CONSOLE MESSAGE: PASS: window.onunload should be 'null' and is. 137 CONSOLE MESSAGE: PASS: window.opener should be 'null' and is. 138 CONSOLE MESSAGE: PASS: window.outerHeight matched the expected value. 139 CONSOLE MESSAGE: PASS: window.outerWidth matched the expected value. 140 CONSOLE MESSAGE: PASS: window.pageXOffset should be '0' and is. 141 CONSOLE MESSAGE: PASS: window.pageYOffset should be '0' and is. 142 CONSOLE MESSAGE: PASS: window.personalbar should be '[object BarProp]' and is. 143 CONSOLE MESSAGE: PASS: window.plugins should be 'undefined' and is. 144 CONSOLE MESSAGE: PASS: window.screen should be '[object Screen]' and is. 145 CONSOLE MESSAGE: PASS: window.screenLeft should be '0' and is. 146 CONSOLE MESSAGE: PASS: window.screenTop matched the expected value. 147 CONSOLE MESSAGE: PASS: window.screenX should be '0' and is. 148 CONSOLE MESSAGE: PASS: window.screenY matched the expected value. 149 CONSOLE MESSAGE: PASS: window.scrollbars should be '[object BarProp]' and is. 150 CONSOLE MESSAGE: PASS: window.scrollX should be '0' and is. 151 CONSOLE MESSAGE: PASS: window.scrollY should be '0' and is. 152 CONSOLE MESSAGE: PASS: window.self should be '[object Window]' and is. 153 CONSOLE MESSAGE: PASS: window.status should be '' and is. 154 CONSOLE MESSAGE: PASS: window.statusbar should be '[object BarProp]' and is. 155 CONSOLE MESSAGE: PASS: window.toolbar should be '[object BarProp]' and is. 156 CONSOLE MESSAGE: PASS: window.window should be '[object Window]' and is. 157 CONSOLE MESSAGE: PASS: window.parent should be parentOld and is. 158 CONSOLE MESSAGE: PASS: window.top should be topOld and is. 159 CONSOLE MESSAGE: PASS: window.addEventListener should be 'function addEventListener() { [native code]}' and is. 160 CONSOLE MESSAGE: PASS: window.alert should be 'function alert() { [native code]}' and is. 161 CONSOLE MESSAGE: PASS: window.atob should be 'function atob() { [native code]}' and is. 162 CONSOLE MESSAGE: PASS: window.btoa should be 'function btoa() { [native code]}' and is. 163 CONSOLE MESSAGE: PASS: window.captureEvents should be 'function captureEvents() { [native code]}' and is. 164 CONSOLE MESSAGE: PASS: window.clearInterval should be 'function clearInterval() { [native code]}' and is. 165 CONSOLE MESSAGE: PASS: window.clearTimeout should be 'function clearTimeout() { [native code]}' and is. 166 CONSOLE MESSAGE: PASS: window.confirm should be 'function confirm() { [native code]}' and is. 167 CONSOLE MESSAGE: PASS: window.eval should be 'function eval() { [native code]}' and is. 168 CONSOLE MESSAGE: PASS: window.find should be 'function find() { [native code]}' and is. 169 CONSOLE MESSAGE: PASS: window.getComputedStyle should be 'function getComputedStyle() { [native code]}' and is. 170 CONSOLE MESSAGE: PASS: window.getMatchedCSSRules should be 'function getMatchedCSSRules() { [native code]}' and is. 171 CONSOLE MESSAGE: PASS: window.getSelection should be 'function getSelection() { [native code]}' and is. 172 CONSOLE MESSAGE: PASS: window.moveBy should be 'function moveBy() { [native code]}' and is. 173 CONSOLE MESSAGE: PASS: window.moveTo should be 'function moveTo() { [native code]}' and is. 174 CONSOLE MESSAGE: PASS: window.open should be 'function open() { [native code]}' and is. 175 CONSOLE MESSAGE: PASS: window.print should be 'function print() { [native code]}' and is. 176 CONSOLE MESSAGE: PASS: window.prompt should be 'function prompt() { [native code]}' and is. 177 CONSOLE MESSAGE: PASS: window.releaseEvents should be 'function releaseEvents() { [native code]}' and is. 178 CONSOLE MESSAGE: PASS: window.removeEventListener should be 'function removeEventListener() { [native code]}' and is. 179 CONSOLE MESSAGE: PASS: window.resizeBy should be 'function resizeBy() { [native code]}' and is. 180 CONSOLE MESSAGE: PASS: window.resizeTo should be 'function resizeTo() { [native code]}' and is. 181 CONSOLE MESSAGE: PASS: window.scroll should be 'function scroll() { [native code]}' and is. 182 CONSOLE MESSAGE: PASS: window.scrollBy should be 'function scrollBy() { [native code]}' and is. 183 CONSOLE MESSAGE: PASS: window.scrollTo should be 'function scrollTo() { [native code]}' and is. 184 CONSOLE MESSAGE: PASS: window.setInterval should be 'function setInterval() { [native code]}' and is. 185 CONSOLE MESSAGE: PASS: window.setTimeout should be 'function setTimeout() { [native code]}' and is. 186 CONSOLE MESSAGE: PASS: window.showModalDialog matched the expected value. 187 CONSOLE MESSAGE: PASS: window.stop should be 'function stop() { [native code]}' and is. 188 188 ALERT: continue test in parent frame 189 189 This test checks cross-frame access security of window attribute setters (rdar://problem/5326791). -
trunk/LayoutTests/http/tests/security/data-url-inline.css-expected.txt
r61391 r272607 1 ALERT: 1 rules found1 CONSOLE MESSAGE: 1 rules found 2 2 This test ensures that a data URL can access its own inline style sheets. Sorry for the obscurity of the test case, but it's the repro from Bug 32309, which has an "unobfuscated" version of the code. 3 3 -
trunk/LayoutTests/http/tests/security/data-url-inline.css.html
r120174 r272607 8 8 has an "unobfuscated" version of the code.</p> 9 9 <p>This test passes if it alerts that it found 1 rule.</p> 10 <iframe src="data:text/html;base64,PGh0bWw+ CiAgPHN0eWxlPgogICAgYm9keSB7CiAgICAgIGJhY2tncm91bmQ6IGdyZWVuOwogICAgfQogIDwvc3R5bGU+CiAgPGJvZHk+CiAgICA8c2NyaXB0PgogICAgICB2YXIgc3R5bGVzaGVldHMgPSBkb2N1bWVudC5zdHlsZVNoZWV0czsKICAgICAgdmFyIHN0eWxlc2hlZXQgPSBzdHlsZXNoZWV0c1tzdHlsZXNoZWV0cy5sZW5ndGgtMV07CiAgICAgIHZhciBydWxlcyA9IHN0eWxlc2hlZXQuY3NzUnVsZXM7CiAgICAgIGFsZXJ0KHJ1bGVzLmxlbmd0aCArICcgcnVsZXMgZm91bmQnKTsKICAgIDwvc2NyaXB0PgogIDwvYm9keT4KPC9odG1sPgo="></iframe>10 <iframe src="data:text/html;base64,PGh0bWw+DQogIDxzdHlsZT4NCiAgICBib2R5IHsNCiAgICAgIGJhY2tncm91bmQ6IGdyZWVuOw0KICAgIH0NCiAgPC9zdHlsZT4NCiAgPGJvZHk+DQogICAgPHNjcmlwdD4NCiAgICAgIHZhciBzdHlsZXNoZWV0cyA9IGRvY3VtZW50LnN0eWxlU2hlZXRzOw0KICAgICAgdmFyIHN0eWxlc2hlZXQgPSBzdHlsZXNoZWV0c1tzdHlsZXNoZWV0cy5sZW5ndGgtMV07DQogICAgICB2YXIgcnVsZXMgPSBzdHlsZXNoZWV0LmNzc1J1bGVzOw0KICAgICAgY29uc29sZS5sb2cocnVsZXMubGVuZ3RoICsgJyBydWxlcyBmb3VuZCcpOw0KICAgIDwvc2NyaXB0Pg0KICA8L2JvZHk+DQo8L2h0bWw+DQo="></iframe> -
trunk/LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessor-iframe.html
r205136 r272607 12 12 + "try {" 13 13 + "top.document.getElementById('accessMe').innerHTML = 'FAIL: Cross frame access from a data: URL on a different domain was allowed';" 14 + " alert('FAIL: No exception thrown.');"14 + "console.log('FAIL: No exception thrown.');" 15 15 + "} catch (e) {" 16 16 + "console.log(e);" 17 + " alert('PASS: Exception thrown successfully.');"17 + "console.log('PASS: Exception thrown successfully.');" 18 18 + "}" 19 19 + "if (window.testRunner)" -
trunk/LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessor-opened-frame.html
r205136 r272607 11 11 + "try {" 12 12 + "parent.opener.document.getElementById('accessMe').innerHTML = 'FAIL: Cross frame access from a data: URL on a different domain was allowed';" 13 + " alert('FAIL: No exception thrown.');"13 + "console.log('FAIL: No exception thrown.');" 14 14 + "} catch (e) {" 15 15 + "console.log(e);" 16 + " alert('PASS: Exception thrown successfully.');"16 + "console.log('PASS: Exception thrown successfully.');" 17 17 + "}" 18 18 + "if (window.testRunner)" -
trunk/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-subframe-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: SecurityError: Blocked a frame with origin "null" from accessing a cross-origin frame. Protocols, domains, and ports must match. 2 ALERT: PASS: Exception thrown successfully.2 CONSOLE MESSAGE: PASS: Exception thrown successfully. 3 3 The scenario for this test is that you have an iframe with content from a foreign domain. In that foreign content is an iframe which loads a data: URL. This tests that the data: URL loaded iframe does not have access to the main frame using top.document. 4 4 -
trunk/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: SecurityError: Blocked a frame with origin "null" from accessing a cross-origin frame. Protocols, domains, and ports must match. 2 ALERT: PASS: Exception thrown successfully.2 CONSOLE MESSAGE: PASS: Exception thrown successfully. 3 3 Opener Frame 4 4 -
trunk/LayoutTests/http/tests/security/drag-drop-different-origin-expected.txt
r267644 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 Dragme -
trunk/LayoutTests/http/tests/security/drag-drop-local-file-expected.txt
r267644 r272607 1 1 CONSOLE MESSAGE: Not allowed to drag local resource: foobar 2 ALERT: PASS2 CONSOLE MESSAGE: PASS 3 3 Dragme -
trunk/LayoutTests/http/tests/security/drag-drop-same-unique-origin-expected.txt
r72644 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-websocket.html
r187556 r272607 6 6 7 7 function onSocketOpened() { 8 alert("WebSocket connection opened.");8 console.log("WebSocket connection opened."); 9 9 finishJSTest(); 10 10 } 11 11 12 12 function onSocketError() { 13 alert("WebSocket connection failed.");13 console.log("WebSocket connection failed."); 14 14 ws.close(); 15 15 finishJSTest(); … … 17 17 18 18 function onSocketClosed() { 19 alert("WebSocket closed.");19 console.log("WebSocket closed."); 20 20 finishJSTest(); 21 21 } … … 27 27 ws.onclose = onSocketClosed; 28 28 } catch (e) { 29 alert("Test failed: exception thrown");29 console.log("Test failed: exception thrown"); 30 30 finishJSTest(); 31 31 } -
trunk/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-iframe-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: [blocked] The page at https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-websocket.html was not allowed to run insecure content from ws://127.0.0.1:8880/websocket/tests/hybi/echo. 2 2 3 ALERT: WebSocket connection failed.3 CONSOLE MESSAGE: WebSocket connection failed. 4 4 CONSOLE MESSAGE: WebSocket connection failed: WebSocket is closed before the connection is established. 5 5 This test loads an iframe that creates an insecure WebSocket connection. We should block the connection and trigger a mixed content callback because the main frame is HTTPS, but the data sent over the socket could be recorded or controlled by an attacker. -
trunk/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-main-frame-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: [blocked] The page at https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-websocket.html was not allowed to run insecure content from ws://127.0.0.1:8880/websocket/tests/hybi/echo. 2 2 3 ALERT: WebSocket connection failed.3 CONSOLE MESSAGE: WebSocket connection failed. 4 4 CONSOLE MESSAGE: WebSocket connection failed: WebSocket is closed before the connection is established. 5 5 This test opens a window that connects to an insecure ws:// WebSocket. We should block the connection and trigger a mixed content callback because the main frame is HTTPS, but the data sent over the socket could be recorded or controlled by an attacker. -
trunk/LayoutTests/http/tests/security/no-indexeddb-from-sandbox-expected.txt
r141621 r272607 1 ALERT: PASS: db.open() threw a SECURITY_ERR!1 CONSOLE MESSAGE: PASS: db.open() threw a SECURITY_ERR! 2 2 -
trunk/LayoutTests/http/tests/security/no-indexeddb-from-sandbox.html
r221193 r272607 9 9 try { 10 10 db.open('test'); 11 alert('FAIL: db.open() should throw a SECURITY_ERR in a sandbox.');11 console.log('FAIL: db.open() should throw a SECURITY_ERR in a sandbox.'); 12 12 } catch (e) { 13 13 if (e.code === DOMException.SECURITY_ERR) 14 alert('PASS: db.open() threw a SECURITY_ERR!');14 console.log('PASS: db.open() threw a SECURITY_ERR!'); 15 15 else 16 alert('FAIL: db.open() threw a ' + e.name);16 console.log('FAIL: db.open() threw a ' + e.name); 17 17 } 18 18 </script>" -
trunk/LayoutTests/http/tests/security/no-popup-from-sandbox-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: Blocked opening 'about:blank' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set. 2 ALERT: PASS2 CONSOLE MESSAGE: PASS 3 3 To run this test outside of DumpRenderTree, please disable your popup blocker! 4 4 -
trunk/LayoutTests/http/tests/security/no-popup-from-sandbox-top-expected.txt
r259900 r272607 1 CONSOLE MESSAGE: Unsafe JavaScript attempt to initiate navigation for frame with URL 'http://127.0.0.1:8000/security/no-popup-from-sandbox-top.html' from frame with URL 'data:text/html, <script> var win = window.open('about:blank', '_top'); alert(win ?%20'FAIL'%20:%20'PASS');%20%20%20%20%20%20%20%3C/script%3E'. The frame attempting navigation of the top-level window is sandboxed, but the 'allow-top-navigation' flag is not set.1 CONSOLE MESSAGE: Unsafe JavaScript attempt to initiate navigation for frame with URL 'http://127.0.0.1:8000/security/no-popup-from-sandbox-top.html' from frame with URL 'data:text/html, <script> var win = window.open('about:blank', '_top'); console.log(win ?%20'FAIL'%20:%20'PASS');%20%20%20%20%20%20%20%3C/script%3E'. The frame attempting navigation of the top-level window is sandboxed, but the 'allow-top-navigation' flag is not set. 2 2 3 ALERT: PASS3 CONSOLE MESSAGE: PASS 4 4 To run this test outside of DumpRenderTree, please disable your popup blocker! 5 5 -
trunk/LayoutTests/http/tests/security/no-popup-from-sandbox-top.html
r221193 r272607 10 10 <script> 11 11 var win = window.open('about:blank', '_top'); 12 alert(win ? 'FAIL' : 'PASS');12 console.log(win ? 'FAIL' : 'PASS'); 13 13 </script>" 14 14 ></iframe> -
trunk/LayoutTests/http/tests/security/no-popup-from-sandbox.html
r221193 r272607 10 10 <script> 11 11 var win = window.open('about:blank', '_blank'); 12 alert(win ? 'FAIL' : 'PASS');12 console.log(win ? 'FAIL' : 'PASS'); 13 13 </script>" 14 14 ></iframe> -
trunk/LayoutTests/http/tests/security/popup-allowed-by-sandbox-when-allowed-expected.txt
r99301 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 To run this test outside of DumpRenderTree, please disable your popup blocker! 3 3 -
trunk/LayoutTests/http/tests/security/popup-allowed-by-sandbox-when-allowed.html
r221193 r272607 12 12 <script> 13 13 var win = window.open('data:text/html,<script>if (window.testRunner) testRunner.notifyDone();<\/script>', '_blank'); 14 alert(win ? 'PASS' : 'FAIL');14 console.log(win ? 'PASS' : 'FAIL'); 15 15 </script>" 16 16 ></iframe> -
trunk/LayoutTests/http/tests/security/resources/cross-frame-iframe-for-put-test.html
r223556 r272607 32 32 message = String(message).replace(/\n/g, ""); 33 33 if (window.testRunner) { 34 alert(message);34 console.log(message); 35 35 } else { 36 36 log(message); … … 409 409 // Using shouldBe for parent and top causes extraneous warnings due to cross-orgin toString'ing. 410 410 if (window.parent === parentOld) { 411 alert("PASS: window.parent should be parentOld and is.");411 console.log("PASS: window.parent should be parentOld and is."); 412 412 } else { 413 alert("*** FAIL: window.parent should be parentOld but instead is " + window.parent + ". ***");413 console.log("*** FAIL: window.parent should be parentOld but instead is " + window.parent + ". ***"); 414 414 } 415 415 416 416 if (window.top === topOld) { 417 alert("PASS: window.top should be topOld and is.");417 console.log("PASS: window.top should be topOld and is."); 418 418 } else { 419 alert("*** FAIL: window.top should be topOld but instead is " + window.top + ". ***");419 console.log("*** FAIL: window.top should be topOld but instead is " + window.top + ". ***"); 420 420 } 421 421 -
trunk/LayoutTests/http/tests/security/resources/drag-drop-allowed.html
r120174 r272607 20 20 21 21 if (document.getElementById("dragme").parentNode.tagName == "SPAN" && document.getElementById("dragme").src.length > 10) 22 alert("PASS");22 console.log("PASS"); 23 23 else 24 alert("FAIL");24 console.log("FAIL"); 25 25 26 26 testRunner.notifyDone(); -
trunk/LayoutTests/http/tests/security/resources/drag-drop.html
r120174 r272607 5 5 { 6 6 if (document.body.innerHTML.match(/Dragme/i)) 7 alert("FAIL");7 console.log("FAIL"); 8 8 else 9 alert("PASS");9 console.log("PASS"); 10 10 11 11 if (window.testRunner) -
trunk/LayoutTests/http/tests/security/sandboxed-iframe-ALLOWED-modals.html
r221193 r272607 4 4 </script> 5 5 <p>This test passes if opening modal dialogs is allowed and no error message is logged in the console.</p> 6 <iframe sandbox="allow-scripts allow-modals" 7 src="data:text/html,<script> 8 alert('MESSAGE'); 9 </script>"></iframe> 10 <iframe sandbox="allow-scripts allow-modals" 11 src="data:text/html,<script> 12 confirm('MESSAGE?'); 13 </script>"></iframe> 14 <iframe sandbox="allow-scripts allow-modals" 15 src="data:text/html,<script> 16 prompt('MESSAGE:', 'DEFAULT'); 17 </script>"></iframe> 18 <iframe sandbox="allow-scripts allow-modals" 19 src="data:text/html,<script> 20 print(); 21 </script>"></iframe> 22 <iframe sandbox="allow-scripts allow-modals" 23 src="data:text/html,<script> 24 document.execCommand('print', true, null); 25 </script>"></iframe> 6 <iframe sandbox="allow-scripts allow-modals allow-same-origin" src="resources/sandboxed-iframe-ALLOWED-modals-iframe.html"></iframe> -
trunk/LayoutTests/http/tests/security/xss-DENIED-window-index-assign-expected.txt
r259900 r272607 1 ALERT: undefined1 CONSOLE MESSAGE: undefined 2 2 CONSOLE MESSAGE: TypeError: parent[0].f is not a function. (In 'parent[0].f()', 'parent[0].f' is undefined) 3 3 -
trunk/LayoutTests/http/tests/security/xss-DENIED-window-index-assign.html
r153526 r272607 6 6 a: "1", 7 7 f: function() { 8 alert("FAIL: Child called parent.f()");8 console.log("FAIL: Child called parent.f()"); 9 9 } 10 10 }; 11 11 </script> 12 <iframe src="data:text/html,<script> alert(parent[0].a);</script><script>parent[0].f();</script>"></iframe><br>12 <iframe src="data:text/html,<script>console.log(parent[0].a);</script><script>parent[0].f();</script>"></iframe><br> 13 13 This test passes if the access is forbidden. -
trunk/LayoutTests/http/tests/security/xss-DENIED-window-name-alert-expected.txt
r150403 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/xss-DENIED-window-name-alert.html
r221193 r272607 6 6 src="data:text/html,<script> 7 7 window.name='alert2'; 8 alert(top.alert2 === window ? 'PASS' : 'FAIL');8 console.log(top.alert2 === window ? 'PASS' : 'FAIL'); 9 9 </script>"></iframe> -
trunk/LayoutTests/http/tests/security/xssAuditor/base-href-control-char-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-head-base-href.pl?q=%3Cbase%20href=%27http://127.0.0.1:8000/sec%01urity/xssAuditor/resources/base-href/%27%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 ALERT: This is a safe script.2 CONSOLE MESSAGE: This is a safe script. 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/base-href-direct-expected.txt
r54010 r272607 1 ALERT: /XSS/1 CONSOLE MESSAGE: /XSS/ 2 2 We allow direct injections into base tags to reduce false positives. 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/base-href-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-head-base-href.pl?q=%3Cbase%20href=%27http://127.0.0.1:8000/security/xssAuditor/resources/base-href/%27%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 ALERT: This is a safe script.2 CONSOLE MESSAGE: This is a safe script. 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/base-href-null-char-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-head-base-href.pl?q=%3Cbase%20href=%27http://127.0.0.1:8000/sec%00urity/xssAuditor/resources/base-href/%27%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 ALERT: This is a safe script.2 CONSOLE MESSAGE: This is a safe script. 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/base-href-safe-expected.txt
r45642 r272607 1 ALERT: This is a safe script.1 CONSOLE MESSAGE: This is a safe script. 2 2 -
trunk/LayoutTests/http/tests/security/xssAuditor/base-href-safe2-expected.txt
r45642 r272607 1 ALERT: This is a safe script.1 CONSOLE MESSAGE: This is a safe script. 2 2 -
trunk/LayoutTests/http/tests/security/xssAuditor/base-href-safe3-expected.txt
r45763 r272607 1 ALERT: This is a safe script.1 CONSOLE MESSAGE: This is a safe script. 2 2 -
trunk/LayoutTests/http/tests/security/xssAuditor/base-href-scheme-relative-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-head-base-href.pl?q=%3Cbase%20href=%27//127.0.0.1:8000/security/xssAuditor/resources/base-href/%27%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 ALERT: This is a safe script.2 CONSOLE MESSAGE: This is a safe script. 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/cached-frame-expected.txt
r267644 r272607 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://127.0.0.1:8000/security/xssAuditor/resources/nph-cached.pl?q=%3cscript%3e alert(/XSS/);%3c/script%3e' because its source code was found within the request. The server sent an 'X-XSS-Protection' header requesting this behavior.2 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://127.0.0.1:8000/security/xssAuditor/resources/nph-cached.pl?q=%3cscript%3e alert(/XSS/);%3c/script%3e' because its source code was found within the request. The server sent an 'X-XSS-Protection' header requesting this behavior.1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://127.0.0.1:8000/security/xssAuditor/resources/nph-cached.pl?q=%3cscript%3econsole.log(/XSS/);%3c/script%3e' because its source code was found within the request. The server sent an 'X-XSS-Protection' header requesting this behavior. 2 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://127.0.0.1:8000/security/xssAuditor/resources/nph-cached.pl?q=%3cscript%3econsole.log(/XSS/);%3c/script%3e' because its source code was found within the request. The server sent an 'X-XSS-Protection' header requesting this behavior. 3 3 Check that an X-XSS-Protection header added by a 304 response does not override one from the original request. 4 4 -
trunk/LayoutTests/http/tests/security/xssAuditor/cached-frame.html
r269236 r272607 29 29 </head> 30 30 <body> 31 <iframe src="http://127.0.0.1:8000/security/xssAuditor/resources/nph-cached.pl?q=%3cscript%3e alert(/XSS/);%3c/script%3e" onload="frameLoaded()"></iframe>31 <iframe src="http://127.0.0.1:8000/security/xssAuditor/resources/nph-cached.pl?q=%3cscript%3econsole.log(/XSS/);%3c/script%3e" onload="frameLoaded()"></iframe> 32 32 </body> 33 33 </html> -
trunk/LayoutTests/http/tests/security/xssAuditor/cookie-injection-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: The Set-Cookie meta tag is obsolete and was ignored. Use the HTTP header Set-Cookie or document.cookie instead. 2 ALERT: PASS2 CONSOLE MESSAGE: PASS 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/data-urls-work-expected.txt
r77470 r272607 1 ALERT: PASS1 CONSOLE MESSAGE: PASS 2 2 -
trunk/LayoutTests/http/tests/security/xssAuditor/data-urls-work.html
r269236 r272607 9 9 </head> 10 10 <body> 11 <iframe src="data:text/html,<script> alert('PASS');</script>"></iframe>11 <iframe src="data:text/html,<script>console.log('PASS');</script>"></iframe> 12 12 </body> 13 13 </html> -
trunk/LayoutTests/http/tests/security/xssAuditor/dom-write-innerHTML-expected.txt
r95161 r272607 1 ALERT: XSS1 CONSOLE MESSAGE: XSS 2 2 -
trunk/LayoutTests/http/tests/security/xssAuditor/dom-write-innerHTML.html
r269236 r272607 15 15 </head> 16 16 <body> 17 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-dom-write-innerHTML.html?q=<img src='about:blank' onerror=' alert(String.fromCharCode(0x58,0x53,0x53))'>">17 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-dom-write-innerHTML.html?q=<img src='about:blank' onerror='console.log(String.fromCharCode(0x58,0x53,0x53))'>"> 18 18 </iframe> 19 19 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/form-action-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/form-action.html&q=%3Cform%20action=http://127.0.0.1:8000/%20method=x%3E%3Cinput%20type=submit%3E%3Cinput%20name=x%20value=%27Please%20type%20your%20PIN.%27%3E¬ifyDone=1&showAction=1' 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 ALERT: Form action set to about:blank2 CONSOLE MESSAGE: Form action set to about:blank 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/formaction-on-button-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/formaction-on-button.html&q=%3Cform%3E%3Cbutton%20formaction=%27http://example.com/%27%3E¬ifyDone=1&showFormaction=1' 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 ALERT: formaction present on BUTTON with value of about:blank2 CONSOLE MESSAGE: formaction present on BUTTON with value of about:blank 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/formaction-on-input-expected.txt
r259900 r272607 1 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/formaction-on-input.html&q=%3Cform%3E%3Cinput%20formaction=%27http://example.com/%27%3E¬ifyDone=1&showFormaction=1' 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 ALERT: formaction present on INPUT with value of about:blank2 CONSOLE MESSAGE: formaction present on INPUT with value of about:blank 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/javascript-link-safe-expected.txt
r60014 r272607 1 ALERT: This is a safe script.1 CONSOLE MESSAGE: This is a safe script. 2 2 -
trunk/LayoutTests/http/tests/security/xssAuditor/javascript-link-safe.html
r269236 r272607 10 10 </head> 11 11 <body> 12 <iframe src="http://localhost:8000/security/xssAuditor/resources/javascript-link-safe.html?q= alert('This is a safe script.')">12 <iframe src="http://localhost:8000/security/xssAuditor/resources/javascript-link-safe.html?q=console.log('This is a safe script.')"> 13 13 </iframe> 14 14 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/property-escape-noquotes-expected.txt
r95161 r272607 1 ALERT: XSS1 CONSOLE MESSAGE: XSS 2 2 This test fails because the XSSAuditor allows requests that do not contain illegal URI characters. Thus, the XSSAuditor does not detect breaking out of an unquoted property. A future update may reinstate this functionality. 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/property-escape-noquotes-tab-slash-chars-expected.txt
r95161 r272607 1 ALERT: XSS1 CONSOLE MESSAGE: XSS 2 2 This test fails because the XSSAuditor allows requests that do not contain illegal URI characters. Thus, the XSSAuditor does not detect breaking out of an unquoted property. A future update may reinstate this functionality. 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/property-escape-noquotes-tab-slash-chars.html
r269236 r272607 12 12 the XSSAuditor does not detect breaking out of an unquoted property. A future update may reinstate this 13 13 functionality.</p> 14 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-property-noquotes.pl?q=dummy%09/onload= alert(String.fromCharCode(0x58,0x53,0x53))&dummy=dummy">14 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-property-noquotes.pl?q=dummy%09/onload=console.log(String.fromCharCode(0x58,0x53,0x53))&dummy=dummy"> 15 15 </iframe> 16 16 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/property-escape-noquotes.html
r269236 r272607 12 12 the XSSAuditor does not detect breaking out of an unquoted property. A future update may reinstate this 13 13 functionality.</p> 14 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-property-noquotes.pl?q=1%20onload= alert(String.fromCharCode(0x58,0x53,0x53))">14 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-property-noquotes.pl?q=1%20onload=console.log(String.fromCharCode(0x58,0x53,0x53))"> 15 15 </iframe> 16 16 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/property-inject-expected.txt
r95161 r272607 1 ALERT: XSS1 CONSOLE MESSAGE: XSS 2 2 This test fails because the XSSAuditor allows requests that do not contain illegal URI characters. Thus, the XSSAuditor does not detect the injection of an inline event handler within a tag. A future update may reinstate this functionality. 3 3 -
trunk/LayoutTests/http/tests/security/xssAuditor/property-inject.html
r269236 r272607 12 12 the XSSAuditor does not detect the injection of an inline event handler within a tag. A future update may 13 13 reinstate this functionality.</p> 14 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-inner-tag.pl?q=onload= alert(String.fromCharCode(0x58,0x53,0x53))">14 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-inner-tag.pl?q=onload=console.log(String.fromCharCode(0x58,0x53,0x53))"> 15 15 </iframe> 16 16 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/base-href/really-safe-script.js
r45642 r272607 1 alert('This is a safe script.');1 console.log('This is a safe script.'); -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/base-href/safe-script.js
r45642 r272607 1 alert(/XSS/);1 console.log(/XSS/); -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
r261946 r272607 106 106 if ($cgi->param('showAction')) { 107 107 print "<script>\n"; 108 print " alert('Form action set to ' + document.forms[0].action);\n";108 print " console.log('Form action set to ' + document.forms[0].action);\n"; 109 109 print "</script>\n"; 110 110 } … … 113 113 print " var e = document.querySelector('[formaction]');\n"; 114 114 print " if (e)\n"; 115 print " alert('formaction present on ' + e.nodeName + ' with value of ' + e.getAttribute('formaction'));\n";115 print " console.log('formaction present on ' + e.nodeName + ' with value of ' + e.getAttribute('formaction'));\n"; 116 116 print "</script>\n"; 117 117 } … … 127 127 print " document.getElementById('console').innerText = log;\n"; 128 128 print " } else\n"; 129 print " alert('No element matched the given selector.');\n";129 print " console.log('No element matched the given selector.');\n"; 130 130 print "</script>\n"; 131 131 } … … 140 140 } 141 141 if ($cgi->param('alert-cookie')) { 142 print "<script>if (/xssAuditorTestCookie/.test(document.cookie)) { alert('FAIL: ' + document.cookie); document.cookie = 'xssAuditorTestCookie=remove; max-age=-1'; } else alert('PASS');</script>\n";142 print "<script>if (/xssAuditorTestCookie/.test(document.cookie)) { console.log('FAIL: ' + document.cookie); document.cookie = 'xssAuditorTestCookie=remove; max-age=-1'; } else console.log('PASS');</script>\n"; 143 143 } 144 144 if ($cgi->param('echo-report')) { -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/javascript-link-safe.html
r120174 r272607 4 4 </head> 5 5 <body> 6 <a id="anchorLink" href="javascript: alert('This is a safe script.')">test</a>6 <a id="anchorLink" href="javascript:console.log('This is a safe script.')">test</a> 7 7 <script> 8 8 var event = document.createEvent('MouseEvent'); -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/nph-cached.pl
r142068 r272607 27 27 print "<body>\r\n"; 28 28 print "<input id=\"rand\" type=\"text\" value=\"$nonce\"/>\r\n"; 29 print "<script> alert(/XSS/);</script>\r\n";29 print "<script>console.log(/XSS/);</script>\r\n"; 30 30 print "</body>\r\n"; 31 31 print "</html>\r\n"; -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/safe-script-noquotes.js
r48961 r272607 1 alert(/This is a safe script./);1 console.log(/This is a safe script./); -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/safe-script.js
r45642 r272607 1 alert('This is a safe script.');1 console.log('This is a safe script.'); -
trunk/LayoutTests/http/tests/security/xssAuditor/resources/script-tag-safe2.html
r48961 r272607 2 2 <html> 3 3 <head> 4 <script> alert(/This is a safe script./)</script>4 <script>console.log(/This is a safe script./)</script> 5 5 </head> 6 6 <body> -
trunk/LayoutTests/http/tests/security/xssAuditor/script-tag-near-start-expected.txt
r259900 r272607 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/script-tag-near-start.html&script-expression-follows=1&q=%3Cscript%3E%22%3Cscript%3E%22- alert(/XSS/)' 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/script-tag-near-start.html&script-expression-follows=1&q=%3Cscript%3E%22%3Cscript%3E%22-console.log(/XSS/)' 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/script-tag-near-start.html
r269236 r272607 9 9 </head> 10 10 <body> 11 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/script-tag-near-start.html&script-expression-follows=1&q=<script>%22<script>%22- alert(/XSS/)">11 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/script-tag-near-start.html&script-expression-follows=1&q=<script>%22<script>%22-console.log(/XSS/)"> 12 12 </iframe> 13 13 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/script-tag-safe2-expected.txt
r48961 r272607 1 ALERT: /This is a safe script./1 CONSOLE MESSAGE: /This is a safe script./ 2 2 -
trunk/LayoutTests/http/tests/security/xssAuditor/script-tag-safe2.html
r269236 r272607 9 9 </head> 10 10 <body> 11 <iframe src='http://localhost:8000/security/xssAuditor/resources/script-tag-safe2.html?q= alert(/This+is+a+safe+script./)'>11 <iframe src='http://localhost:8000/security/xssAuditor/resources/script-tag-safe2.html?q=console.log(/This+is+a+safe+script./)'> 12 12 </iframe> 13 13 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/script-tag-safe3-expected.txt
r48961 r272607 1 ALERT: /This is a safe script./1 CONSOLE MESSAGE: /This is a safe script./ 2 2 -
trunk/LayoutTests/http/tests/security/xssAuditor/script-tag-safe3.html
r269236 r272607 9 9 </head> 10 10 <body> 11 <iframe src='http://localhost:8000/security/xssAuditor/resources/script-tag-safe3.html?q= alert(/This+is+a+safe+script./)%3B'>11 <iframe src='http://localhost:8000/security/xssAuditor/resources/script-tag-safe3.html?q=console.log(/This+is+a+safe+script./)%3B'> 12 12 </iframe> 13 13 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/script-tag-src-redirect-safe-expected.txt
r45787 r272607 1 ALERT: This is a safe script.1 CONSOLE MESSAGE: This is a safe script. 2 2 -
trunk/LayoutTests/http/tests/security/xssAuditor/script-tag-with-injected-comment-expected.txt
r259900 r272607 1 CONSOLE MESSAGE: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?clutter=/*]]%3E*/&q=%3Cscript%3E/*%3C!CDATA[*/ alert(/XSS/)&q2=%3C/script%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?clutter=/*]]%3E*/&q=%3Cscript%3E/*%3C!CDATA[*/console.log(/XSS/)&q2=%3C/script%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/script-tag-with-injected-comment.html
r269236 r272607 9 9 </head> 10 10 <body> 11 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?clutter=/*]]>*/&q=<script>/*<!CDATA[*/ alert(/XSS/)&q2=</script>">11 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?clutter=/*]]>*/&q=<script>/*<!CDATA[*/console.log(/XSS/)&q2=</script>"> 12 12 </iframe> 13 13 </body> -
trunk/LayoutTests/http/tests/security/xssAuditor/script-tag-with-source-same-host-expected.txt
r49605 r272607 1 ALERT: This is a safe script.1 CONSOLE MESSAGE: This is a safe script. 2 2 -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async-expected.txt
r113589 r272607 1 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooCookie2 ALERT: XHR response - Set the foo cookie1 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooCookie 2 CONSOLE MESSAGE: XHR response - Set the foo cookie 3 3 Test case for bug 37781: [XHR] Cross-Origin asynchronous request with credential raises NETWORK_ERR 4 4 -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-sync-expected.txt
r113589 r272607 1 ALERT: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooCookie2 ALERT: XHR response - Set the foo cookie1 CONSOLE MESSAGE: http://localhost:8000/cookies/resources/cookie-utility.php?queryfunction=setFooCookie 2 CONSOLE MESSAGE: XHR response - Set the foo cookie 3 3 Test case for bug 37781: [XHR] Cross-Origin synchronous request with credential raises NETWORK_ERR 4 4 -
trunk/LayoutTests/platform/wk2/http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/proper-nested-upgrades-expected.txt
r231450 r272607 2 2 frame "<!--frame1-->" - didStartProvisionalLoadForFrame 3 3 frame "<!--frame1-->" - didCommitLoadForFrame 4 ALERT: PASS4 CONSOLE MESSAGE: PASS 5 5 frame "<!--frame1-->" - didFinishDocumentLoadForFrame 6 6 frame "<!--frame2-->" - didStartProvisionalLoadForFrame 7 7 frame "<!--frame2-->" - didCommitLoadForFrame 8 ALERT: PASS9 ALERT: PASS8 CONSOLE MESSAGE: PASS 9 CONSOLE MESSAGE: PASS 10 10 frame "<!--frame2-->" - didFinishDocumentLoadForFrame 11 11 frame "<!--frame2-->" - didHandleOnloadEventsForFrame -
trunk/LayoutTests/plugins/fullscreen-plugins-dont-reload-expected.txt
r95371 r272607 1 ALERT: Plugin Loaded!1 CONSOLE MESSAGE: Plugin Loaded! 2 2 go fullscreen 3 3 There should only be one ALERT. If there were two, the plugin was reloaded during the transition to fullscreen. -
trunk/LayoutTests/plugins/plugin-document-back-forward-expected.txt
r77706 r272607 1 ALERT: Plugin Loaded!2 ALERT: Plugin Loaded!1 CONSOLE MESSAGE: Plugin Loaded! 2 CONSOLE MESSAGE: Plugin Loaded! 3 3 -
trunk/Source/WebCore/ChangeLog
r272603 r272607 1 2021-02-09 Chris Dumez <cdumez@apple.com> 2 3 Disallow alert/confirm/prompt in cross-origin-domain subframes 4 https://bugs.webkit.org/show_bug.cgi?id=221568 5 6 Reviewed by Geoff Garen. 7 8 Disallow alert/confirm/prompt in cross-origin-domain subframes as per the latest HTML specification: 9 - https://github.com/whatwg/html/pull/6297 10 11 Tests: http/tests/security/cross-origin-js-prompt-forbidden.html 12 http/tests/security/same-origin-different-domain-js-prompt-forbidden.html 13 14 * page/DOMWindow.cpp: 15 (WebCore::DOMWindow::alert): 16 (WebCore::DOMWindow::confirmForBindings): 17 (WebCore::DOMWindow::prompt): 18 * page/SecurityOrigin.cpp: 19 * page/SecurityOrigin.h: 20 1 21 2021-02-09 Alex Christensen <achristensen@webkit.org> 2 22 -
trunk/Source/WebCore/page/DOMWindow.cpp
r272122 r272607 1113 1113 } 1114 1114 1115 if (!document()->securityOrigin().canAccess(document()->topDocument().securityOrigin())) { 1116 printErrorMessage("Use of window.alert is not allowed in different origin-domain iframes."); 1117 return; 1118 } 1119 1115 1120 frame->document()->updateStyleIfNeeded(); 1116 1121 #if ENABLE(POINTER_LOCK) … … 1141 1146 } 1142 1147 1148 if (!document()->securityOrigin().canAccess(document()->topDocument().securityOrigin())) { 1149 printErrorMessage("Use of window.confirm is not allowed in different origin-domain iframes."); 1150 return false; 1151 } 1152 1143 1153 frame->document()->updateStyleIfNeeded(); 1144 1154 #if ENABLE(POINTER_LOCK) … … 1166 1176 if (!page->arePromptsAllowed()) { 1167 1177 printErrorMessage("Use of window.prompt is not allowed while unloading a page."); 1178 return String(); 1179 } 1180 1181 if (!document()->securityOrigin().canAccess(document()->topDocument().securityOrigin())) { 1182 printErrorMessage("Use of window.prompt is not allowed in different origin-domain iframes."); 1168 1183 return String(); 1169 1184 } -
trunk/Source/WebCore/page/SecurityOrigin.h
r269888 r272607 96 96 // script from one security origin to read or write objects from 97 97 // another SecurityOrigin. 98 // This method implements the "same origin-domain" algorithm from the HTML Standard: 99 // https://html.spec.whatwg.org/#same-origin-domain 98 100 WEBCORE_EXPORT bool canAccess(const SecurityOrigin&) const; 99 101 -
trunk/Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp
r261014 r272607 181 181 else if (strcasecmp(argn[i], "src") == 0 && 182 182 strcasecmp(argv[i], "data:application/x-webkit-test-netscape,alertwhenloaded") == 0) 183 executeScript(obj, " alert('Plugin Loaded!')");183 executeScript(obj, "console.log('Plugin Loaded!')"); 184 184 else if (strcasecmp(argn[i], "src") == 0 && 185 185 strcasecmp(argv[i], "data:application/x-webkit-test-netscape,logifloaded") == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.