Bug 161322

Summary: Stop using WebProcessProxy::fromConnection in WebPageProxy
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mitz: review+

Anders Carlsson
Reported 2016-08-29 12:39:49 PDT
Stop using WebProcessProxy::fromConnection in WebPageProxy
Attachments
Patch (2.96 KB, patch)
2016-08-29 12:40 PDT, Anders Carlsson
mitz: review+
Anders Carlsson
Comment 1 2016-08-29 12:40:23 PDT
Darin Adler
Comment 2 2016-08-29 12:42:45 PDT
Comment on attachment 287308 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=287308&action=review > Source/WebKit2/ChangeLog:8 > + The WebPageProxy alreayd knows its WebProcessProxy - no need to look it up from the connection. Typo: already misspelled. > Source/WebKit2/UIProcess/WebPageProxy.cpp:672 > + ASSERT(m_process->connection() == &connection); Is there a solid guarantee that m_process is not null in these functions?
Anders Carlsson
Comment 3 2016-08-29 12:46:26 PDT
(In reply to comment #2) > Comment on attachment 287308 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=287308&action=review > > > Source/WebKit2/ChangeLog:8 > > + The WebPageProxy alreayd knows its WebProcessProxy - no need to look it up from the connection. > > Typo: already misspelled. > > > Source/WebKit2/UIProcess/WebPageProxy.cpp:672 > > + ASSERT(m_process->connection() == &connection); > > Is there a solid guarantee that m_process is not null in these functions? m_process is never null. m_process->connection() can be null during launch, but no incoming messages are dispatched at that time.
Anders Carlsson
Comment 4 2016-08-29 12:46:50 PDT
Note You need to log in before you can comment on or make changes to this bug.