-
rdar://problem/7902467beidson@apple.com authored
Reviewed by Eric Carlson. No new tests. (Currently no way to test such site specific hack behavior) * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::HTMLMediaElement): (WebCore::HTMLMediaElement::asyncEventTimerFired): If the event to be dispatched is the canplay event, wrap the dispatch with m_dispatchingCanPlayEvent set. (WebCore::HTMLMediaElement::play): If m_dispatchingCanPlayEvent is true and the site is npr.org, don't perform the play(). * html/HTMLMediaElement.h: Add m_dispatchingCanPlayEvent member. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58586 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3ff921d3