Changeset 199663 in webkit
- Timestamp:
- Apr 18, 2016 3:01:45 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r199662 r199663 1 2016-04-18 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Pending API request URL no set when loading Data, Alternate HTML or plain text 4 https://bugs.webkit.org/show_bug.cgi?id=136916 5 6 Reviewed by Darin Adler. 7 8 Set pending API request URL for all load methods in 9 WebPageProxy. This ensures that right after calling those methods, 10 the active URL is the requested one and that 11 PageLoadState::isLoading() returns true. 12 13 * UIProcess/WebPageProxy.cpp: 14 (WebKit::WebPageProxy::loadAlternateHTMLString): 15 (WebKit::WebPageProxy::loadPlainTextString): 16 (WebKit::WebPageProxy::loadWebArchiveData): 17 1 18 2016-04-18 Commit Queue <commit-queue@webkit.org> 2 19 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r199662 r199663 972 972 auto transaction = m_pageLoadState.transaction(); 973 973 974 m_pageLoadState.setPendingAPIRequestURL(transaction, !baseURL.isEmpty() ? baseURL : ASCIILiteral("about:blank"));974 m_pageLoadState.setPendingAPIRequestURL(transaction, !baseURL.isEmpty() ? baseURL : blankURL().string()); 975 975 976 976 if (!isValid()) … … 994 994 auto transaction = m_pageLoadState.transaction(); 995 995 996 m_pageLoadState.setPendingAPIRequestURL(transaction, !baseURL.isEmpty() ? baseURL : ASCIILiteral("about:blank"));996 m_pageLoadState.setPendingAPIRequestURL(transaction, !baseURL.isEmpty() ? baseURL : blankURL().string()); 997 997 998 998 if (!isValid()) … … 1022 1022 auto transaction = m_pageLoadState.transaction(); 1023 1023 1024 m_pageLoadState.setPendingAPIRequestURL(transaction, unreachableURL); 1024 1025 m_pageLoadState.setUnreachableURL(transaction, unreachableURL); 1025 1026 … … 1041 1042 reattachToWebProcess(); 1042 1043 1044 auto transaction = m_pageLoadState.transaction(); 1045 m_pageLoadState.setPendingAPIRequestURL(transaction, blankURL().string()); 1046 1043 1047 m_process->send(Messages::WebPage::LoadPlainTextString(string, UserData(process().transformObjectsToHandles(userData).get())), m_pageID); 1044 1048 m_process->responsivenessTimer().start(); … … 1052 1056 if (!isValid()) 1053 1057 reattachToWebProcess(); 1058 1059 auto transaction = m_pageLoadState.transaction(); 1060 m_pageLoadState.setPendingAPIRequestURL(transaction, blankURL().string()); 1054 1061 1055 1062 m_process->send(Messages::WebPage::LoadWebArchiveData(webArchiveData->dataReference(), UserData(process().transformObjectsToHandles(userData).get())), m_pageID); -
trunk/Tools/ChangeLog
r199662 r199663 1 2016-04-18 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Pending API request URL no set when loading Data, Alternate HTML or plain text 4 https://bugs.webkit.org/show_bug.cgi?id=136916 5 6 Reviewed by Darin Adler. 7 8 Add new test to check that active URL is the requested one right 9 after calling WKPage load methods. 10 11 * TestWebKitAPI/PlatformEfl.cmake: 12 * TestWebKitAPI/PlatformGTK.cmake: 13 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: 14 * TestWebKitAPI/Tests/WebKit2/PendingAPIRequestURL.cpp: Added. 15 (TestWebKitAPI::TEST): 16 * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp: 17 (WebViewTest::loadPlainText): Remove FIXME. 18 (WebViewTest::loadBytes): Ditto. 19 (WebViewTest::loadAlternateHTML): Ditto. 20 1 21 2016-04-18 Commit Queue <commit-queue@webkit.org> 2 22 -
trunk/Tools/TestWebKitAPI/PlatformEfl.cmake
r199662 r199663 95 95 PageLoadDidChangeLocationWithinPageForFrame 96 96 ParentFrame 97 PendingAPIRequestURL 97 98 PreventEmptyUserAgent 98 99 PrivateBrowsingPushStateNoHistoryCallback -
trunk/Tools/TestWebKitAPI/PlatformGTK.cmake
r199662 r199663 99 99 ${TESTWEBKITAPI_DIR}/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp 100 100 ${TESTWEBKITAPI_DIR}/Tests/WebKit2/ParentFrame.cpp 101 ${TESTWEBKITAPI_DIR}/Tests/WebKit2/PendingAPIRequestURL.cpp 101 102 ${TESTWEBKITAPI_DIR}/Tests/WebKit2/PreventEmptyUserAgent.cpp 102 103 ${TESTWEBKITAPI_DIR}/Tests/WebKit2/PrivateBrowsingPushStateNoHistoryCallback.cpp -
trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
r199662 r199663 8 8 9 9 /* Begin PBXBuildFile section */ 10 0766DD201A5AD5200023E3BB /* PendingAPIRequestURL.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0766DD1F1A5AD5200023E3BB /* PendingAPIRequestURL.cpp */; }; 10 11 0F139E771A423A5B00F590F5 /* WeakObjCPtr.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F139E751A423A5300F590F5 /* WeakObjCPtr.mm */; }; 11 12 0F139E781A423A6B00F590F5 /* PlatformUtilitiesCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F139E721A423A2B00F590F5 /* PlatformUtilitiesCocoa.mm */; }; … … 507 508 00BC16851680FE810065F1E5 /* PublicSuffix.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PublicSuffix.mm; sourceTree = "<group>"; }; 508 509 00CD9F6215BE312C002DA2CE /* BackForwardList.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = BackForwardList.mm; sourceTree = "<group>"; }; 510 0766DD1F1A5AD5200023E3BB /* PendingAPIRequestURL.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PendingAPIRequestURL.cpp; sourceTree = "<group>"; }; 509 511 0BCD833414857CE400EA2003 /* HashMap.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HashMap.cpp; sourceTree = "<group>"; }; 510 512 0BCD85691485C98B00EA2003 /* TemporaryChange.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TemporaryChange.cpp; sourceTree = "<group>"; }; … … 1200 1202 isa = PBXGroup; 1201 1203 children = ( 1204 0766DD1F1A5AD5200023E3BB /* PendingAPIRequestURL.cpp */, 1202 1205 0F139E741A423A4600F590F5 /* cocoa */, 1203 1206 C0C5D3BB14598B6F00A802A6 /* mac */, … … 1953 1956 buildActionMask = 2147483647; 1954 1957 files = ( 1958 0766DD201A5AD5200023E3BB /* PendingAPIRequestURL.cpp in Sources */, 1955 1959 2D9A53AF1B31FA8D0074D5AA /* ShrinkToFit.mm in Sources */, 1956 1960 51B454EC1B4E236B0085EAA6 /* WebViewCloseInsideDidFinishLoadForFrame.mm in Sources */, -
trunk/Tools/TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp
r199662 r199663 83 83 m_activeURI = "about:blank"; 84 84 webkit_web_view_load_plain_text(m_webView, plainText); 85 #if 0 86 // FIXME: Pending API request URL no set when loading plain text. 87 // See https://bugs.webkit.org/show_bug.cgi?id=136916. 88 g_assert(webkit_web_view_is_loading(m_webView)); 89 g_assert_cmpstr(webkit_web_view_get_uri(m_webView), ==, m_activeURI.data()); 90 #endif 85 g_assert(webkit_web_view_is_loading(m_webView)); 86 g_assert_cmpstr(webkit_web_view_get_uri(m_webView), ==, m_activeURI.data()); 91 87 } 92 88 … … 98 94 m_activeURI = baseURI; 99 95 webkit_web_view_load_bytes(m_webView, bytes, mimeType, encoding, baseURI); 100 #if 0 101 // FIXME: Pending API request URL no set when loading data. 102 // See https://bugs.webkit.org/show_bug.cgi?id=136916. 103 g_assert(webkit_web_view_is_loading(m_webView)); 104 g_assert_cmpstr(webkit_web_view_get_uri(m_webView), ==, m_activeURI.data()); 105 #endif 96 g_assert(webkit_web_view_is_loading(m_webView)); 97 g_assert_cmpstr(webkit_web_view_get_uri(m_webView), ==, m_activeURI.data()); 106 98 } 107 99 … … 118 110 m_activeURI = contentURI; 119 111 webkit_web_view_load_alternate_html(m_webView, html, contentURI, baseURI); 120 #if 0 121 // FIXME: Pending API request URL no set when loading Alternate HTML. 122 // See https://bugs.webkit.org/show_bug.cgi?id=136916. 123 g_assert(webkit_web_view_is_loading(m_webView)); 124 #endif 112 g_assert(webkit_web_view_is_loading(m_webView)); 125 113 g_assert_cmpstr(webkit_web_view_get_uri(m_webView), ==, m_activeURI.data()); 126 114 }
Note: See TracChangeset
for help on using the changeset viewer.