[Webkit-unassigned] [Bug 186278] New: [WPE][GTK] Cannot download main resource for media files

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 4 12:45:42 PDT 2018


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

            Bug ID: 186278
           Summary: [WPE][GTK] Cannot download main resource for media
                    files
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at igalia.com
                CC: bugs-noreply at webkitgtk.org

In Epiphany, visit either of these resources, then right click and "Save Page As":

Audio: https://upload.wikimedia.org/wikipedia/commons/9/90/Papalotla-sound.ogg

Video: https://upload.wikimedia.org/wikipedia/commons/3/35/Nerven_(1919).webm

Don't use "Save Video As" since that works fine. If you instead use "Save Page As" the browser will crash due to bug #186276. But with the patch from that bug to fix the crash, it still fails to download the media. I've been debugging a little bit:

 * In WebPage::getMainResourceDataOfFrame, frame->coreFrame()->loader().documentLoader() returns a valid DocumentLoader, but then loader->mainResourceData() returns nullptr. Bad. Turns out DoucmentLoader::m_mainResourceData is nullptr.
 * Why? Not sure, I haven't dived in deep enough. But it seems that webkitWebViewResourceLoadStarted (in WebKitWebView.cpp) gets called *three* times, instead of once, as I would expect. WebKitWebView assumes the first resource load is the main resource, which seems like it should be a safe assumption, but I'm going to guess that the real main resource is the third one (not sure). Looks like something weird is going on inside WebCore. Requires further investigation.

-- 
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/20180604/ac966081/attachment.html>


More information about the webkit-unassigned mailing list