Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 860bc853994fc6eb184999bf615527cd9598323a
      
https://github.com/WebKit/WebKit/commit/860bc853994fc6eb184999bf615527cd9598323a
  Author: Jer Noble <[email protected]>
  Date:   2025-05-12 (Mon, 12 May 2025)

  Changed paths:
    M Source/WebCore/loader/MediaResourceLoader.cpp
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h
    M Source/WebCore/page/QuirksData.h

  Log Message:
  -----------
  bing.com: Voice search narration fails with network error
rdar://143791736
https://bugs.webkit.org/show_bug.cgi?id=292803

Reviewed by Eric Carlson.

Add a quirk to re-write media requests to remove the Range: header. For 
bing.com,
the voice search speech search result fails because the first Range: request 
succeeds,
but each subsequent request for the same resource fails with a 204 error. If we 
re-write
the request to omit the Range: header, the site will serve the entire resourse, 
and
WebKit will "pretend" that the Range succeeded by caching the result.

* Source/WebCore/loader/MediaResourceLoader.cpp:
(WebCore::MediaResourceLoader::requestResource):
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::shouldRewriteMediaRangeRequestForURL const):
(WebCore::handleBingQuirks):
* Source/WebCore/page/Quirks.h:
* Source/WebCore/page/QuirksData.h:

Canonical link: https://commits.webkit.org/294790@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to