Changeset 273442 in webkit
- Timestamp:
- Feb 24, 2021, 3:02:00 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
html/HTMLDocument.cpp (modified) (2 diffs)
-
page/Quirks.cpp (modified) (1 diff)
-
page/Quirks.h (modified) (1 diff)
-
platform/cocoa/VersionChecks.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r273438 r273442 1 2021-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 1 20 2021-02-24 Chris Dumez <cdumez@apple.com> 2 21 -
trunk/Source/WebCore/html/HTMLDocument.cpp
r269481 r273442 75 75 #include "HTMLIFrameElement.h" 76 76 #include "HTMLNames.h" 77 #include "Quirks.h" 77 78 #include "ScriptController.h" 78 79 #include "StyleResolver.h" … … 141 142 Vector<AtomString> HTMLDocument::supportedPropertyNames() const 142 143 { 144 if (Quirks::shouldOmitHTMLDocumentSupportedPropertyNames()) 145 return { }; 146 143 147 auto properties = m_documentNamedItem.keys(); 144 148 // The specification says these should be sorted in document order but this would be expensive -
trunk/Source/WebCore/page/Quirks.cpp
r272977 r273442 661 661 } 662 662 663 bool 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 663 673 bool Quirks::shouldSilenceWindowResizeEvents() const 664 674 { -
trunk/Source/WebCore/page/Quirks.h
r272977 r273442 148 148 #endif 149 149 150 static bool shouldOmitHTMLDocumentSupportedPropertyNames(); 151 150 152 private: 151 153 bool needsQuirks() const; -
trunk/Source/WebCore/platform/cocoa/VersionChecks.h
r272977 r273442 66 66 FirstVersionWithiOSAppsOnMacOS = DYLD_IOS_VERSION_FIRST_WITH_IOS_APPS_ON_MACOS, 67 67 FirstWithDataURLFragmentRemoval = DYLD_IOS_VERSION_14_5, 68 FirstWithHTMLDocumentSupportedPropertyNames = DYLD_IOS_VERSION_14_5, 68 69 FirstThatObservesClassProperty = DYLD_IOS_VERSION_14_5, 69 70 FirstWithNullOriginForNonSpecialSchemedURLs = DYLD_IOS_VERSION_15_0, … … 87 88 FirstWithWKWebsiteDataStoreInitReturningNil = DYLD_MACOSX_VERSION_10_16, 88 89 FirstWithDataURLFragmentRemoval = DYLD_MACOSX_VERSION_11_3, 90 FirstWithHTMLDocumentSupportedPropertyNames = DYLD_MACOSX_VERSION_11_3, 89 91 FirstWithNullOriginForNonSpecialSchemedURLs = DYLD_MACOSX_VERSION_12_00, 90 92 #endif
Note:
See TracChangeset
for help on using the changeset viewer.