Changeset 224703 in webkit


Ignore:
Timestamp:
Nov 10, 2017 2:03:06 PM (6 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r224602 and r224697.
https://bugs.webkit.org/show_bug.cgi?id=179545

The LayoutTest for this change is flaky. (Requested by
ryanhaddad on #webkit).

Reverted changesets:

"Add tests to ensure that <source> tags are only preloaded
when the type"
https://bugs.webkit.org/show_bug.cgi?id=179231
https://trac.webkit.org/changeset/224602

"Fix race conditions with setBackingScaleFactor, page refresh
and preloader"
https://bugs.webkit.org/show_bug.cgi?id=179488
https://trac.webkit.org/changeset/224697

Patch by Commit Queue <commit-queue@webkit.org> on 2017-11-10

Location:
trunk
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r224702 r224703  
     12017-11-10  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r224602 and r224697.
     4        https://bugs.webkit.org/show_bug.cgi?id=179545
     5
     6        The LayoutTest for this change is flaky. (Requested by
     7        ryanhaddad on #webkit).
     8
     9        Reverted changesets:
     10
     11        "Add tests to ensure that <source> tags are only preloaded
     12        when the `type`"
     13        https://bugs.webkit.org/show_bug.cgi?id=179231
     14        https://trac.webkit.org/changeset/224602
     15
     16        "Fix race conditions with setBackingScaleFactor, page refresh
     17        and preloader"
     18        https://bugs.webkit.org/show_bug.cgi?id=179488
     19        https://trac.webkit.org/changeset/224697
     20
    1212017-11-10  Chris Dumez  <cdumez@apple.com>
    222
  • trunk/Source/WebCore/ChangeLog

    r224702 r224703  
     12017-11-10  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r224602 and r224697.
     4        https://bugs.webkit.org/show_bug.cgi?id=179545
     5
     6        The LayoutTest for this change is flaky. (Requested by
     7        ryanhaddad on #webkit).
     8
     9        Reverted changesets:
     10
     11        "Add tests to ensure that <source> tags are only preloaded
     12        when the `type`"
     13        https://bugs.webkit.org/show_bug.cgi?id=179231
     14        https://trac.webkit.org/changeset/224602
     15
     16        "Fix race conditions with setBackingScaleFactor, page refresh
     17        and preloader"
     18        https://bugs.webkit.org/show_bug.cgi?id=179488
     19        https://trac.webkit.org/changeset/224697
     20
    1212017-11-10  Chris Dumez  <cdumez@apple.com>
    222
  • trunk/Source/WebCore/html/parser/HTMLPreloadScanner.cpp

    r224602 r224703  
    3737#include "LinkRelAttribute.h"
    3838#include "Logging.h"
    39 #include "MIMETypeRegistry.h"
    4039#include "MediaList.h"
    4140#include "MediaQueryEvaluator.h"
     
    123122        }
    124123       
    125         if (m_tagId == TagId::Source && !pictureState.isEmpty() && !pictureState.last() && m_mediaMatched && m_typeMatched && !m_srcSetAttribute.isEmpty()) {
     124        if (m_tagId == TagId::Source && !pictureState.isEmpty() && !pictureState.last() && m_mediaMatched && !m_srcSetAttribute.isEmpty()) {
    126125           
    127126            auto sourceSize = SizesAttributeParser(m_sizesAttribute, document).length();
     
    220219                LOG(MediaQueries, "HTMLPreloadScanner %p processAttribute evaluating media queries", this);
    221220                m_mediaMatched = MediaQueryEvaluator { document.printing() ? "print" : "screen", document, documentElement ? documentElement->computedStyle() : nullptr }.evaluate(mediaSet.get());
    222             }
    223             if (match(attributeName, typeAttr) && m_typeAttribute.isNull()) {
    224                 // when multiple type attributes present: first value wins, ignore subsequent (to match ImageElement parser and Blink behaviours)
    225                 m_typeAttribute = attributeValue;
    226                 m_typeMatched &= MIMETypeRegistry::isSupportedImageOrSVGMIMEType(m_typeAttribute);
    227221            }
    228222            break;
     
    348342    String m_sizesAttribute;
    349343    bool m_mediaMatched { true };
    350     bool m_typeMatched { true };
    351344    String m_charset;
    352345    String m_crossOriginMode;
Note: See TracChangeset for help on using the changeset viewer.