<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>294381</bug_id>
          
          <creation_ts>2025-06-12 03:09:35 -0700</creation_ts>
          <short_desc>Add WebViewAssetLoader‐style API to WKWebView for virtual HTTPS asset hosting</short_desc>
          <delta_ts>2026-01-18 14:52:30 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dev.satoshi.1016</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>annevk</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2123236</commentid>
    <comment_count>0</comment_count>
    <who name="">dev.satoshi.1016</who>
    <bug_when>2025-06-12 03:09:35 -0700</bug_when>
    <thetext>**Background**  
On Android’s Chromium‐based WebView, the WebViewAssetLoader API lets apps serve bundled assets (from `assets/` or `res/`) under a virtual HTTPS domain (e.g. `https://appassets.androidplatform.net/`) without needing real TLS certificates. JavaScript in the page sees a proper HTTPS origin, so `fetch()`/XHR and CORS behave as if loading from a remote server.

WKWebView today lacks an equivalent. Developers must either run a local HTTP server or use custom URL schemes, neither of which fully emulates an HTTPS origin.

**Feature Request**  
Introduce a WebKit API—analogous to Android’s WebViewAssetLoader—that allows configuration of a virtual HTTPS hostname for serving app‐bundled resources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124694</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-06-19 03:10:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/153812992&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2146093</commentid>
    <comment_count>2</comment_count>
    <who name="">dev.satoshi.1016</who>
    <bug_when>2025-09-26 00:40:59 -0700</bug_when>
    <thetext>Hi WebKit team—could you share the current status or triage outcome for this request?
I can’t access the linked Radar (rdar://problem/153812992), so any public note here would help.
If it’s tracked elsewhere, please feel free to mark this as a duplicate or close with a public pointer. Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2172810</commentid>
    <comment_count>3</comment_count>
    <who name="">dev.satoshi.1016</who>
    <bug_when>2026-01-18 01:51:19 -0800</bug_when>
    <thetext>It doesn&apos;t look like anyone is actively working on this issue at the moment, so I&apos;d like to take a shot at it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2172875</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2026-01-18 14:52:30 -0800</bug_when>
    <thetext>&gt; It doesn&apos;t look like anyone is actively working on this issue at the moment, so I&apos;d like to take a shot at it.

While you&apos;re quite free to work on a patch, please note that changes to the public API that a particular vendor ships are entirely up to that vendor.
And if that vendor does not want a particular API exposed, they are under no obligation to expose it.

i.e. If your goal is to add WKWebView API and have it end up in an actual macOS/iOS/visionOS SDK, that&apos;s not actually up to the WebKit open source project.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>