<?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>247087</bug_id>
          
          <creation_ts>2022-10-26 14:23:36 -0700</creation_ts>
          <short_desc>iOS 16.1 regression of SharedWorker when a process doesn&apos;t have com.apple.developer.web-browser entitlement</short_desc>
          <delta_ts>2022-10-28 14:16:42 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Service Workers</component>
          <version>Safari 16</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 16</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>247147</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dmt021</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>leonardo.balter</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1908534</commentid>
    <comment_count>0</comment_count>
    <who name="">dmt021</who>
    <bug_when>2022-10-26 14:23:36 -0700</bug_when>
    <thetext>Starting from iOS 16.1 WKWebView can&apos;t load pages with SharedWorker, if an app doesn&apos;t have &quot;com.apple.developer.web-browser&quot; entitlement.
Samples: 
https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/ 
https://vc.ru

The NetProcess terminates the WebProcess, and renders the whole WKWebView crashed.
In case the &quot;com.apple.developer.web-browser&quot; entitlement is present it works fine.

The issue can be reproduced on iOS 16.1 with a basic WKWebView, or in apps:
Google - https://apps.apple.com/ru/app/google/id284815942
Yandex - https://apps.apple.com/ru/app/яндекс-с-алисой/id1050704155

The issue can NOT be reproduced in:
Chrome - https://apps.apple.com/ru/app/chrome-браузер-от-google/id535886823
Yandex Browser - https://apps.apple.com/ru/app/яндекс-браузер/id483693909
or on any iOS version prior 16.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1908550</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-26 15:12:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/101606803&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1908666</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-10-27 02:47:08 -0700</bug_when>
    <thetext>Can you share the crash log?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1908671</commentid>
    <comment_count>3</comment_count>
    <who name="">dmt021</who>
    <bug_when>2022-10-27 03:54:03 -0700</bug_when>
    <thetext>Clarification: The app doesn&apos;t crash. Only the WebProcess crashes. There is this message in the log.
[Process] 0x136010a18 - [pageProxyID=6, webPageID=7, PID=57025] WebPageProxy::processDidTerminate: (pid 57025), reason=RequestedByNetworkProcess

And:
com.apple.WebKit.Networking  Received an invalid message &apos;WebSharedWorkerObjectConnection_FetchScriptInClientReply&apos; from WebContent process 5, requesting for it to be terminated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1909073</commentid>
    <comment_count>4</comment_count>
    <who name="Leo Balter">leonardo.balter</who>
    <bug_when>2022-10-28 14:08:56 -0700</bug_when>
    <thetext>This issue is also affecting Salesforce customers on iOS. This is used in multiple apps.

Ref https://trailblazer.salesforce.com/issues_view?title=white-screen-when-logging-into-mobile-publisher-for-experience-cloud-app-on-ios-16-1&amp;Id=a1p4V000002fqzg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1909076</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-10-28 14:16:42 -0700</bug_when>
    <thetext>Also see this for some details (and a workaround):
https://developer.apple.com/forums/thread/718757?page=1#734292022

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

    </bug>

</bugzilla>