Changeset 271878 in webkit
- Timestamp:
- Jan 25, 2021, 10:56:21 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r271877 r271878 1 2021-01-25 Ryosuke Niwa <rniwa@webkit.org> 2 3 Unreviewed, reverting r271514 and r271549 4 5 Made TestWebKitAPI.WebKit.PrintFrame flaky 6 7 Reverted changeset: 8 9 "Use event loop to set title" 10 https://bugs.webkit.org/show_bug.cgi?id=218496 11 https://trac.webkit.org/changeset/271514 12 1 13 2021-01-25 Ryan Haddad <ryanhaddad@apple.com> 2 14 -
trunk/LayoutTests/fast/dom/title-text-property-2.html
r271514 r271878 2 2 <head> 3 3 <script> 4 function startTest() {4 function runTests() { 5 5 if (window.testRunner) { 6 testRunner.waitUntilDone();7 6 testRunner.dumpAsText(); 8 7 testRunner.dumpTitleChanges(); … … 12 11 document.title = 'TITLE1'; 13 12 14 internals.queueTask("DOMManipulation", () => continueTest());15 }16 17 function continueTest() {18 13 title = document.getElementsByTagName('title').item(0); 19 14 … … 21 16 title.text = 'TITLE2'; 22 17 23 internals.queueTask("DOMManipulation", () => endTest());24 }25 26 function endTest() {27 18 newTitle = document.createElement('title'); 28 19 console.log("Should not set title"); … … 38 29 titleElement.parentNode.removeChild(titleElement); 39 30 } 40 41 internals.queueTask("DOMManipulation", () => testRunner.notifyDone());42 31 } 43 32 </script> 44 33 <title>Initial title</title> 45 34 </head> 46 <body onload=" startTest();" >35 <body onload="runTests();" > 47 36 </body> 48 37 </html> -
trunk/LayoutTests/fast/dom/title-text-property-assigning-empty-string.html
r271514 r271878 2 2 <head> 3 3 <script> 4 function startTest() {4 function runTests() { 5 5 if (window.testRunner) { 6 testRunner.waitUntilDone();7 6 testRunner.dumpAsText(); 8 7 testRunner.dumpTitleChanges(); … … 10 9 11 10 document.title = 'New non-empty title'; 12 internals.queueTask("DOMManipulation", () => endTest())13 }14 15 function endTest() {16 11 document.title = ''; 17 internals.queueTask("DOMManipulation", () => testRunner.notifyDone())18 12 } 19 13 </script> 20 14 </head> 21 <body onload=' startTest();'>15 <body onload='runTests();'> 22 16 </body> 23 17 </html> -
trunk/LayoutTests/fast/dom/title-text-property.html
r271514 r271878 13 13 function runTests() { 14 14 if (window.testRunner) { 15 testRunner.waitUntilDone();16 15 testRunner.dumpAsText(); 17 16 testRunner.dumpTitleChanges(); … … 26 25 27 26 debugOutput('New title is: \'' + titleElem.text + '\''); 28 29 internals.queueTask("DOMManipulation", () => testRunner.notifyDone());30 27 } 31 28 </script> -
trunk/LayoutTests/http/tests/globalhistory/history-delegate-basic-title-expected.txt
r271514 r271878 1 1 WebView navigated to url "http://127.0.0.1:8000/globalhistory/history-delegate-basic-title.html" with title "" with HTTP equivalent method "GET". The navigation was successful and was not a client redirect. 2 WebView updated the title for history URL "http://127.0.0.1:8000/globalhistory/history-delegate-basic-title.html" to "Test Title 1". 2 3 WebView updated the title for history URL "http://127.0.0.1:8000/globalhistory/history-delegate-basic-title.html" to "Test Title 2". 3 4 This test sees if the history delegate is notified of title changes. -
trunk/LayoutTests/http/tests/globalhistory/history-delegate-basic-title.html
r271514 r271878 2 2 <head> 3 3 <script> 4 if (window.testRunner) { 5 testRunner.waitUntilDone(); 4 if (window.testRunner) 6 5 testRunner.dumpAsText(); 7 }8 6 </script> 9 7 <title>Test Title 1</title> 10 8 </head> 11 <body onload="runTest()">9 <body> 12 10 This test sees if the history delegate is notified of title changes. 11 </body> 13 12 <script> 14 function runTest() {15 13 document.title = "Test Title 2"; 16 internals.queueTask("DOMManipulation", () => testRunner.notifyDone());17 }18 14 </script> 19 </body>20 15 </html> -
trunk/LayoutTests/http/tests/loading/basic-auth-load-URL-with-consecutive-slashes-expected.txt
r271514 r271878 6 6 frame "<!--frame1-->" - didCommitLoadForFrame 7 7 frame "<!--frame1-->" - didFinishDocumentLoadForFrame 8 frame "<!--frame1-->" - willPerformClientRedirectToURL: http://127.0.0.1:8000/a//b/non-existent-file.html 8 9 frame "<!--frame1-->" - didHandleOnloadEventsForFrame 9 frame "<!--frame1-->" - willPerformClientRedirectToURL: http://127.0.0.1:8000/a//b/non-existent-file.html10 10 main frame - didHandleOnloadEventsForFrame 11 11 frame "<!--frame1-->" - didFinishLoadForFrame … … 16 16 frame "<!--frame1-->" - didReceiveTitle: 404 Not Found 17 17 frame "<!--frame1-->" - didFinishDocumentLoadForFrame 18 frame "<!--frame1-->" - didHandleOnloadEventsForFrame 19 frame "<!--frame1-->" - didFinishLoadForFrame 18 frame "<!--frame1-->" - didFailLoadWithError 20 19 PASS did not cause assertion failure. -
trunk/LayoutTests/http/tests/loading/basic-auth-load-URL-with-consecutive-slashes.html
r271514 r271878 13 13 function done() 14 14 { 15 setTimeout(function() { 16 document.body.removeChild(document.getElementById("frame")); 17 if (window.testRunner) 18 testRunner.notifyDone(); 19 }, 500); 15 document.body.removeChild(document.getElementById("frame")); 16 if (window.testRunner) 17 testRunner.notifyDone(); 20 18 } 21 19 … … 27 25 </script> 28 26 </head> 29 <body onload="notifyFrameDidLoad(frame)">30 <iframe id="frame" src="resources/basic-auth-testing.php?username=webkit&password=rocks" onl ad="notifyFrameDidLoad(this)"></iframe>27 <body> 28 <iframe id="frame" src="resources/basic-auth-testing.php?username=webkit&password=rocks" onload="notifyFrameDidLoad(this)"></iframe> 31 29 <p>PASS did not cause assertion failure.</p> 32 30 </body> -
trunk/LayoutTests/http/tests/loading/redirect-with-no-location-crash-expected.txt
r271549 r271878 1 1 main frame - didStartProvisionalLoadForFrame 2 2 main frame - didCommitLoadForFrame 3 main frame - didReceiveTitle: Test for https://bugs.webkit.org/show_bug.cgi?id=29293 3 4 frame "<!--frame1-->" - didStartProvisionalLoadForFrame 4 5 main frame - didFinishDocumentLoadForFrame -
trunk/LayoutTests/http/tests/loading/redirect-with-no-location-crash.html
r271549 r271878 3 3 <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=29293 --> 4 4 <script> 5 if (window.testRunner) {5 if (window.testRunner) 6 6 testRunner.dumpAsText(); 7 testRunner.waitUntilDone();8 }9 7 </script> 10 8 </head> 11 <body onload="setTimeout(function() { if (window.testRunner) testRunner.notifyDone(); })">9 <body> 12 10 <iframe src="resources/redirect-with-no-location-crash.php"></iframe> 13 11 </body> -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r271514 r271878 584 584 webkit.org/b/163136 http/tests/xmlhttprequest/auth-reject-protection-space.html [ Pass Failure ] 585 585 586 #webkit.org/b/163139 http/tests/loading/basic-auth-load-URL-with-consecutive-slashes.html [ Pass Failure ]586 webkit.org/b/163139 http/tests/loading/basic-auth-load-URL-with-consecutive-slashes.html [ Pass Failure ] 587 587 588 588 webkit.org/b/162975 http/tests/cache/disk-cache/memory-cache-revalidation-updates-disk-cache.html [ Pass Failure ] -
trunk/LayoutTests/platform/wk2/http/tests/loading/basic-auth-load-URL-with-consecutive-slashes-expected.txt
r271514 r271878 6 6 frame "<!--frame1-->" - didCommitLoadForFrame 7 7 frame "<!--frame1-->" - didFinishDocumentLoadForFrame 8 frame "<!--frame1-->" - willPerformClientRedirectToURL: http://127.0.0.1:8000/a//b/non-existent-file.html 8 9 frame "<!--frame1-->" - didHandleOnloadEventsForFrame 9 frame "<!--frame1-->" - willPerformClientRedirectToURL: http://127.0.0.1:8000/a//b/non-existent-file.html10 10 main frame - didHandleOnloadEventsForFrame 11 11 frame "<!--frame1-->" - didFinishLoadForFrame … … 14 14 frame "<!--frame1-->" - didCancelClientRedirectForFrame 15 15 frame "<!--frame1-->" - didCommitLoadForFrame 16 frame "<!--frame1-->" - didReceiveTitle: 404 Not Found 16 17 frame "<!--frame1-->" - didFinishDocumentLoadForFrame 17 frame "<!--frame1-->" - didHandleOnloadEventsForFrame 18 frame "<!--frame1-->" - didFinishLoadForFrame 19 frame "<!--frame1-->" - didReceiveTitle: 404 Not Found 18 frame "<!--frame1-->" - didFailLoadWithError 20 19 PASS did not cause assertion failure. -
trunk/LayoutTests/platform/wk2/http/tests/loading/redirect-with-no-location-crash-expected.txt
r271549 r271878 1 1 main frame - didStartProvisionalLoadForFrame 2 2 main frame - didCommitLoadForFrame 3 main frame - didReceiveTitle: Test for https://bugs.webkit.org/show_bug.cgi?id=29293 3 4 main frame - didFinishDocumentLoadForFrame 4 5 frame "<!--frame1-->" - didStartProvisionalLoadForFrame -
trunk/Source/WebCore/ChangeLog
r271875 r271878 1 2021-01-25 Ryosuke Niwa <rniwa@webkit.org> 2 3 Unreviewed, reverting r271514 and r271549 4 5 Made TestWebKitAPI.WebKit.PrintFrame flaky 6 7 Reverted changeset: 8 9 "Use event loop to set title" 10 https://bugs.webkit.org/show_bug.cgi?id=218496 11 https://trac.webkit.org/changeset/271514 12 1 13 2021-01-25 Zalan Bujtas <zalan@apple.com> 2 14 -
trunk/Source/WebCore/dom/Document.cpp
r271643 r271878 1676 1676 m_title.direction = title.direction; 1677 1677 1678 if (!m_updateTitleTaskScheduled) { 1679 eventLoop().queueTask(TaskSource::DOMManipulation, [protectedThis = makeRef(*this), this]() mutable { 1680 m_updateTitleTaskScheduled = false; 1681 if (auto documentLoader = makeRefPtr(loader())) 1682 documentLoader->setTitle(m_title); 1683 }); 1684 m_updateTitleTaskScheduled = true; 1685 } 1678 if (auto* loader = this->loader()) 1679 loader->setTitle(m_title); 1686 1680 } 1687 1681 -
trunk/Source/WebCore/dom/Document.h
r271643 r271878 2108 2108 #endif 2109 2109 2110 bool m_updateTitleTaskScheduled { false };2111 2112 2110 OrientationNotifier m_orientationNotifier; 2113 2111 mutable RefPtr<Logger> m_logger; -
trunk/Tools/ChangeLog
r271871 r271878 1 2021-01-25 Ryosuke Niwa <rniwa@webkit.org> 2 3 Unreviewed, reverting r271514 and r271549 4 5 Made TestWebKitAPI.WebKit.PrintFrame flaky 6 7 Reverted changeset: 8 9 "Use event loop to set title" 10 https://bugs.webkit.org/show_bug.cgi?id=218496 11 https://trac.webkit.org/changeset/271514 12 1 13 2021-01-25 Wenson Hsieh <wenson_hsieh@apple.com> 2 14 -
trunk/Tools/TestWebKitAPI/Tests/WebKit/PageLoadState.cpp
r271514 r271878 36 36 37 37 static bool test1Done; 38 static bool titleChangeDone;39 38 40 39 struct PageLoadTestState { … … 114 113 PageLoadTestState* state = reinterpret_cast<PageLoadTestState*>(const_cast<void*>(clientInfo)); 115 114 state->didChangeTitle++; 116 titleChangeDone = true;117 115 } 118 116 … … 281 279 EXPECT_EQ(state.willChangeCanGoForward, 1); 282 280 283 t itleChangeDone = false;281 test1Done = false; 284 282 url = adoptWK(Util::createURLForResource("set-long-title", "html")); 285 283 WKPageLoadURL(webView.page(), url.get()); 286 Util::run(&t itleChangeDone);284 Util::run(&test1Done); 287 285 288 286 EXPECT_EQ(state.didChangeActiveURL, 4); 289 EXPECT_EQ(state.didChangeTitle, 1);290 EXPECT_EQ(state.willChangeTitle, 1);287 EXPECT_EQ(state.didChangeTitle, 2); 288 EXPECT_EQ(state.willChangeTitle, 2); 291 289 292 290 WKPageSetPageStateClient(webView.page(), nullptr); -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm
r271514 r271878 413 413 auto delegate = adoptNS([[PrintDelegate alloc] init]); 414 414 [webView setUIDelegate:delegate.get()]; 415 [webView loadHTMLString:@"<head><title>test_title</title></head><body onload=' setTimeout(function() { print() });'>hello world!</body>" baseURL:[NSURL URLWithString:@"http://example.com/"]];415 [webView loadHTMLString:@"<head><title>test_title</title></head><body onload='print()'>hello world!</body>" baseURL:[NSURL URLWithString:@"http://example.com/"]]; 416 416 TestWebKitAPI::Util::run(&done); 417 417
Note:
See TracChangeset
for help on using the changeset viewer.