Skip to content

Commit

Permalink
Remove Quirk shouldAutoplayWebAudioForArbitraryUserGesture for bing.com
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=260134
rdar://107430929

Reviewed by Jer Noble.

This quirk is not necessary anymore for bing.com.
The bing voice search is now working while the Site Specific Hacks is
disabled. Removing the quirk which was added with
https://bugs.webkit.org/show_bug.cgi?id=213118

* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::shouldAutoplayWebAudioForArbitraryUserGesture const):

Canonical link: https://commits.webkit.org/266928@main
  • Loading branch information
karlcow committed Aug 15, 2023
1 parent 7cada16 commit 56861d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/WebCore/page/Quirks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,14 @@ bool Quirks::needsPerDocumentAutoplayBehavior() const
#endif
}

// bing.com https://bugs.webkit.org/show_bug.cgi?id=213118
// zoom.com https://bugs.webkit.org/show_bug.cgi?id=223180
bool Quirks::shouldAutoplayWebAudioForArbitraryUserGesture() const
{
if (!needsQuirks())
return false;

auto host = m_document->topDocument().url().host();
return equalLettersIgnoringASCIICase(host, "www.bing.com"_s) || host.endsWithIgnoringASCIICase(".zoom.us"_s);
return host.endsWithIgnoringASCIICase(".zoom.us"_s);
}

// hulu.com starz.com https://bugs.webkit.org/show_bug.cgi?id=190051
Expand Down

0 comments on commit 56861d2

Please sign in to comment.