Bugzilla
Quick Search
Browse
Advanced Search
Reports
Quick Search Help
Documentation
New Account
Log In
Login with GitHub
Remember
Forgot Password
Mozilla Home
Privacy
Cookies
Legal
Attachment 8933289 Details for
Bug 1419363
[patch]
Switch to WeakPtr
bug_1419363.patch (text/plain), 725 bytes, created by
Andreas Pehrson [:pehrsons]
(
hide
)
Description:
Switch to WeakPtr
Filename:
MIME Type:
Creator:
Andreas Pehrson [:pehrsons]
Size:
725 bytes
patch
obsolete
>changeset: 448840:94724d3dfacb >bookmark: bug_1419363 >tag: tip >user: Andreas Pehrson <pehrsons@mozilla.com> >date: Thu Nov 30 14:49:06 2017 +0100 >summary: Bug 1419363 - Switch to WeakPtr. r?jib > >diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp >--- a/dom/html/HTMLMediaElement.cpp >+++ b/dom/html/HTMLMediaElement.cpp >@@ -5237,11 +5237,14 @@ public: > { > NS_ASSERTION(NS_IsMainThread(), "Should be on main thread."); > >+ if (!mElement) { >+ return; >+ } > mElement->NotifyMediaStreamTracksAvailable(aStream); > } > > private: >- HTMLMediaElement* mElement; >+ WeakPtr<HTMLMediaElement> mElement; > }; > > class HTMLMediaElement::MediaStreamTrackListener : >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Flags:
jib
: review+
gchang
: approval-mozilla-beta+
gchang
: approval-mozilla-esr52+
abillings
: sec-approval+
Actions:
View
|
Diff
|
Review
Attachments on
bug 1419363
:
8930432
|
8930433
| 8933289