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

Changeset 273442 in webkit


Ignore:
Timestamp:
Feb 24, 2021, 3:02:00 PM (6 years ago)
Author:
Chris Dumez
Message:

Regression(r269481) Kugou Music: Can not leave "MV" category after selecting it
​https://bugs.webkit.org/show_bug.cgi?id=222380
<rdar://74602294>

Reviewed by Geoffrey Garen.

The new behavior in r269481 aligns us with the specification and with Blink so I
am adding a linked-on-after to maintain pre-r269481 behavior until Apps get
rebuilt against the new SDK.

  • html/HTMLDocument.cpp:

(WebCore::HTMLDocument::supportedPropertyNames const):

  • page/Quirks.cpp:

(WebCore::Quirks::shouldOmitHTMLDocumentSupportedPropertyNames):

  • page/Quirks.h:
  • platform/cocoa/VersionChecks.h:
Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r273438 r273442  
     12021-02-24  Chris Dumez  <cdumez@apple.com>
     2
     3        Regression(r269481) Kugou Music: Can not leave "MV" category after selecting it
     4        https://bugs.webkit.org/show_bug.cgi?id=222380
     5        <rdar://74602294>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        The new behavior in r269481 aligns us with the specification and with Blink so I
     10        am adding a linked-on-after to maintain pre-r269481 behavior until Apps get
     11        rebuilt against the new SDK.
     12
     13        * html/HTMLDocument.cpp:
     14        (WebCore::HTMLDocument::supportedPropertyNames const):
     15        * page/Quirks.cpp:
     16        (WebCore::Quirks::shouldOmitHTMLDocumentSupportedPropertyNames):
     17        * page/Quirks.h:
     18        * platform/cocoa/VersionChecks.h:
     19
    1202021-02-24  Chris Dumez  <cdumez@apple.com>
    221
  • trunk/Source/WebCore/html/HTMLDocument.cpp

    r269481 r273442  
    7575#include "HTMLIFrameElement.h"
    7676#include "HTMLNames.h"
     77#include "Quirks.h"
    7778#include "ScriptController.h"
    7879#include "StyleResolver.h"
    … …  
    141142Vector<AtomString> HTMLDocument::supportedPropertyNames() const
    142143{
     144    if (Quirks::shouldOmitHTMLDocumentSupportedPropertyNames())
     145        return { };
     146
    143147    auto properties = m_documentNamedItem.keys();
    144148    // The specification says these should be sorted in document order but this would be expensive
  • trunk/Source/WebCore/page/Quirks.cpp

    r272977 r273442  
    661661}
    662662
     663bool Quirks::shouldOmitHTMLDocumentSupportedPropertyNames()
     664{
     665#if PLATFORM(COCOA)
     666    static bool shouldOmitHTMLDocumentSupportedPropertyNames = !linkedOnOrAfter(SDKVersion::FirstWithHTMLDocumentSupportedPropertyNames);
     667    return shouldOmitHTMLDocumentSupportedPropertyNames;
     668#else
     669    return false;
     670#endif
     671}
     672
    663673bool Quirks::shouldSilenceWindowResizeEvents() const
    664674{
  • trunk/Source/WebCore/page/Quirks.h

    r272977 r273442  
    148148#endif
    149149
     150    static bool shouldOmitHTMLDocumentSupportedPropertyNames();
     151
    150152private:
    151153    bool needsQuirks() const;
  • trunk/Source/WebCore/platform/cocoa/VersionChecks.h

    r272977 r273442  
    6666    FirstVersionWithiOSAppsOnMacOS = DYLD_IOS_VERSION_FIRST_WITH_IOS_APPS_ON_MACOS,
    6767    FirstWithDataURLFragmentRemoval = DYLD_IOS_VERSION_14_5,
     68    FirstWithHTMLDocumentSupportedPropertyNames = DYLD_IOS_VERSION_14_5,
    6869    FirstThatObservesClassProperty = DYLD_IOS_VERSION_14_5,
    6970    FirstWithNullOriginForNonSpecialSchemedURLs = DYLD_IOS_VERSION_15_0,
    … …  
    8788    FirstWithWKWebsiteDataStoreInitReturningNil = DYLD_MACOSX_VERSION_10_16,
    8889    FirstWithDataURLFragmentRemoval = DYLD_MACOSX_VERSION_11_3,
     90    FirstWithHTMLDocumentSupportedPropertyNames = DYLD_MACOSX_VERSION_11_3,
    8991    FirstWithNullOriginForNonSpecialSchemedURLs = DYLD_MACOSX_VERSION_12_00,
    9092#endif
Note: See TracChangeset for help on using the changeset viewer.