webkitgtk: Fix an issue breaking various Web sites

There is a regression in WebKitGTK-2.42.1 breaking various Web sites.
See the linked bug report and its duplicates.

The fix is a simple change, so apply it as a sed now.

BugLink: https://bugs.webkit.org/show_bug.cgi?id=262777
Link: https://github.com/WebKit/WebKit/commit/c29a26a02441
This commit is contained in:
Xi Ruoyao 2023-11-10 01:19:15 +08:00
parent 739a1e077f
commit bf70a38779
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
2 changed files with 10 additions and 4 deletions

View File

@ -41,6 +41,10 @@
<listitem> <listitem>
<para>November 9th, 2023</para> <para>November 9th, 2023</para>
<itemizedlist> <itemizedlist>
<listitem>
<para>[xry111] - Fix an issue with WebKitGTK-2.42.1 breaking
various Web sites.</para>
</listitem>
<listitem> <listitem>
<para>[renodr] - Update to libcloudproviders-0.3.5. Fixes <para>[renodr] - Update to libcloudproviders-0.3.5. Fixes
<ulink url="&blfs-ticket-root;18837">#18837</ulink>.</para> <ulink url="&blfs-ticket-root;18837">#18837</ulink>.</para>

View File

@ -144,13 +144,15 @@
<bridgehead renderas="sect3">Installation of <bridgehead renderas="sect3">Installation of
<application>WebKitGTK</application></bridgehead> <application>WebKitGTK</application></bridgehead>
<!-- <!-- https://bugs.webkit.org/show_bug.cgi?id=262777
https://github.com/WebKit/WebKit/commit/c29a26a02441 -->
<para> <para>
First, fix a problem when not using BUBBLEWRAP_SANDBOX: First, fix an issue breaking Web sites relying on Javascript Blob API:
</para> </para>
<screen><userinput>sed -i '39,66 s:^://:' Source/WTF/wtf/glib/Sandbox.cpp</userinput></screen> <screen><userinput>sed "/bool BlobURL::isSecureBlobURL/,/^}/ \
--> s/return false/return SecurityOrigin::isSecure(getOriginURL(url))/" \
-i Source/WebCore/fileapi/BlobURL.cpp</userinput></screen>
<important> <important>
<para> <para>