| Summary: | Clear state after process crash so that we know to re-issue sandbox extensions | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||||||
| Component: | WebKit2 | Assignee: | Brent Fulgham <bfulgham> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | kkinnunen, mjs, pvollan, thorton, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Brent Fulgham
2021-06-16 17:11:43 PDT
Created attachment 431624 [details]
Patch
Comment on attachment 431624 [details]
Patch
R=me.
Committed r279014 (238939@main): <https://commits.webkit.org/238939@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 431624 [details]. Reopening to attach new patch. Created attachment 431745 [details]
Patch
Comment on attachment 431745 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431745&action=review > Source/WebKit/UIProcess/WebPageProxy.cpp:8201 > - if (m_preferences->attachmentElementEnabled() && !m_process->hasIssuedAttachmentElementRelatedSandboxExtensions()) { > + if (m_preferences->attachmentElementEnabled() && !process.hasIssuedAttachmentElementRelatedSandboxExtensions()) { There's other code that uses m_process in this function... is it wrong too?? (In reply to Tim Horton from comment #7) > Comment on attachment 431745 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=431745&action=review > > > Source/WebKit/UIProcess/WebPageProxy.cpp:8201 > > - if (m_preferences->attachmentElementEnabled() && !m_process->hasIssuedAttachmentElementRelatedSandboxExtensions()) { > > + if (m_preferences->attachmentElementEnabled() && !process.hasIssuedAttachmentElementRelatedSandboxExtensions()) { > > There's other code that uses m_process in this function... is it wrong too?? Probably? I’ll take a look…. Created attachment 431784 [details]
Patch for landing
(In reply to Brent Fulgham from comment #8) > (In reply to Tim Horton from comment #7) > > Comment on attachment 431745 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=431745&action=review > > > > > Source/WebKit/UIProcess/WebPageProxy.cpp:8201 > > > - if (m_preferences->attachmentElementEnabled() && !m_process->hasIssuedAttachmentElementRelatedSandboxExtensions()) { > > > + if (m_preferences->attachmentElementEnabled() && !process.hasIssuedAttachmentElementRelatedSandboxExtensions()) { > > > > There's other code that uses m_process in this function... is it wrong too?? > > Probably? I’ll take a look…. The only other instance I saw was this one: parameters.shouldCaptureDisplayInUIProcess = m_process->processPool().configuration().shouldCaptureDisplayInUIProcess(); I didn't change it because I wanted to check with GPU Process people. I suspect its fine as-is, since they are likely using the same process pool. I wasn't sure if the state about capturing display in the UI Process would be correct in the new process yet, either. Committed r279045 (238965@main): <https://commits.webkit.org/238965@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 431784 [details]. |