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

Unified Diff: content/browser/service_worker/embedded_worker_instance.cc

Issue 1931153002: service worker: Bump update time even when the script was identical (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 months 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/embedded_worker_instance.cc
diff --git a/content/browser/service_worker/embedded_worker_instance.cc b/content/browser/service_worker/embedded_worker_instance.cc
index f30a79df3397307346cda55d84ea05c6de78fc76..69b222a37f9200be1c1f5ca8cf6e8a8a85943b1c 100644
--- a/content/browser/service_worker/embedded_worker_instance.cc
+++ b/content/browser/service_worker/embedded_worker_instance.cc
@@ -560,8 +560,9 @@ void EmbeddedWorkerInstance::OnScriptLoaded() {
duration, source, inflight_start_task_->start_situation());
}
- FOR_EACH_OBSERVER(Listener, listener_list_, OnScriptLoaded());
starting_phase_ = SCRIPT_LOADED;
+ FOR_EACH_OBSERVER(Listener, listener_list_, OnScriptLoaded());
+ // |this| may be destroyed by the callback.
}
void EmbeddedWorkerInstance::OnURLJobCreatedForMainScript() {
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698