Closed
Bug 1128742
Opened 10 years ago
Closed 10 years ago
Prevent MSE content from being stored in bfcache
Categories
(Core :: Audio/Video, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox35 | --- | unaffected |
firefox36 | --- | affected |
firefox37 | --- | affected |
firefox38 | --- | affected |
People
(Reporter: cajbir, Assigned: cajbir)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
3.69 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
To reduce MSE memory usage we won't store MSE data when the document is in bfcache and will reload the page when it's brought back.
Assignee | ||
Comment 1•10 years ago
|
||
Enumerates HTMLMediaElements in page looking for those that contain a MediaSource object. If it has one the page should not be put in bfcache by returning false from CanSavePresentation.
Assignee | ||
Comment 2•10 years ago
|
||
Updated•10 years ago
|
status-firefox35:
--- → unaffected
status-firefox36:
--- → affected
status-firefox37:
--- → affected
status-firefox38:
--- → affected
Comment on attachment 8558218 [details] [diff] [review]
Prevent pages with MSE content from going into bfcache
Review of attachment 8558218 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/base/nsDocument.cpp
@@ +4576,5 @@
> + MOZ_ASSERT(content, "aSupports is not a content");
> + HTMLMediaElement* mediaElem = static_cast<HTMLMediaElement*>(content.get());
> + bool* contains = static_cast<bool*>(aContainsMSE);
> + nsRefPtr<MediaSource> ms = mediaElem->GetMozMediaSourceObject();
> + if (ms.get()) {
if (ms) {
Attachment #8558218 -
Flags: review?(roc) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Crashed on Try:
https://tbpl.mozilla.org/php/getParsedLog.php?id=58069831&tree=Try&full=1
Adding NULL pointer check for mLoadingSrc in HTMLMediaElement::GetMozMediaSourceObject.
New try push: https://tbpl.mozilla.org/?tree=Try&rev=0f1f87b54745
Comment 5•10 years ago
|
||
Per IRC, we don't think this will help YouTube, because it has unload listeners.
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Ralph Giles (:rillian) from comment #5)
> Per IRC, we don't think this will help YouTube, because it has unload
> listeners.
Yes, we'll land but no need to uplift to beta.
Assignee | ||
Comment 7•10 years ago
|
||
Pushed with NULL pointer breakage fix.
https://hg.mozilla.org/integration/mozilla-inbound/rev/c85ab430a0c2
Comment 8•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•