Changeset 273795 in webkit
- Timestamp:
- Mar 2, 2021, 7:08:51 PM (6 years ago)
- Location:
- branches/safari-612.1.5-branch/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
-
branches/safari-612.1.5-branch/Source/WebCore/ChangeLog
r273794 r273795 1 2021-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 1 44 2021-03-02 Alan Coon <alancoon@apple.com> 2 45 -
branches/safari-612.1.5-branch/Source/WebCore/html/HTMLDocument.cpp
r269481 r273795 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 -
branches/safari-612.1.5-branch/Source/WebCore/page/Quirks.cpp
r272977 r273795 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 { -
branches/safari-612.1.5-branch/Source/WebCore/page/Quirks.h
r272977 r273795 148 148 #endif 149 149 150 static bool shouldOmitHTMLDocumentSupportedPropertyNames(); 151 150 152 private: 151 153 bool needsQuirks() const; -
branches/safari-612.1.5-branch/Source/WebCore/platform/cocoa/VersionChecks.h
r272977 r273795 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.