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

Changeset 243378 in webkit


Ignore:
Timestamp:
Mar 22, 2019, 9:03:31 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r243094): Automation: browser crash in WebAutomationSession::exitFullscreenWindowForPage()
https://bugs.webkit.org/show_bug.cgi?id=196140

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2019-03-22
Reviewed by Chris Dumez.

Since r243094, the WebPageProxy fullscreen manager is not created in the constructor, but once the page has a
process launched.

  • UIProcess/Automation/WebAutomationSession.cpp:

(WebKit::WebAutomationSession::exitFullscreenWindowForPage): Null check WebPageProxy::fullScreenManager() before
using it.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r243376 r243378  
     12019-03-22  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        REGRESSION(r243094): Automation: browser crash in WebAutomationSession::exitFullscreenWindowForPage()
     4        https://bugs.webkit.org/show_bug.cgi?id=196140
     5
     6        Reviewed by Chris Dumez.
     7
     8        Since r243094, the WebPageProxy fullscreen manager is not created in the constructor, but once the page has a
     9        process launched.
     10
     11        * UIProcess/Automation/WebAutomationSession.cpp:
     12        (WebKit::WebAutomationSession::exitFullscreenWindowForPage): Null check WebPageProxy::fullScreenManager() before
     13        using it.
     14
    1152019-03-22  Timothy Hatcher  <timothy@apple.com>
    216
  • trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp

    r243340 r243378  
    599599#if ENABLE(FULLSCREEN_API)
    600600    ASSERT(!m_windowStateTransitionCallback);
    601     if (!page.fullScreenManager()->isFullScreen()) {
     601    if (!page.fullScreenManager() || !page.fullScreenManager()->isFullScreen()) {
    602602        completionHandler();
    603603        return;
Note: See TracChangeset for help on using the changeset viewer.