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

Changeset 101210 in webkit


Ignore:
Timestamp:
Nov 27, 2011, 1:13:47 PM (15 years ago)
Author:
annacc@chromium.org
Message:

Don't allow attribute changes on <track> if feature is not enabled.
https://bugs.webkit.org/show_bug.cgi?id=73046

Reviewed by Eric Carlson.

No new tests. This fixes a problem when --enable-video-track is not used,
but the tests use this flag.

  • html/HTMLTrackElement.cpp:

(WebCore::HTMLTrackElement::attributeChanged):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r101208 r101210  
     12011-11-27  Anna Cavender  <annacc@chromium.org>
     2
     3        Don't allow attribute changes on <track> if feature is not enabled.
     4        https://bugs.webkit.org/show_bug.cgi?id=73046
     5
     6        Reviewed by Eric Carlson.
     7
     8        No new tests. This fixes a problem when --enable-video-track is not used,
     9        but the tests use this flag.
     10
     11        * html/HTMLTrackElement.cpp:
     12        (WebCore::HTMLTrackElement::attributeChanged):
     13
    1142011-11-27  Andreas Kling  <kling@webkit.org>
    215
  • trunk/Source/WebCore/html/HTMLTrackElement.cpp

    r101185 r101210  
    9292    HTMLElement::attributeChanged(attr, preserveDecls);
    9393
     94    if (!RuntimeEnabledFeatures::webkitVideoTrackEnabled())
     95        return;
     96
    9497    const QualifiedName& attrName = attr->name();
    9598    if (attrName == srcAttr) {
Note: See TracChangeset for help on using the changeset viewer.