Changeset 230691 in webkit
- Timestamp:
- Apr 16, 2018 4:57:08 PM (6 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r230688 r230691 1 2018-04-16 Keith Rollin <krollin@apple.com> 2 3 REGRESSION: [mac-wk2 release] LayoutTest http/tests/security/contentSecurityPolicy/script-src-blocked-error-event.html is flaky 4 https://bugs.webkit.org/show_bug.cgi?id=184673 5 <rdar://problem/39474698> 6 7 Unreviewed test gardening. The test was flaky because the HTTP parser 8 would try to preload the Javascript resource. Sometimes this operation 9 would complete in time to print its own console message, duplicating a 10 subsequent one when the non-preloading resource-load occurs. Updated 11 the test to load the Javascript in such a way that it skips the reload 12 step. 13 14 * TestExpectations: 15 * http/tests/security/contentSecurityPolicy/script-src-blocked-error-event-expected.txt: 16 * http/tests/security/contentSecurityPolicy/script-src-blocked-error-event.html: 17 1 18 2018-04-16 Ross Kirsling <ross.kirsling@sony.com> 2 19 -
trunk/LayoutTests/TestExpectations
r230632 r230691 1197 1197 webkit.org/b/154522 http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-base-uri-deny.html 1198 1198 webkit.org/b/155132 http/tests/security/contentSecurityPolicy/video-with-https-url-allowed-by-csp-media-src-star.html [ Failure ] 1199 http/tests/security/contentSecurityPolicy/script-src-blocked-error-event.html [ Pass Failure ]1200 1199 webkit.org/b/158480 http/tests/websocket/tests/hybi/upgrade-simple-ws.html [ Skip ] 1201 1200 -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-blocked-error-event-expected.txt
r195367 r230691 1 CONSOLE MESSAGE: Refused to load the script 'http://localhost:8000/security/contentSecurityPolicy/resources/script-set-value.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'". 2 1 CONSOLE MESSAGE: Refused to load http://localhost:8000/security/contentSecurityPolicy/resources/script-set-value.js because it does not appear in the script-src directive of the Content Security Policy. 3 2 4 3 PASS Script element has error on bad script-src -
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-blocked-error-event.html
r195367 r230691 19 19 </head> 20 20 <body> 21 <script onload="scriptLoad();" onerror="scriptError();" src="http://localhost:8000/security/contentSecurityPolicy/resources/script-set-value.js"></script> 21 <script> 22 let script = document.createElement("script"); 23 script.src = "http://localhost:8000/security/contentSecurityPolicy/resources/script-set-value.js"; 24 script.onerror = scriptError; 25 script.onload = scriptLoad; 26 document.body.appendChild(script); 27 </script> 22 28 </body> 23 29 </html>
Note: See TracChangeset
for help on using the changeset viewer.