Changeset 256455 in webkit


Ignore:
Timestamp:
Feb 12, 2020 10:49:42 AM (4 years ago)
Author:
pvollan@apple.com
Message:

Source/WebKit:
Pages that trigger a redirect will sometimes be left blank
https://bugs.webkit.org/show_bug.cgi?id=207614
rdar://problem/59077740

Patch by Simon Fraser <Simon Fraser> on 2020-02-12
Reviewed by Tim Horton.

TiledCoreAnimationDrawingArea::setRootCompositingGraphicsLayer() can be called when the layer tree
is frozen, in which case we stash away the layer in m_pendingRootLayer to be parented later at flush
time. However, this sequence of calls had a bug:

setRootCompositingGraphicsLayer() when frozen

-> stash in m_pendingRootLayer

setRootCompositingGraphicsLayer() when not frozen

-> set the root layer

flushLayers()

-> set the root layer to the (old) m_pendingRootLayer

So we need to clear m_pendingRootLayer at step 2.

Very timing dependent, hard to test.

  • WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:

(WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):

LayoutTests:
[iOS] Deny mach lookup access to analytics service in the WebContent process
https://bugs.webkit.org/show_bug.cgi?id=207482

Reviewed by Darin Adler.

  • fast/sandbox/ios/sandbox-mach-lookup-expected.txt:
  • fast/sandbox/ios/sandbox-mach-lookup.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r256454 r256455  
     12020-02-12  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [iOS] Deny mach lookup access to analytics service in the WebContent process
     4        https://bugs.webkit.org/show_bug.cgi?id=207482
     5
     6        Reviewed by Darin Adler.
     7
     8        * fast/sandbox/ios/sandbox-mach-lookup-expected.txt:
     9        * fast/sandbox/ios/sandbox-mach-lookup.html:
     10
    1112020-02-12  Jacob Uphoff  <jacob_uphoff@apple.com>
    212
  • trunk/LayoutTests/fast/sandbox/ios/sandbox-mach-lookup-expected.txt

    r256450 r256455  
    2020PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.tccd") is false
    2121PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.uikit.viewservice") is false
     22PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.analyticsd") is false
  • trunk/LayoutTests/fast/sandbox/ios/sandbox-mach-lookup.html

    r256450 r256455  
    2323    shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.tccd\")");
    2424    shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.uikit.viewservice\")");
     25    shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.analyticsd\")");
    2526}
    2627</script>
  • trunk/Source/WebKit/ChangeLog

    r256452 r256455  
    2424        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
    2525        (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):
     26
     272020-02-12  Per Arne Vollan  <pvollan@apple.com>
     28
     29        [iOS] Deny mach lookup access to analytics service in the WebContent process
     30        https://bugs.webkit.org/show_bug.cgi?id=207482
     31
     32        Reviewed by Darin Adler.
     33
     34        As part of sandbox hardening work, this service should be denied in the WebContent process' sandbox.
     35
     36        Test: fast/sandbox/ios/sandbox-mach-lookup.html
     37
     38        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
    2639
    27402020-02-12  Per Arne Vollan  <pvollan@apple.com>
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb

    r256450 r256455  
    897897(allow mach-lookup
    898898       (global-name "com.apple.webinspector"))
    899 
    900 ;; Various services required by CFNetwork and other frameworks
    901 (allow mach-lookup
    902     (global-name "com.apple.analyticsd"))
    903899
    904900(allow mach-lookup (with report) (with telemetry)
Note: See TracChangeset for help on using the changeset viewer.