Changeset 184001 in webkit
- Timestamp:
- May 8, 2015, 11:45:40 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
dom/Document.cpp (modified) (1 diff)
-
html/HTMLMediaElement.cpp (modified) (3 diffs)
-
html/HTMLMediaElement.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r183998 r184001 1 2015-05-08 Eric Carlson <eric.carlson@apple.com> 2 3 [Mac] Playback target clients do not unregister on page reload 4 https://bugs.webkit.org/show_bug.cgi?id=144761 5 6 Reviewed by Brady Eidson. 7 8 * dom/Document.cpp: 9 (WebCore::Document::prepareForDestruction): Unregister all target picker clients. 10 11 * html/HTMLMediaElement.cpp: 12 (WebCore::HTMLMediaElement::registerWithDocument): Register for page cache callback. 13 (WebCore::HTMLMediaElement::unregisterWithDocument): Unregister for page cache callback. 14 (WebCore::HTMLMediaElement::documentWillSuspendForPageCache): New. 15 (WebCore::HTMLMediaElement::documentDidResumeFromPageCache): New. 16 1 17 2015-05-08 Chris Dumez <cdumez@apple.com> 2 18 -
trunk/Source/WebCore/dom/Document.cpp
r183967 r184001 2253 2253 m_mediaQueryMatcher->documentDestroyed(); 2254 2254 2255 #if ENABLE(WIRELESS_PLAYBACK_TARGET) 2256 if (!m_clientToIDMap.isEmpty() && page()) { 2257 Vector<WebCore::MediaPlaybackTargetClient*> clients; 2258 copyKeysToVector(m_clientToIDMap, clients); 2259 for (auto client : clients) 2260 removePlaybackTargetPickerClient(*client); 2261 } 2262 #endif 2263 2255 2264 disconnectFromFrame(); 2256 2265 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r183826 r184001 461 461 #endif 462 462 463 #if ENABLE(WIRELESS_PLAYBACK_TARGET) 464 document.registerForPageCacheSuspensionCallbacks(this); 465 #endif 466 463 467 document.addAudioProducer(this); 464 468 addElementToDocumentMap(*this, document); … … 487 491 if (m_mediaControlsDependOnPageScaleFactor) 488 492 document.unregisterForPageScaleFactorChangedCallbacks(this); 493 #endif 494 495 #if ENABLE(WIRELESS_PLAYBACK_TARGET) 496 document.unregisterForPageCacheSuspensionCallbacks(this); 489 497 #endif 490 498 … … 509 517 HTMLElement::didMoveToNewDocument(oldDocument); 510 518 } 519 520 #if ENABLE(WIRELESS_PLAYBACK_TARGET) 521 void HTMLMediaElement::documentWillSuspendForPageCache() 522 { 523 m_mediaSession->unregisterWithDocument(*this); 524 } 525 526 void HTMLMediaElement::documentDidResumeFromPageCache() 527 { 528 m_mediaSession->registerWithDocument(*this); 529 } 530 #endif 511 531 512 532 bool HTMLMediaElement::hasCustomFocusLogic() const -
trunk/Source/WebCore/html/HTMLMediaElement.h
r183735 r184001 738 738 void updateCaptionContainer(); 739 739 740 #if ENABLE(WIRELESS_PLAYBACK_TARGET) 741 virtual void documentWillSuspendForPageCache() override final; 742 virtual void documentDidResumeFromPageCache() override final; 743 #endif 744 740 745 Timer m_pendingActionTimer; 741 746 Timer m_progressEventTimer;
Note:
See TracChangeset
for help on using the changeset viewer.