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

Changeset 273795 in webkit


Ignore:
Timestamp:
Mar 2, 2021, 7:08:51 PM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r273442. rdar://problem/74952740

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:

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@273442 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612.1.5-branch/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612.1.5-branch/Source/WebCore/ChangeLog

    r273794 r273795  
     12021-03-02  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r273442. rdar://problem/74952740
     4
     5    Regression(r269481) Kugou Music: Can not leave "MV" category after selecting it
     6    https://bugs.webkit.org/show_bug.cgi?id=222380
     7    <rdar://74602294>
     8   
     9    Reviewed by Geoffrey Garen.
     10   
     11    The new behavior in r269481 aligns us with the specification and with Blink so I
     12    am adding a linked-on-after to maintain pre-r269481 behavior until Apps get
     13    rebuilt against the new SDK.
     14   
     15    * html/HTMLDocument.cpp:
     16    (WebCore::HTMLDocument::supportedPropertyNames const):
     17    * page/Quirks.cpp:
     18    (WebCore::Quirks::shouldOmitHTMLDocumentSupportedPropertyNames):
     19    * page/Quirks.h:
     20    * platform/cocoa/VersionChecks.h:
     21   
     22   
     23    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     24
     25    2021-02-24  Chris Dumez  <cdumez@apple.com>
     26
     27            Regression(r269481) Kugou Music: Can not leave "MV" category after selecting it
     28            https://bugs.webkit.org/show_bug.cgi?id=222380
     29            <rdar://74602294>
     30
     31            Reviewed by Geoffrey Garen.
     32
     33            The new behavior in r269481 aligns us with the specification and with Blink so I
     34            am adding a linked-on-after to maintain pre-r269481 behavior until Apps get
     35            rebuilt against the new SDK.
     36
     37            * html/HTMLDocument.cpp:
     38            (WebCore::HTMLDocument::supportedPropertyNames const):
     39            * page/Quirks.cpp:
     40            (WebCore::Quirks::shouldOmitHTMLDocumentSupportedPropertyNames):
     41            * page/Quirks.h:
     42            * platform/cocoa/VersionChecks.h:
     43
    1442021-03-02  Alan Coon  <alancoon@apple.com>
    245
  • branches/safari-612.1.5-branch/Source/WebCore/html/HTMLDocument.cpp

    r269481 r273795  
    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
  • branches/safari-612.1.5-branch/Source/WebCore/page/Quirks.cpp

    r272977 r273795  
    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{
  • branches/safari-612.1.5-branch/Source/WebCore/page/Quirks.h

    r272977 r273795  
    148148#endif
    149149
     150    static bool shouldOmitHTMLDocumentSupportedPropertyNames();
     151
    150152private:
    151153    bool needsQuirks() const;
  • branches/safari-612.1.5-branch/Source/WebCore/platform/cocoa/VersionChecks.h

    r272977 r273795  
    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.