NEW211960
Reorder entitlement check in WebKit::applicationType()
https://bugs.webkit.org/show_bug.cgi?id=211960
Summary Reorder entitlement check in WebKit::applicationType()
David Quesada
Reported 2020-05-15 09:12:04 PDT
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.
Attachments
Note You need to log in before you can comment on or make changes to this bug.