[Webkit-unassigned] [Bug 226760] New: Origin is null in http requests when baseURL has custom scheme on iOS 15.0

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 8 01:20:05 PDT 2021


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

            Bug ID: 226760
           Summary: Origin is null in http requests when baseURL has
                    custom scheme on iOS 15.0
           Product: WebKit
           Version: Other
          Hardware: iPhone / iPad
                OS: Other
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zhuoran1997 at icloud.com

Created attachment 430817

  --> https://bugs.webkit.org/attachment.cgi?id=430817&action=review

A demo project and results of iOS 14.5 and iOS 15.0

There is a regression in WKWebView on iOS 15.0. When setting the baseURL of the WKWebView to `custom-scheme://` via webView.loadHTMLString(, baseURL:), the Origin in http request header becomes `null` instead of `custom-sheme://` on iOS 15.0. iOS 14.6 doesn't have this issue.

I have attached a demo project. You can run it with Xcode 12.5 and Xcode 13.0 to see the difference. After attaching inspector, press the "Request data" button. Then you can see the different Origin value in network request.

-- 
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/20210608/36a5886f/attachment.htm>


More information about the webkit-unassigned mailing list