[Webkit-unassigned] [Bug 233391] New: [WebDriver][GLIB] Timeout navigating to COOP same-origin pages

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 19 17:52:35 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=233391

            Bug ID: 233391
           Summary: [WebDriver][GLIB] Timeout navigating to COOP
                    same-origin pages
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lmoura at igalia.com
                CC: bburg at apple.com

imported/w3c/webdriver/tests/get_window_handle/get.py::test_navigation_with_coop_headers[capabilities0]

Timing out waiting for the response setting the URL in the following snippet:

```
@pytest.mark.capabilities({"acceptInsecureCerts": True})
def test_navigation_with_coop_headers(session, url):
    base_path = ("/webdriver/tests/support/html/subframe.html" +
                 "?pipe=header(Cross-Origin-Opener-Policy,same-origin")

    session.url = url(base_path, protocol="https")
```

If we remove the pipe defining the COOP header, the assignment returns normally. This also happens when trying to fetch a page with COOP same-origin from a custom server through selenium's RemoteWebDriver.

FTR, the coop LayoutTests are working fine.

Checking the journal with WEBKIT_DEBUG=All, the NetworkProcess request for the non-coop page returns right away.

Meanwhile, the response for a COOP page also loads the page to the finish, but the webdriver request never returns, both in the WPT test and the Selenium script. Between the request and the response, the journal logs a large number of loader-related messages (see below)

Maybe something in the automation-related code is losing track of the load after receiving the COOP?

Tests scripts to be attached in the following comments


[NetworkProcess GET request before]
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::setPolicyDocumentLoader: Setting policy document loader to 0x7f41306f6c00 (was (nil))
 WebKitWebProcess[2586504]: 0x7f41306f6c00 - [pageID=17, frameID=3, main=1] DocumentLoader::DocumentLoader::attachToFrame: m_frame=0x7f4199e7f000
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::setProvisionalDocumentLoader: Setting provisional document loader to 0x7f41306f6c00 (was (nil))
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::setDocumentLoader: Setting document loader to 0x7f41306f6c00 (was (nil))
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::transitionToCommitted: Clearing provisional document loader (m_provisionalDocumentLoader=0x7f41306f6c00)
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::setProvisionalDocumentLoader: Setting provisional document loader to (nil) (was 0x7f41306f6c00)
 WebKitWebProcess[2586504]: 0x7f41306f6c00 - [pageID=17, frameID=3, main=1] DocumentLoader::startLoadingMainResource: Returning empty document
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::setState: main frame load completed
 WebKitWebProcess[2586504]: Memory usage info dump at MainFrameLoadCompleted:
 WebKitWebProcess[2586504]:   javascript_gc_heap_capacity_mb: 0
 WebKitWebProcess[2586504]:   page_count: 1
 WebKitWebProcess[2586504]:   backforward_cache_page_count: 0
 WebKitWebProcess[2586504]:   javascript_gc_heap_extra_memory_size_mb: 0
 WebKitWebProcess[2586504]:   document_count: 1
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::load (FrameLoadRequest): frame load started
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::load (DocumentLoader): frame load started
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::loadWithDocumentLoader: frame load started
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::loadWithDocumentLoader: main frame load started
 WebKitWebProcess[2586504]: Memory usage info dump at MainFrameLoadStarted:
 WebKitWebProcess[2586504]:   javascript_gc_heap_capacity_mb: 0
 WebKitWebProcess[2586504]:   page_count: 1
 WebKitWebProcess[2586504]:   backforward_cache_page_count: 0
 WebKitWebProcess[2586504]:   javascript_gc_heap_extra_memory_size_mb: 0
 WebKitWebProcess[2586504]:   document_count: 1
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::setPolicyDocumentLoader: Setting policy document loader to 0x7f41306f8400 (was 0x7f41306f6c00)
 WebKitWebProcess[2586504]: 0x7f41306f8400 - [pageID=17, frameID=3, main=1] DocumentLoader::DocumentLoader::attachToFrame: m_frame=0x7f4199e7f000
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::stopAllLoaders: m_provisionalDocumentLoader=(nil), m_documentLoader=0x7f41306f6c00
 WebKitWebProcess[2586504]: 0x7f41306f6c00 - [pageID=17, frameID=3, main=1] DocumentLoader::DocumentLoader::stopLoading: m_frame=0x7f4199e7f000
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::stopAllLoaders: Clearing provisional document loader (m_provisionalDocumentLoader=(nil))
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::setProvisionalDocumentLoader: Setting provisional document loader to 0x7f41306f8400 (was (nil))
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::continueLoadAfterNavigationPolicy: Setting provisional document loader (m_provisionalDocumentLoader=0x7f41306f8400)
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::setPolicyDocumentLoader: Setting policy document loader to (nil) (was 0x7f41306f8400)
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::prepareForLoadStart: Starting frame load
 WebKitWebProcess[2586504]: 0x7f4199efcea0 - ProgressTracker::progressStarted: frame 0x7f4199e7f000, value 0.100000, tracked frames 1, originating frame 0x7f4199e7f000, isMainLoad 1
 WebKitWebProcess[2586504]: 0x7f41306f8400 - [pageID=17, frameID=3, main=1] DocumentLoader::startLoadingMainResource: Starting load
 WebKitWebProcess[2586504]: 0x7f41984f2480 - [pageID=17, frameID=3, frameLoader=0x7f4199e7e000, resourceID=7] ResourceLoader::willSendRequestInternal: calling completion handler
 WebKitWebProcess[2586504]: 0x7f41984f2480 - [pageID=17, frameID=3, frameLoader=0x7f4199e7e000, resourceID=7] SubresourceLoader::willSendRequestInternal: resource load finished; calling completion handler
 WebKitWebProcess[2586504]: 0x7f4199e7e000 - [pageID=17, frameID=3, main=1] FrameLoader::setDocumentLoader: Setting document loader to 0x7f41306f8400 (was 0x7f41306f6c00)
 WebKitWebProcess[2586504]: 0x7f41306f6c00 - [pageID=17, frameID=3, main=1] DocumentLoader::DocumentLoader::detachFromFrame: m_frame=0x7f4199e7f000
 WebKitWebProcess[2586504]: 0x7f41306f6c00 - [pageID=17, frameID=3, main=1] DocumentLoader::DocumentLoader::stopLoading: m_frame=0x7f4199e7f000
[NetworkProcess GET response after]

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211120/51de6e5f/attachment-0001.htm>


More information about the webkit-unassigned mailing list