Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 0532f1c. rdar://117840925
RELEASE_ASSERT() under GPUProcessConnection::create(IPC::Connection&) https://bugs.webkit.org/show_bug.cgi?id=264612 rdar://117840925 Reviewed by Brent Fulgham. When a WebProcess requests a connection to the GPUProcess, the UIProcess needs to pass preferences for this WebProcess. Preferences are associated with WebPages and thus we cannot initiate a connection to the GPUProcess before a WebPage has been created. I had tried to add an assertion to this effect in GPUProcessConnection::create(). However, my assertion was a little stricter than needed and could get hit in the wild. It is sufficient for a process to have ever had a WebPage (The WebProcessProxy stores the preferences locally), we don't need to have a living WebPage at the moment when the connection gets requested. * Source/WebKit/WebProcess/GPU/GPUProcessConnection.cpp: (WebKit::GPUProcessConnection::create): * Source/WebKit/WebProcess/WebProcess.cpp: (WebKit::WebProcess::createWebPage): * Source/WebKit/WebProcess/WebProcess.h: (WebKit::WebProcess::hasEverHadAnyWebPages const): (WebKit::WebProcess::hasWebPages const): Deleted. Canonical link: https://commits.webkit.org/270569@main Canonical link: https://commits.webkit.org/267815.562@safari-7617.1.17.11-branch
- Loading branch information