Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp

Issue 2526343003: Introduce new security restrictions in FetchEvent.respondWith(). (Closed)
Patch Set: incorporated falken's comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp
index b0ade794d0796ee4f748d083735e13c61ea506f6..2fcc3e04c3aa8b7357eca90facfef93793090ef2 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp
@@ -15,13 +15,14 @@ ForeignFetchRespondWithObserver* ForeignFetchRespondWithObserver::create(
int eventID,
const KURL& requestURL,
WebURLRequest::FetchRequestMode requestMode,
+ WebURLRequest::FetchRedirectMode redirectMode,
WebURLRequest::FrameType frameType,
WebURLRequest::RequestContext requestContext,
PassRefPtr<SecurityOrigin> requestOrigin,
WaitUntilObserver* observer) {
return new ForeignFetchRespondWithObserver(
- context, eventID, requestURL, requestMode, frameType, requestContext,
- std::move(requestOrigin), observer);
+ context, eventID, requestURL, requestMode, redirectMode, frameType,
+ requestContext, std::move(requestOrigin), observer);
}
void ForeignFetchRespondWithObserver::responseWasFulfilled(
@@ -95,6 +96,7 @@ ForeignFetchRespondWithObserver::ForeignFetchRespondWithObserver(
int eventID,
const KURL& requestURL,
WebURLRequest::FetchRequestMode requestMode,
+ WebURLRequest::FetchRedirectMode redirectMode,
WebURLRequest::FrameType frameType,
WebURLRequest::RequestContext requestContext,
PassRefPtr<SecurityOrigin> requestOrigin,
@@ -103,6 +105,7 @@ ForeignFetchRespondWithObserver::ForeignFetchRespondWithObserver(
eventID,
requestURL,
requestMode,
+ redirectMode,
frameType,
requestContext,
observer),

Powered by Google App Engine
This is Rietveld 408576698