Changeset 266584 in webkit
- Timestamp:
- Sep 4, 2020, 4:14:48 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/UserAgentQuirks.cpp (modified) (2 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/TestWebKitAPI/PlatformGTK.cmake (modified) (1 diff)
-
Tools/TestWebKitAPI/PlatformWPE.cmake (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r266578 r266584 1 2020-09-04 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GLIB] Stop using firefox user agent quirk for google docs 4 https://bugs.webkit.org/show_bug.cgi?id=215845 5 6 Reviewed by Adrian Perez de Castro. 7 8 It causes problems with the CSP headers when accounts.youtube.com is used by google login and it no longer works 9 for google docs in any case. 10 11 * platform/UserAgentQuirks.cpp: 12 (WebCore::isGoogle): 13 (WebCore::urlRequiresFirefoxBrowser): 14 1 15 2020-09-03 Ryosuke Niwa <rniwa@webkit.org> 2 16 -
trunk/Source/WebCore/platform/UserAgentQuirks.cpp
r264676 r266584 39 39 { 40 40 String domain = url.host().toString(); 41 42 // Google uses accounts.youtube.com for its login service. 43 if (domain == "accounts.youtube.com") 44 return true; 45 41 46 String baseDomain = topPrivatelyControlledDomain(domain); 42 47 … … 93 98 { 94 99 String domain = url.host().toString(); 95 96 // This quirk actually has nothing to do with YouTube. It's needed to avoid97 // unsupported browser warnings on Google Docs. After removing this quirk,98 // to reproduce the warnings you will need to sign out of Google, then click99 // on a link to a non-public document that requires signing in. The100 // unsupported browser warning will be displayed after signing in.101 if (domain == "accounts.youtube.com" || domain == "docs.google.com")102 return true;103 100 104 101 // Google Drive shows an unsupported browser warning with WebKitGTK's -
trunk/Tools/ChangeLog
r266580 r266584 1 2020-09-04 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GLIB] Stop using firefox user agent quirk for google docs 4 https://bugs.webkit.org/show_bug.cgi?id=215845 5 6 Reviewed by Adrian Perez de Castro. 7 8 Update API tests. Bring back UserAgentQuirks.cpp to the build that was removed in r244857. 9 10 * TestWebKitAPI/PlatformGTK.cmake: 11 * TestWebKitAPI/PlatformWPE.cmake: 12 * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: 13 (TestWebKitAPI::TEST): 14 1 15 2020-09-03 James Darpinian <jdarpinian@chromium.org> 2 16 -
trunk/Tools/TestWebKitAPI/PlatformGTK.cmake
r260419 r266584 33 33 ${test_main_SOURCES} 34 34 35 Tests/WebCore/UserAgentQuirks.cpp 35 36 Tests/WebCore/gstreamer/GStreamerTest.cpp 36 37 Tests/WebCore/gstreamer/GstMappedBuffer.cpp -
trunk/Tools/TestWebKitAPI/PlatformWPE.cmake
r260419 r266584 29 29 ${test_main_SOURCES} 30 30 31 Tests/WebCore/UserAgentQuirks.cpp 31 32 Tests/WebCore/gstreamer/GStreamerTest.cpp 32 33 Tests/WebCore/gstreamer/GstMappedBuffer.cpp -
trunk/Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp
r261466 r266584 96 96 assertUserAgentForURLHasChromeBrowserQuirk("http://bankofamerica.com/"); 97 97 98 assertUserAgentForURLHasFirefoxBrowserQuirk("http://accounts.youtube.com/");99 assertUserAgentForURLHasFirefoxBrowserQuirk("http://docs.google.com/");100 98 assertUserAgentForURLHasFirefoxBrowserQuirk("http://drive.google.com/"); 101 99 assertUserAgentForURLHasFirefoxBrowserQuirk("http://bugzilla.redhat.com/"); … … 107 105 assertUserAgentForURLHasLinuxPlatformQuirk("http://drive.google.com/"); 108 106 assertUserAgentForURLHasLinuxPlatformQuirk("http://fonts.googleapis.com/"); 107 assertUserAgentForURLHasLinuxPlatformQuirk("http://accounts.youtube.com/"); 108 assertUserAgentForURLHasLinuxPlatformQuirk("http://docs.google.com/"); 109 109 110 110 assertUserAgentForURLHasMacPlatformQuirk("http://www.yahoo.com/"); … … 114 114 assertUserAgentForURLHasMacPlatformQuirk("http://web.whatsapp.com/"); 115 115 assertUserAgentForURLHasMacPlatformQuirk("http://www.chase.com/"); 116 assertUserAgentForURLHasMacPlatformQuirk("http://drive.google.com/");117 116 assertUserAgentForURLHasMacPlatformQuirk("http://paypal.com/"); 118 117 assertUserAgentForURLHasMacPlatformQuirk("http://outlook.live.com/");
Note:
See TracChangeset
for help on using the changeset viewer.