Index: media/blink/buffered_resource_loader.cc |
diff --git a/media/blink/buffered_resource_loader.cc b/media/blink/buffered_resource_loader.cc |
index 81b76d03edc3d124ec34b9bf9b747ee2a6fceb9a..8f276dee864a5ea680d9c04cc675c0be8e9c970f 100644 |
--- a/media/blink/buffered_resource_loader.cc |
+++ b/media/blink/buffered_resource_loader.cc |
@@ -363,6 +363,9 @@ void BufferedResourceLoader::didReceiveResponse( |
"Unknown") |
<< " " << response.httpStatusCode(); |
DCHECK(active_loader_.get()); |
+ response_original_url_ = response.wasFetchedViaServiceWorker() |
+ ? response.originalURLViaServiceWorker() |
+ : response.url(); |
// The loader may have been stopped and |start_cb| is destroyed. |
// In this case we shouldn't do anything. |