Changeset 216139 in webkit


Ignore:
Timestamp:
May 3, 2017 1:51:01 PM (7 years ago)
Author:
Michael Catanzaro
Message:

YouTube user agent quirk breaks new YouTube
https://bugs.webkit.org/show_bug.cgi?id=171603

Reviewed by Carlos Garcia Campos.

Source/WebCore:

Our user agent quirk to make YouTube 360 work breaks the new YouTube UI, causing it to
attempt to use the obsolete custom elements v0 API. WebKit only supports the v1 API. We
have to remove this quirk.

Note this does not affect Safari as Apple ports don't use our user agent quirks.

  • platform/UserAgentQuirks.cpp:

(WebCore::urlRequiresChromeBrowser):

Tools:

Remove the YouTube quirk test.

  • TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:

(TestWebKitAPI::TEST):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r216138 r216139  
     12017-05-03  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        YouTube user agent quirk breaks new YouTube
     4        https://bugs.webkit.org/show_bug.cgi?id=171603
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Our user agent quirk to make YouTube 360 work breaks the new YouTube UI, causing it to
     9        attempt to use the obsolete custom elements v0 API. WebKit only supports the v1 API. We
     10        have to remove this quirk.
     11
     12        Note this does not affect Safari as Apple ports don't use our user agent quirks.
     13
     14        * platform/UserAgentQuirks.cpp:
     15        (WebCore::urlRequiresChromeBrowser):
     16
    1172017-05-03  Joseph Pecoraro  <pecoraro@apple.com>
    218
  • trunk/Source/WebCore/platform/UserAgentQuirks.cpp

    r210207 r216139  
    6565    // https://bugs.webkit.org/show_bug.cgi?id=147296
    6666    if (baseDomain == "typekit.net" || baseDomain == "typekit.com")
    67         return true;
    68 
    69     // Needed for YouTube 360 with WebKitGTK+ and WPE (requires ENABLE_MEDIA_SOURCE).
    70     if (baseDomain == "youtube.com")
    7167        return true;
    7268
  • trunk/Tools/ChangeLog

    r216135 r216139  
     12017-05-03  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        YouTube user agent quirk breaks new YouTube
     4        https://bugs.webkit.org/show_bug.cgi?id=171603
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Remove the YouTube quirk test.
     9
     10        * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
     11        (TestWebKitAPI::TEST):
     12
    1132017-05-03  Said Abou-Hallawa  <sabouhallawa@apple.com>
    214
  • trunk/Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp

    r210207 r216139  
    9090    assertUserAgentForURLHasChromeBrowserQuirk("http://typekit.com/");
    9191    assertUserAgentForURLHasChromeBrowserQuirk("http://typekit.net/");
    92     assertUserAgentForURLHasChromeBrowserQuirk("http://www.youtube.com/");
    9392    assertUserAgentForURLHasChromeBrowserQuirk("http://www.slack.com/");
    9493
Note: See TracChangeset for help on using the changeset viewer.