Bug 215108

Summary: [iOS Simulator] Assert under WebPage::platformDidReceiveLoadParameters
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, katherine_cheney, ryanhaddad, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
youennf: review+
Patch none

Description Per Arne Vollan 2020-08-03 15:41:47 PDT
On iOS Simulator, the following code asserts in WebPage::platformDidReceiveLoadParameters:

    bool databaseUpdated = LaunchServicesDatabaseManager::singleton().waitForDatabaseUpdate(5_s);
    ASSERT_UNUSED(databaseUpdated, databaseUpdated);
Comment 1 Per Arne Vollan 2020-08-03 15:44:53 PDT
Created attachment 405875 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2020-08-03 16:16:31 PDT
<rdar://problem/66496731>
Comment 3 youenn fablet 2020-08-04 05:08:54 PDT
Comment on attachment 405875 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=405875&action=review

> Source/WebKit/ChangeLog:9
> +        com.apple.private.webkit.use-xpc-endpoint on the iOS Simulator. Disable the entitlment check for simulator.

r=me but before landing, could you try (or maybe you did already) to add this entitlement to iOS simulator?
Looking at the code, I see XPCService-embedded-simulator.entitlements for instance where we could try adding that entitlement.
Comment 4 Per Arne Vollan 2020-08-04 13:37:48 PDT
Created attachment 405939 [details]
Patch
Comment 5 EWS 2020-08-04 14:03:18 PDT
Committed r265260: <https://trac.webkit.org/changeset/265260>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 405939 [details].
Comment 6 Per Arne Vollan 2020-08-05 12:55:15 PDT
(In reply to youenn fablet from comment #3)
> Comment on attachment 405875 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=405875&action=review
> 
> > Source/WebKit/ChangeLog:9
> > +        com.apple.private.webkit.use-xpc-endpoint on the iOS Simulator. Disable the entitlment check for simulator.
> 
> r=me but before landing, could you try (or maybe you did already) to add
> this entitlement to iOS simulator?
> Looking at the code, I see XPCService-embedded-simulator.entitlements for
> instance where we could try adding that entitlement.

Good point! That did the trick.

Thanks for reviewing!