Changeset 235524 in webkit


Ignore:
Timestamp:
Aug 30, 2018 2:33:38 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r235489): fast/dom/navigator-detached-no-crash.html crashes under Navigator::share
https://bugs.webkit.org/show_bug.cgi?id=189170

Patch by Olivia Barnett <obarnett@apple.com> on 2018-08-30
Reviewed by Tim Horton.

No new tests; fixing a failing existing test.

  • page/Navigator.cpp:

(WebCore::Navigator::share):
Added null check for frame.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r235523 r235524  
     12018-08-30  Olivia Barnett  <obarnett@apple.com>
     2
     3        REGRESSION(r235489): fast/dom/navigator-detached-no-crash.html crashes under Navigator::share
     4        https://bugs.webkit.org/show_bug.cgi?id=189170
     5
     6        Reviewed by Tim Horton.
     7
     8        No new tests; fixing a failing existing test.
     9
     10        * page/Navigator.cpp:
     11        (WebCore::Navigator::share):
     12        Added null check for frame.
     13
    1142018-08-30  Truitt Savell  <tsavell@apple.com>
    215
  • trunk/Source/WebCore/page/Navigator.cpp

    r235489 r235524  
    100100void Navigator::share(ScriptExecutionContext& context, ShareData data, Ref<DeferredPromise>&& promise)
    101101{
    102     if (!m_frame->page()) {
     102    if (!m_frame || !m_frame->page()) {
    103103        promise->reject(TypeError);
    104104        return;
Note: See TracChangeset for help on using the changeset viewer.