[Webkit-unassigned] [Bug 203302] New: WKWebView: WKURLSchemeHandler request don't have Range headers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 23 10:30:02 PDT 2019


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

            Bug ID: 203302
           Summary: WKWebView: WKURLSchemeHandler request don't have Range
                    headers
           Product: WebKit
           Version: Other
          Hardware: iPhone / iPad
                OS: All
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: juliosincesar at hotmail.com

The problem:
When serving an Apache Cordova or Ionic Capacitor app from a custom scheme, if the app contains a video tag, it makes multiple requests to the video file (I guess it's to return the video in chunks).
The problem is, the requests don't include Range headers, so it's impossible to return just the chunks, and also, as it's requested multiple times, the memory increases a lot.

Expected:

When using a WKURLSchemeHandler, the requests should include Range headers so the video can be returned by the requested chunks.
Alternatively, if the app is being served from a custom scheme, then a single request should be made to the WKURLSchemeHandler (when serving the app from file:// protocol only a request is made)


Sample project reproducing the issue (without using Apache Cordova nor Ionic Capacitor to simplify the code)

https://github.com/jcesarmobile/no-ranges-bug

Check the WebViewHandler class, it prints urlSchemeTask.request.allHTTPHeaderFields content and it doesn't include Range. 
https://github.com/jcesarmobile/no-ranges-bug/blob/master/no-ranges-bug/WebViewHandler.swift#L34

Also if the app is inspected in Safari remote inspector, the requests don't show Range in headers neither.

-- 
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/20191023/3dfd8468/attachment.html>


More information about the webkit-unassigned mailing list