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

Changeset 184085 in webkit


Ignore:
Timestamp:
May 11, 2015, 6:01:19 AM (11 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r182918 - 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:
releases/WebKitGTK/webkit-2.8/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.8/Source/WebCore/ChangeLog

    r184084 r184085  
     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-15  Simon Fraser  <simon.fraser@apple.com>
    212
  • releases/WebKitGTK/webkit-2.8/Source/WebCore/html/HTMLMediaElement.cpp

    r184074 r184085  
    52785278
    52795279#if ENABLE(MEDIA_CONTROLS_SCRIPT)
    5280     if (!requireControls || !inDocument())
     5280    if (!requireControls || !inDocument() || !inActiveDocument())
    52815281        return;
    52825282
    52835283    ensureUserAgentShadowRoot();
    52845284#else
    5285     if (!requireControls || !inDocument()) {
     5285    if (!requireControls || !inDocument() || !inActiveDocument()) {
    52865286        if (hasMediaControls())
    52875287            mediaControls()->hide();
Note: See TracChangeset for help on using the changeset viewer.