[Webkit-unassigned] [Bug 211960] New: Reorder entitlement check in WebKit::applicationType()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 15 09:12:04 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=211960
Bug ID: 211960
Summary: Reorder entitlement check in WebKit::applicationType()
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: david_quesada at apple.com
The operands in the expression `WTF::processHasEntitlement("com.apple.UIKit.vends-view-services") && window._isHostedInAnotherProcess` could be swapped to avoid the entitlement check by short-circuit evaluation. Loading and parsing the app’s entitlements can be non-trivial (at least compared to the -_isHostedInAnotherProcess method call), and most web views aren’t added to windows in view services, so the entitlement check is often unneeded.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200515/6aba0235/attachment.htm>
More information about the webkit-unassigned
mailing list