When we get the system memory pressure notification, we should try to drop buffered data for paused media elements. <rdar://problem/20366883>
Created attachment 255675 [details] Patch idea
Attachment 255675 [details] did not pass style-queue: ERROR: Source/WebCore/platform/MemoryPressureHandler.cpp:148: Missing space around : in range-based for statement [whitespace/colon] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
*** Bug 146368 has been marked as a duplicate of this bug. ***
Comment on attachment 255675 [details] Patch idea View in context: https://bugs.webkit.org/attachment.cgi?id=255675&action=review Very nice - thanks! > Source/WebCore/html/HTMLMediaElement.cpp:6385 > +void HTMLMediaElement::dropBufferedDataIfPossible() Nit: "purgeBufferedDataIfPossible" might be slightly clearer.
Committed r186054: <http://trac.webkit.org/changeset/186054>