WebKit Bugzilla
Attachment 348537 Details for
Bug 189170
: REGRESSION(r235489): fast/dom/navigator-detached-no-crash.html crashes under Navigator::share
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-189170-20180830133543.patch (text/plain), 1.33 KB, created by
Olivia Barnett
on 2018-08-30 13:35:44 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Olivia Barnett
Created:
2018-08-30 13:35:44 PDT
Size:
1.33 KB
patch
obsolete
>Subversion Revision: 235520 >diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog >index 6195ecd9dd004a84fb087d84fff33ac6bbf602fc..81ac72ba0af87fe2fa0bdc364da4f1ad986e683b 100644 >--- a/Source/WebCore/ChangeLog >+++ b/Source/WebCore/ChangeLog >@@ -1,3 +1,16 @@ >+2018-08-30 Olivia Barnett <obarnett@apple.com> >+ >+ REGRESSION(r235489): fast/dom/navigator-detached-no-crash.html crashes under Navigator::share >+ https://bugs.webkit.org/show_bug.cgi?id=189170 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ No new tests (OOPS!). >+ >+ * page/Navigator.cpp: >+ (WebCore::Navigator::share): >+ Added null check for frame. >+ > 2018-08-30 Andy Estes <aestes@apple.com> > > [Payment Request] Implement the PaymentMethodChangeEvent and PaymentMethodChangeEventInit interfaces >diff --git a/Source/WebCore/page/Navigator.cpp b/Source/WebCore/page/Navigator.cpp >index 2aef7a9cc5021e40c7195c882e400e339cfb348e..7569ca854ec6bb0993e5c3a7d0ee82419f52b3a3 100644 >--- a/Source/WebCore/page/Navigator.cpp >+++ b/Source/WebCore/page/Navigator.cpp >@@ -99,7 +99,7 @@ bool Navigator::onLine() const > > void Navigator::share(ScriptExecutionContext& context, ShareData data, Ref<DeferredPromise>&& promise) > { >- if (!m_frame->page()) { >+ if (!m_frame || !m_frame->page()) { > promise->reject(TypeError); > return; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 189170
:
348537
|
348540