<?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>207542</bug_id>
          
          <creation_ts>2020-02-11 06:38:42 -0800</creation_ts>
          <short_desc>WKWebResourceLoadDelegate for WKWebView iOS</short_desc>
          <delta_ts>2020-02-25 21:00:19 -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>WebKit API</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>138169</dup_id>
          
          <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 name="Brandon">bthomas</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>beidson</cc>
    
    <cc>ggaren</cc>
    
    <cc>isaiah</cc>
    
    <cc>krzysztof.modras</cc>
    
    <cc>mjs</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1617359</commentid>
    <comment_count>0</comment_count>
    <who name="Brandon">bthomas</who>
    <bug_when>2020-02-11 06:38:42 -0800</bug_when>
    <thetext>Please expose `WKWebResourceLoadDelegate` for iOS OR allow iOS to intercept traffic via `URLProtocol`.

Currently, iOS has no way of blocking certain page resources from loading or even intercepting certain page resources in a WKWebView. The ask is that we expose a method of allowing iOS to do this. `WKWebResourceLoadDelegate` is good for knowing which resources a page has requested and the ability to deny them. Similarly, `URLProtocol` would also work if allowed to work with WKWebView.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1617426</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-02-11 09:26:48 -0800</bug_when>
    <thetext>&lt;rdar://problem/59350909&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620572</commentid>
    <comment_count>2</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2020-02-19 01:37:12 -0800</bug_when>
    <thetext>This seems like a duplicate of &lt;https://bugs.webkit.org/show_bug.cgi?id=138169&gt; and/or &lt;https://bugs.webkit.org/show_bug.cgi?id=205718.

Note that there is no such thing as WKWebResourceLoadDelegate. There is a non-public _WKResourceLoadDelegate interface, but it only has methods to observe requests after they have happened, not to modify or cancel them before they are issued.

It would help to have a more detailed explanation of the use case. If this is about blocking, do content blockers not work? What about them is insufficient?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1622843</commentid>
    <comment_count>3</comment_count>
    <who name="Isaiah">isaiah</who>
    <bug_when>2020-02-25 17:09:04 -0800</bug_when>
    <thetext>
Here is our use case for retargeting http/https requests. In our case we are not blocking, but redirecting unpublished/un-deployed content on a website that is a work-in-progress. We redirect the requests to the user&apos;s local resources in the project.

https://bugs.webkit.org/show_bug.cgi?id=138169#c52</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1622900</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2020-02-25 21:00:19 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 138169 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>