Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 84bc127d4e4a6b2975f108cb4a962f36fd315341
      
https://github.com/WebKit/WebKit/commit/84bc127d4e4a6b2975f108cb4a962f36fd315341
  Author: Youenn Fablet <you...@apple.com>
  Date:   2025-03-04 (Tue, 04 Mar 2025)

  Changed paths:
    A 
LayoutTests/http/wpt/service-workers/redirect-flag-navigation-cache-worker.js
    A 
LayoutTests/http/wpt/service-workers/redirect-flag-navigation-cache.https-expected.txt
    A 
LayoutTests/http/wpt/service-workers/redirect-flag-navigation-cache.https.html
    A 
LayoutTests/http/wpt/service-workers/resources/cached-after-redirection.html
    A 
LayoutTests/http/wpt/service-workers/resources/cached-after-redirection.html.headers
    A 
LayoutTests/http/wpt/service-workers/resources/redirect-to-cached-after-redirection.py
    M Source/WebCore/workers/service/FetchEvent.cpp
    M 
Source/WebKit/NetworkProcess/ServiceWorker/ServiceWorkerNavigationPreloader.cpp

  Log Message:
  -----------
  "Response served by service worker has redirections" may appear with NVIDIA 
GeForce NOW
rdar://144571433
https://bugs.webkit.org/show_bug.cgi?id=289080

Reviewed by Brady Eidson.

When navigation preloader uses the disk cache, it may retrieve a response that 
was fetched via a redirection. Its isRedirected flag will be set to true.
Given navigation preloader retrieved this value from the cache without 
redirection, we need to set the flag to false.

Otherwise, later during loading, the navigation preload response would fail 
security checks.

* 
LayoutTests/http/wpt/service-workers/redirect-flag-navigation-cache-worker.js: 
Added.
(onfetch.e.e.respondWith.new.Promise):
* 
LayoutTests/http/wpt/service-workers/redirect-flag-navigation-cache.https-expected.txt:
 Added.
* 
LayoutTests/http/wpt/service-workers/redirect-flag-navigation-cache.https.html: 
Added.
* LayoutTests/http/wpt/service-workers/resources/cached-after-redirection.html: 
Added.
* 
LayoutTests/http/wpt/service-workers/resources/cached-after-redirection.html.headers:
 Added.
* 
LayoutTests/http/wpt/service-workers/resources/redirect-to-cached-after-redirection.py:
 Added.
(main):
* Source/WebCore/workers/service/FetchEvent.cpp:
(WebCore::FetchEvent::navigationPreloadIsReady):
* 
Source/WebKit/NetworkProcess/ServiceWorker/ServiceWorkerNavigationPreloader.cpp:
(WebKit::ServiceWorkerNavigationPreloader::didReceiveResponse):

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



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

Reply via email to