⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 236513 in webkit


Ignore:
Timestamp:
Sep 26, 2018, 11:45:23 AM (8 years ago)
Author:
Chris Dumez
Message:

Unreviewed, apply post-landing review comments after r236512.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::didCreateMainFrame):
(WebKit::WebPageProxy::didCreateSubframe):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r236512 r236513  
     12018-09-26  Chris Dumez  <cdumez@apple.com>
     2
     3        Unreviewed, apply post-landing review comments after r236512.
     4
     5        * UIProcess/WebPageProxy.cpp:
     6        (WebKit::WebPageProxy::didCreateMainFrame):
     7        (WebKit::WebPageProxy::didCreateSubframe):
     8
    192018-09-26  Chris Dumez  <cdumez@apple.com>
    210
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r236512 r236513  
    33583358void WebPageProxy::didCreateMainFrame(uint64_t frameID)
    33593359{
     3360    // The DecidePolicyForNavigationActionSync IPC is synchronous and may therefore get processed before the DidCreateMainFrame one.
     3361    // When this happens, decidePolicyForNavigationActionSync() calls didCreateMainFrame() and we need to ignore the DidCreateMainFrame
     3362    // IPC when it later gets processed.
    33603363    if (m_mainFrame && m_mainFrame->frameID() == frameID)
    33613364        return;
     
    33843387    MESSAGE_CHECK(m_mainFrame);
    33853388
     3389    // The DecidePolicyForNavigationActionSync IPC is synchronous and may therefore get processed before the DidCreateSubframe one.
     3390    // When this happens, decidePolicyForNavigationActionSync() calls didCreateSubframe() and we need to ignore the DidCreateSubframe
     3391    // IPC when it later gets processed.
    33863392    if (m_process->webFrame(frameID))
    33873393        return;
Note: See TracChangeset for help on using the changeset viewer.