<?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>262777</bug_id>
          
          <creation_ts>2023-10-06 04:45:10 -0700</creation_ts>
          <short_desc>REGRESSION(265870.8@safari-7616-branch): [GTK] Cannot load Unity WebGL apps due to access control checks</short_desc>
          <delta_ts>2023-11-09 05:51:29 -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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=258895</see_also>
          <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 name="Jim Mason">jmason</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cdumez</cc>
    
    <cc>chirag_m_shah</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>seanmi</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>xry111</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1983171</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Mason">jmason</who>
    <bug_when>2023-10-06 04:45:10 -0700</bug_when>
    <thetext>In 2.42.1, Unity apps are failing to load.  A message &apos;Cannot load blob... due to access control checks&apos; appears in the JS console.

Note, this was working as expected in 2.42.0.

Here are two examples; all Unity apps fail for me in this way:

https://www.wasm.com.cn/demo/Tanks/

[Error] Cannot load blob:https://www.wasm.com.cn/e767d7ad-3d43-4b51-a971-1edcec1c11f0 due to access control checks.
    decompress (UnityLoader.js:4:8819)
    (anonymous function) (UnityLoader.js:1:3769)

https://www.cs.nccu.edu.tw/~mtchi/course/3d17/final/07/WebGL/index.html

[Error] Cannot load blob:https://www.cs.nccu.edu.tw/a5d0a060-e261-47b3-81de-659a7c927393 due to access control checks.
    decompress (UnityLoader.js:4:9108)
    (anonymous function) (UnityLoader.js:1:3769)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983272</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-10-06 11:26:45 -0700</bug_when>
    <thetext>Bisected this. Only the Safari and GTK/WPE branches are affected because this commit has not landed in main yet.

a209cbf453978e3ea809d36f684a36f36ff301c5 is the first bad commit
commit a209cbf453978e3ea809d36f684a36f36ff301c5
Author: Chirag M Shah &lt;chirag_m_shah@apple.com&gt;
Date:   Mon Jul 10 18:24:09 2023 -0700

    Cherry-pick 265870.8@safari-7616-branch (551b1fd24102). https://bugs.webkit.org/show_bug.cgi?id=258712
    
        Fix stack-overflow when dealing with blobURL(s)
        https://bugs.webkit.org/show_bug.cgi?id=258895
        rdar://111440239
    
        Reviewed by Chris Dumez.
    
        This change fixes the stack overflow when checking for whether a blobURL
        is secure.
    
        * Source/WebCore/fileapi/BlobURL.cpp:
        (WebCore::BlobURL::isSecureBlobURL):
        * Tools/TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp:
        (TestWebKitAPI::TEST_F):
    
        Canonical link: https://commits.webkit.org/265870.8@safari-7616-branch

 Source/WebCore/fileapi/BlobURL.cpp                   | 3 ++-
 Tools/TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp | 6 ++++++
 2 files changed, 8 insertions(+), 1 deletion(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983478</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-10-07 13:43:30 -0700</bug_when>
    <thetext>The culprit has shipped in Safari 17, and I cannot reproduce the issue there. So the regression must be Gtk specific?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983563</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-10-08 05:06:35 -0700</bug_when>
    <thetext>Strange, but I&apos;ve seen stranger....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983564</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-10-08 05:16:43 -0700</bug_when>
    <thetext>It&apos;s more likely to be branch-specific rather than port-specific. Likely we&apos;re either (a) missing some other unknown but required change from safari-7616-branch, or (b) more likely the change is incompatible with some other unknown change on main.

We&apos;ll be able to find out after this change has landed in main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983691</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-10-09 08:36:07 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #4)
&gt; It&apos;s more likely to be branch-specific rather than port-specific. Likely
&gt; we&apos;re either (a) missing some other unknown but required change from
&gt; safari-7616-branch, or (b) more likely the change is incompatible with some
&gt; other unknown change on main.
&gt; 
&gt; We&apos;ll be able to find out after this change has landed in main.

I think it is likely the branch change is incompatible with some changes that were done on trunk. I haven&apos;t had time to investigate yet though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983789</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-10-09 13:13:24 -0700</bug_when>
    <thetext>(In reply to Chris Dumez from comment #5)
&gt; (In reply to Michael Catanzaro from comment #4)
&gt; &gt; It&apos;s more likely to be branch-specific rather than port-specific. Likely
&gt; &gt; we&apos;re either (a) missing some other unknown but required change from
&gt; &gt; safari-7616-branch, or (b) more likely the change is incompatible with some
&gt; &gt; other unknown change on main.
&gt; &gt; 
&gt; &gt; We&apos;ll be able to find out after this change has landed in main.
&gt; 
&gt; I think it is likely the branch change is incompatible with some changes
&gt; that were done on trunk. I haven&apos;t had time to investigate yet though.

See https://github.com/WebKit/WebKit/pull/18859</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984106</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-10-10 13:27:49 -0700</bug_when>
    <thetext>Reverted this on webkitglib/2.42 branch. Closing.

I&apos;m guessing 266247@main was the commit that fixed the stack overflow on main, though I&apos;m not certain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984107</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-10-10 13:28:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/116756393&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990192</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-11-06 09:15:43 -0800</bug_when>
    <thetext>*** Bug 264263 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1991122</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-11-09 05:51:29 -0800</bug_when>
    <thetext>*** Bug 264201 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>