Changeset 195096 in webkit
- Timestamp:
- Jan 15, 2016, 12:33:11 AM (10 years ago)
- Location:
- releases/WebKitGTK/webkit-2.10
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.10/LayoutTests/ChangeLog
r195095 r195096 1 2015-12-02 Alex Christensen <achristensen@webkit.org> 2 3 Asynchronously call onerror when a content blocker blocks ascript element's load 4 https://bugs.webkit.org/show_bug.cgi?id=151649 5 6 Reviewed by Brady Eidson. 7 8 * http/tests/contentextensions/script-onerror-expected.txt: Added. 9 * http/tests/contentextensions/script-onerror.html: Added. 10 * http/tests/contentextensions/script-onerror.html.json: Added. 11 * http/tests/misc/unloadable-script-expected.txt: 12 * http/tests/misc/unloadable-script.html: 13 * http/tests/security/local-JavaScript-from-remote-expected.txt: 14 * http/tests/security/local-JavaScript-from-remote.html: 15 Added testRunner.waitUntilDone and testRunner.notifyDone to reflect the fact that onerror is no longer called synchronously. 16 1 17 2015-12-02 Yoav Weiss <yoav@yoav.ws> 2 18 -
releases/WebKitGTK/webkit-2.10/LayoutTests/http/tests/misc/unloadable-script-expected.txt
r178527 r195096 1 CONSOLE MESSAGE: line 3 0: Not allowed to load local resource: foobar2 CONSOLE MESSAGE: line 35: Not allowed to load local resource: foobar1 CONSOLE MESSAGE: line 36: Not allowed to load local resource: foobar 2 CONSOLE MESSAGE: line 41: Not allowed to load local resource: foobar 3 3 Test for bug 13584: <script> code wrongly assumes requests can't fail. 4 4 -
releases/WebKitGTK/webkit-2.10/LayoutTests/http/tests/misc/unloadable-script.html
r124692 r195096 8 8 } 9 9 10 var errorCount = 0; 10 11 function handleScriptOnError() 11 12 { 12 13 log('onerror called (good!)'); 14 errorCount++; 15 if (errorCount == 2 && window.testRunner) 16 testRunner.notifyDone(); 13 17 } 14 18 </script> … … 24 28 25 29 <script> 26 if (window.testRunner) 30 if (window.testRunner) { 27 31 testRunner.dumpAsText(); 32 testRunner.waitUntilDone(); 33 } 28 34 29 35 <!-- we are an HTTP test so the security origin will fail the file method --> -
releases/WebKitGTK/webkit-2.10/LayoutTests/http/tests/security/local-JavaScript-from-remote-expected.txt
r178527 r195096 1 CONSOLE MESSAGE: line 29: Not allowed to load local resource: localScript.js1 CONSOLE MESSAGE: line 33: Not allowed to load local resource: localScript.js 2 2 This test is to see if a remote file can run a local script. 3 3 Currently this test cannot be run manually on Windows because we do not have a function like pathToLocalResource() outside of DRT. -
releases/WebKitGTK/webkit-2.10/LayoutTests/http/tests/security/local-JavaScript-from-remote.html
r120174 r195096 5 5 6 6 function test() { 7 if (window.testRunner) 7 if (window.testRunner) { 8 8 testRunner.dumpAsText(); 9 testRunner.waitUntilDone(); 10 } 9 11 10 12 var localScriptLocation = "file:///tmp/LayoutTests/http/tests/security/resources/localScript.js"; … … 25 27 var tag = document.getElementById("result"); 26 28 tag.innerHTML = "Test Passed: Local script not loaded."; 29 if (window.testRunner) 30 testRunner.notifyDone(); 27 31 }); 28 32 -
releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog
r195095 r195096 1 2015-12-02 Alex Christensen <achristensen@webkit.org> 2 3 Asynchronously call onerror when a content blocker blocks ascript element's load 4 https://bugs.webkit.org/show_bug.cgi?id=151649 5 6 Reviewed by Brady Eidson. 7 8 Test: http/tests/contentextensions/script-onerror.html 9 10 * dom/ScriptElement.cpp: 11 (WebCore::ScriptElement::ScriptElement): 12 (WebCore::ScriptElement::requestScript): 13 * dom/ScriptElement.h: 14 1 15 2015-12-02 Yoav Weiss <yoav@yoav.ws> 2 16 -
releases/WebKitGTK/webkit-2.10/Source/WebCore/dom/ScriptElement.cpp
r186388 r195096 70 70 , m_willExecuteInOrder(false) 71 71 , m_requestUsesAccessControl(false) 72 , m_errorEventTimer(*this, &ScriptElement::dispatchErrorEvent) 72 73 { 73 74 if (parserInserted && m_element.document().scriptableDocumentParser() && !m_element.document().isInDocumentWrite()) … … 274 275 } 275 276 276 if (m_cachedScript) {277 if (m_cachedScript) 277 278 return true; 278 } 279 280 dispatchErrorEvent(); 279 280 m_errorEventTimer.startOneShot(0); 281 281 return false; 282 282 } -
releases/WebKitGTK/webkit-2.10/Source/WebCore/dom/ScriptElement.h
r185813 r195096 24 24 #include "CachedResourceClient.h" 25 25 #include "CachedResourceHandle.h" 26 #include "Timer.h" 26 27 #include <wtf/text/TextPosition.h> 27 28 #include <wtf/text/WTFString.h> … … 110 111 String m_characterEncoding; 111 112 String m_fallbackCharacterEncoding; 113 Timer m_errorEventTimer; 112 114 }; 113 115
Note:
See TracChangeset
for help on using the changeset viewer.