⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 182918 in webkit


Ignore:
Timestamp:
Apr 16, 2015, 4:04:00 PM (11 years ago)
Author:
ap@apple.com
Message:

Media element can manipulate DOM during Document destruction.
rdar://problem/20553898 and https://bugs.webkit.org/show_bug.cgi?id=143780

Patch by Brady Eidson <beidson@apple.com> on 2015-04-16
Reviewed by Jer Noble.

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::configureMediaControls): Bail if the element has no active document.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r182914 r182918  
     12015-04-16  Brady Eidson  <beidson@apple.com>
     2
     3        Media element can manipulate DOM during Document destruction.
     4        rdar://problem/20553898 and https://bugs.webkit.org/show_bug.cgi?id=143780
     5
     6        Reviewed by Jer Noble.
     7
     8        * html/HTMLMediaElement.cpp:
     9        (WebCore::HTMLMediaElement::configureMediaControls): Bail if the element has no active document.
     10
    1112015-04-13  Jer Noble  <jer.noble@apple.com>
    212
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r182860 r182918  
    53245324
    53255325#if ENABLE(MEDIA_CONTROLS_SCRIPT)
    5326     if (!requireControls || !inDocument())
     5326    if (!requireControls || !inDocument() || !inActiveDocument())
    53275327        return;
    53285328
    53295329    ensureUserAgentShadowRoot();
    53305330#else
    5331     if (!requireControls || !inDocument()) {
     5331    if (!requireControls || !inDocument() || !inActiveDocument()) {
    53325332        if (hasMediaControls())
    53335333            mediaControls()->hide();
Note: See TracChangeset for help on using the changeset viewer.