⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 293734 in webkit


Ignore:
Timestamp:
May 3, 2022, 11:47:57 AM (4 years ago)
Author:
pvollan@apple.com
Message:

[iOS][WP] Only block IOKit access if all GPUP features are enabled
​https://bugs.webkit.org/show_bug.cgi?id=240010

Reviewed by Tim Horton.

Only block IOKit access in the WebContent process' sandbox on iOS if all GPUP features are enabled.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::m_appHighlightsVisible):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r293733 r293734  
     12022-05-03  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [iOS][WP] Only block IOKit access if all GPUP features are enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=240010
     5
     6        Reviewed by Tim Horton.
     7
     8        Only block IOKit access in the WebContent process' sandbox on iOS if all GPUP features are enabled.
     9
     10        * WebProcess/WebPage/WebPage.cpp:
     11        (WebKit::m_appHighlightsVisible):
     12
    1132022-05-03  Per Arne Vollan  <pvollan@apple.com>
    214
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp

    r293636 r293734  
    920920        CFPreferencesGetAppIntegerValue(CFSTR("key"), CFSTR("com.apple.WebKit.WebContent.AppCacheDisabled"), nullptr);
    921921    }
    922     if (parameters.store.getBoolValueForKey(WebPreferencesKey::blockIOKitInWebContentSandboxKey()))
     922
     923    auto blockIOKit = parameters.store.getBoolValueForKey(WebPreferencesKey::blockIOKitInWebContentSandboxKey())
     924#if ENABLE(WEBGL)
     925        && m_shouldRenderWebGLInGPUProcess
     926#endif
     927        && m_shouldRenderCanvasInGPUProcess
     928        && m_shouldRenderDOMInGPUProcess
     929        && m_shouldPlayMediaInGPUProcess;
     930
     931    if (blockIOKit)
    923932        CFPreferencesGetAppIntegerValue(CFSTR("key"), CFSTR("com.apple.WebKit.WebContent.BlockIOKitInWebContentSandbox"), nullptr);
    924933#endif
Note: See TracChangeset for help on using the changeset viewer.