Title: [291638] branches/safari-613-branch/Source/WebCore
Revision
291638
Author
[email protected]
Date
2022-03-22 10:54:53 -0700 (Tue, 22 Mar 2022)

Log Message

Cherry-pick r290618. rdar://problem/89585043

    Remove release assert when UI process is blocking IOSurface IOKit access
    https://bugs.webkit.org/show_bug.cgi?id=237278

    Reviewed by Darin Adler.

    Remove release assert in IOSurface::bytesPerRowAlignment() when UI process is blocking IOSurface IOKit access.
    Instead, log this event, and return an appropriate value.

    * platform/graphics/cocoa/IOSurface.mm:
    (WebCore::IOSurface::bytesPerRowAlignment):

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

Modified Paths

Diff

Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (291637 => 291638)


--- branches/safari-613-branch/Source/WebCore/ChangeLog	2022-03-22 17:54:50 UTC (rev 291637)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog	2022-03-22 17:54:53 UTC (rev 291638)
@@ -1,5 +1,36 @@
 2022-03-21  Alan Coon  <[email protected]>
 
+        Cherry-pick r290618. rdar://problem/89585043
+
+    Remove release assert when UI process is blocking IOSurface IOKit access
+    https://bugs.webkit.org/show_bug.cgi?id=237278
+    
+    Reviewed by Darin Adler.
+    
+    Remove release assert in IOSurface::bytesPerRowAlignment() when UI process is blocking IOSurface IOKit access.
+    Instead, log this event, and return an appropriate value.
+    
+    * platform/graphics/cocoa/IOSurface.mm:
+    (WebCore::IOSurface::bytesPerRowAlignment):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-02-28  Per Arne Vollan  <[email protected]>
+
+            Remove release assert when UI process is blocking IOSurface IOKit access
+            https://bugs.webkit.org/show_bug.cgi?id=237278
+
+            Reviewed by Darin Adler.
+
+            Remove release assert in IOSurface::bytesPerRowAlignment() when UI process is blocking IOSurface IOKit access.
+            Instead, log this event, and return an appropriate value.
+
+            * platform/graphics/cocoa/IOSurface.mm:
+            (WebCore::IOSurface::bytesPerRowAlignment):
+
+2022-03-21  Alan Coon  <[email protected]>
+
         Cherry-pick r290615. rdar://problem/87919197
 
     Handle widow relayout differently

Modified: branches/safari-613-branch/Source/WebCore/platform/graphics/cocoa/IOSurface.mm (291637 => 291638)


--- branches/safari-613-branch/Source/WebCore/platform/graphics/cocoa/IOSurface.mm	2022-03-22 17:54:50 UTC (rev 291637)
+++ branches/safari-613-branch/Source/WebCore/platform/graphics/cocoa/IOSurface.mm	2022-03-22 17:54:53 UTC (rev 291638)
@@ -285,7 +285,11 @@
         // See https://developer.apple.com/documentation/iosurface/1419453-iosurfacegetpropertyalignment?language=objc
         // This likely means that the sandbox is blocking access to the IOSurface IOKit class,
         // and that IOSurface::bytesPerRowAlignment() has been called before IOSurface::setBytesPerRowAlignment.
-        RELEASE_ASSERT(alignment > 1);
+        if (alignment <= 1) {
+            RELEASE_LOG_FAULT(Layers, "Sandbox does not allow IOSurface IOKit access.");
+            // 64 bytes is currently the alignment on all platforms.
+            alignment = 64;
+        }
     }
     return alignment;
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to