Changeset 285731 in webkit
- Timestamp:
- Nov 12, 2021, 10:29:14 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
Source/WTF/ChangeLog (modified) (1 diff)
-
Source/WTF/Scripts/Preferences/WebPreferences.yaml (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/bindings/js/WebCoreBuiltinNames.h (modified) (1 diff)
-
Source/WebCore/dom/Document.cpp (modified) (1 diff)
-
Source/WebCore/mathml/MathMLElement.idl (modified) (1 diff)
-
Source/WebCore/mathml/MathMLMathElement.idl (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/WebProcess/WebPage/WebPage.cpp (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r285726 r285731 1 2021-11-12 Chris Dumez <cdumez@apple.com> 2 3 Disable MathML when in Captive Portal Mode 4 https://bugs.webkit.org/show_bug.cgi?id=233013 5 <rdar://84567129> 6 7 Reviewed by Brent Fulgham. 8 9 Add runtime feature flag for MathML. 10 11 * Scripts/Preferences/WebPreferences.yaml: 12 1 13 2021-11-12 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml
r285376 r285731 1341 1341 default: false 1342 1342 1343 MathMLEnabled: 1344 type: bool 1345 condition: ENABLE(MATHML) 1346 defaultValue: 1347 WebKitLegacy: 1348 default: true 1349 WebKit: 1350 default: true 1351 WebCore: 1352 default: true 1353 1343 1354 MaxParseDuration: 1344 1355 type: double -
trunk/Source/WebCore/ChangeLog
r285730 r285731 1 2021-11-12 Chris Dumez <cdumez@apple.com> 2 3 Disable MathML when in Captive Portal Mode 4 https://bugs.webkit.org/show_bug.cgi?id=233013 5 <rdar://84567129> 6 7 Reviewed by Brent Fulgham. 8 9 Add runtime feature flag for MathML and update implementation in WebCore to only support 10 MathML when the flag is on. 11 12 * bindings/js/WebCoreBuiltinNames.h: 13 * dom/Document.cpp: 14 (WebCore::Document::createElement): 15 * mathml/MathMLElement.idl: 16 * mathml/MathMLMathElement.idl: 17 1 18 2021-11-11 Mark Lam <mark.lam@apple.com> 2 19 -
trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h
r285564 r285731 198 198 macro(Lock) \ 199 199 macro(LockManager) \ 200 macro(MathMLElement) \ 201 macro(MathMLMathElement) \ 200 202 macro(MediaCapabilities) \ 201 203 macro(MediaCapabilitiesInfo) \ -
trunk/Source/WebCore/dom/Document.cpp
r285449 r285731 1257 1257 element = SVGElementFactory::createElement(name, *this, createdByParser); 1258 1258 #if ENABLE(MATHML) 1259 else if ( name.namespaceURI() == MathMLNames::mathmlNamespaceURI)1259 else if (settings().mathMLEnabled() && name.namespaceURI() == MathMLNames::mathmlNamespaceURI) 1260 1260 element = MathMLElementFactory::createElement(name, *this, createdByParser); 1261 1261 #endif -
trunk/Source/WebCore/mathml/MathMLElement.idl
r267893 r285731 26 26 [ 27 27 Conditional=MATHML, 28 EnabledBySetting=MathMLEnabled, 28 29 JSGenerateToNativeObject, 29 30 Exposed=Window -
trunk/Source/WebCore/mathml/MathMLMathElement.idl
r267813 r285731 26 26 [ 27 27 Conditional=MATHML, 28 EnabledBySetting=MathMLEnabled, 28 29 Exposed=Window 29 30 ] interface MathMLMathElement : MathMLElement { -
trunk/Source/WebKit/ChangeLog
r285729 r285731 1 2021-11-12 Chris Dumez <cdumez@apple.com> 2 3 Disable MathML when in Captive Portal Mode 4 https://bugs.webkit.org/show_bug.cgi?id=233013 5 <rdar://84567129> 6 7 Reviewed by Brent Fulgham. 8 9 Turn off MathML support when in Captive Portal Mode. 10 11 * WebProcess/WebPage/WebPage.cpp: 12 (WebKit::WebPage::updatePreferences): 13 1 14 2021-11-12 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp
r285717 r285731 4075 4075 settings.setPeerConnectionEnabled(false); 4076 4076 #endif 4077 #if ENABLE(MATHML) 4078 settings.setMathMLEnabled(false); 4079 #endif 4077 4080 } 4078 4081 -
trunk/Tools/ChangeLog
r285720 r285731 1 2021-11-12 Chris Dumez <cdumez@apple.com> 2 3 Disable MathML when in Captive Portal Mode 4 https://bugs.webkit.org/show_bug.cgi?id=233013 5 <rdar://84567129> 6 7 Reviewed by Brent Fulgham. 8 9 Add API test coverage. 10 11 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm: 12 1 13 2021-11-12 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm
r285717 r285731 7671 7671 EXPECT_EQ(runJSCheck("!!navigator.mediaDevices"_s), shouldBeEnabled == ShouldBeEnabled::Yes); // GetUserMedia (Media Capture). 7672 7672 EXPECT_EQ(runJSCheck("!!navigator.getUserMedia"_s), false); // Legacy GetUserMedia (currently always disabled). 7673 EXPECT_EQ(runJSCheck("!!window.MathMLElement"_s), shouldBeEnabled == ShouldBeEnabled::Yes); // MathML. 7674 EXPECT_EQ(runJSCheck("!!window.MathMLMathElement"_s), shouldBeEnabled == ShouldBeEnabled::Yes); // MathML. 7675 String mathMLCheck = makeString("document.createElementNS('http://www.w3.org/1998/Math/MathML','mspace').__proto__ == ", shouldBeEnabled == ShouldBeEnabled::Yes ? "MathMLElement" : "Element", ".prototype"); 7676 EXPECT_EQ(runJSCheck(mathMLCheck), true); // MathML. 7673 7677 } 7674 7678
Note:
See TracChangeset
for help on using the changeset viewer.