Bug 182546 - The WebContent process should not reference NSApp.
Summary: The WebContent process should not reference NSApp.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Per Arne Vollan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-02-06 12:28 PST by Per Arne Vollan
Modified: 2018-02-06 13:49 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Per Arne Vollan 2018-02-06 12:28:20 PST
Since the WebContent process is no longer using the NSApplication run loop, the NSApp object is no longer guaranteed to be non-nil. We are currently calling [NSApplication sharedApplication] in WebProcess::platformInitializeWebProcess which will set NSApp, but we will possibly remove this call in the future. We should identify where we reference NSApp in the WebContent process, and determine how each case should be handled when we are using NSRunLoop.
Comment 1 Per Arne Vollan 2018-02-06 13:47:15 PST
<rdar://problem/37287247>