Title: [292998] branches/safari-613-branch/Source
Revision
292998
Author
[email protected]
Date
2022-04-18 17:50:12 -0700 (Mon, 18 Apr 2022)

Log Message

Cherry-pick r292609. rdar://problem/90882766

    Broaden TypedArray API fix to all apps not just Bleacher Report
    https://bugs.webkit.org/show_bug.cgi?id=238955

    Reviewed by Saam Barati.

    Source/_javascript_Core:

    * API/JSTypedArray.cpp:
    (isLinkedBeforeTypedArrayLengthQuirk):
    (JSObjectGetArrayBufferByteLength):
    (isBleecherReport): Deleted.

    Source/WTF:

    * wtf/cocoa/RuntimeApplicationChecksCocoa.h:

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292609 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613-branch/Source/_javascript_Core/API/JSTypedArray.cpp (292997 => 292998)


--- branches/safari-613-branch/Source/_javascript_Core/API/JSTypedArray.cpp	2022-04-19 00:50:09 UTC (rev 292997)
+++ branches/safari-613-branch/Source/_javascript_Core/API/JSTypedArray.cpp	2022-04-19 00:50:12 UTC (rev 292998)
@@ -366,15 +366,12 @@
 }
 
 #if PLATFORM(IOS)
-inline static bool isBleecherReport()
+inline static bool isLinkedBeforeTypedArrayLengthQuirk()
 {
-    auto bundleID = CFBundleGetIdentifier(CFBundleGetMainBundle());
-    return bundleID
-        && CFEqual(bundleID, CFSTR("com.bleacherreport.TeamStream"))
-        && !linkedOnOrAfter(SDKVersion::FirstWithoutBleecherReportQuirk);
+    return !linkedOnOrAfter(SDKVersion::FirstWithoutTypedArrayAPIQuirk);
 }
 #else
-inline static bool isBleecherReport() { return false; }
+inline static bool isLinkedBeforeTypedArrayLengthQuirk() { return false; }
 #endif
 
 size_t JSObjectGetArrayBufferByteLength(JSContextRef ctx, JSObjectRef objectRef, JSValueRef*)
@@ -386,7 +383,7 @@
     if (!object) {
         // For some reason prior to https://bugs.webkit.org/show_bug.cgi?id=235720 Clang would emit code
         // to early return if objectRef is 0 but not after. Passing 0 should be invalid API use.
-        static bool shouldntCrash = isBleecherReport();
+        static bool shouldntCrash = isLinkedBeforeTypedArrayLengthQuirk();
         RELEASE_ASSERT(shouldntCrash);
         return 0;
     }

Modified: branches/safari-613-branch/Source/_javascript_Core/ChangeLog (292997 => 292998)


--- branches/safari-613-branch/Source/_javascript_Core/ChangeLog	2022-04-19 00:50:09 UTC (rev 292997)
+++ branches/safari-613-branch/Source/_javascript_Core/ChangeLog	2022-04-19 00:50:12 UTC (rev 292998)
@@ -1,5 +1,39 @@
 2022-04-18  Kocsen Chung  <[email protected]>
 
+        Cherry-pick r292609. rdar://problem/90882766
+
+    Broaden TypedArray API fix to all apps not just Bleacher Report
+    https://bugs.webkit.org/show_bug.cgi?id=238955
+    
+    Reviewed by Saam Barati.
+    
+    Source/_javascript_Core:
+    
+    * API/JSTypedArray.cpp:
+    (isLinkedBeforeTypedArrayLengthQuirk):
+    (JSObjectGetArrayBufferByteLength):
+    (isBleecherReport): Deleted.
+    
+    Source/WTF:
+    
+    * wtf/cocoa/RuntimeApplicationChecksCocoa.h:
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-04-08  Keith Miller  <[email protected]>
+
+            Broaden TypedArray API fix to all apps not just Bleacher Report
+            https://bugs.webkit.org/show_bug.cgi?id=238955
+
+            Reviewed by Saam Barati.
+
+            * API/JSTypedArray.cpp:
+            (isLinkedBeforeTypedArrayLengthQuirk):
+            (JSObjectGetArrayBufferByteLength):
+            (isBleecherReport): Deleted.
+
+2022-04-18  Kocsen Chung  <[email protected]>
+
         Cherry-pick r292594. rdar://problem/91467003
 
     [JSC] Fire structure transition watchpoint in Structure::finishCreation instead of Structure constructor

Modified: branches/safari-613-branch/Source/WTF/ChangeLog (292997 => 292998)


--- branches/safari-613-branch/Source/WTF/ChangeLog	2022-04-19 00:50:09 UTC (rev 292997)
+++ branches/safari-613-branch/Source/WTF/ChangeLog	2022-04-19 00:50:12 UTC (rev 292998)
@@ -1,3 +1,34 @@
+2022-04-18  Kocsen Chung  <[email protected]>
+
+        Cherry-pick r292609. rdar://problem/90882766
+
+    Broaden TypedArray API fix to all apps not just Bleacher Report
+    https://bugs.webkit.org/show_bug.cgi?id=238955
+    
+    Reviewed by Saam Barati.
+    
+    Source/_javascript_Core:
+    
+    * API/JSTypedArray.cpp:
+    (isLinkedBeforeTypedArrayLengthQuirk):
+    (JSObjectGetArrayBufferByteLength):
+    (isBleecherReport): Deleted.
+    
+    Source/WTF:
+    
+    * wtf/cocoa/RuntimeApplicationChecksCocoa.h:
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-04-08  Keith Miller  <[email protected]>
+
+            Broaden TypedArray API fix to all apps not just Bleacher Report
+            https://bugs.webkit.org/show_bug.cgi?id=238955
+
+            Reviewed by Saam Barati.
+
+            * wtf/cocoa/RuntimeApplicationChecksCocoa.h:
+
 2022-03-23  Alan Coon  <[email protected]>
 
         Cherry-pick r290985. rdar://problem/78421282

Modified: branches/safari-613-branch/Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h (292997 => 292998)


--- branches/safari-613-branch/Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h	2022-04-19 00:50:09 UTC (rev 292997)
+++ branches/safari-613-branch/Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h	2022-04-19 00:50:12 UTC (rev 292998)
@@ -86,7 +86,7 @@
     FirstWithoutExpandoIndexedPropertiesOnWindow = DYLD_IOS_VERSION_15_0,
     FirstThatDoesNotDrainTheMicrotaskQueueWhenCallingObjC = DYLD_IOS_VERSION_15_0,
     FirstWithAuthorizationHeaderOnSameOriginRedirects = DYLD_IOS_VERSION_15_4,
-    FirstWithoutBleecherReportQuirk = DYLD_IOS_VERSION_16_0,
+    FirstWithoutTypedArrayAPIQuirk = DYLD_IOS_VERSION_16_0,
     FirstForbiddingDotPrefixedFonts = DYLD_IOS_VERSION_16_0,
 #elif PLATFORM(MAC)
     FirstVersionThatSupportsInitConstructors = 0xA0A00, // OS X 10.10
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to