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

Unified Diff: chrome/browser/resources/inspect/inspect.js

Issue 304543002: Show the unregistered workers in chrome://serviceworker-internals and chrome://inspect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass live_registrations to chrome://inspect. Created 6 years, 7 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
Index: chrome/browser/resources/inspect/inspect.js
diff --git a/chrome/browser/resources/inspect/inspect.js b/chrome/browser/resources/inspect/inspect.js
index cafb82667c4fa0ea0a2b439c6c030c7589ca8fae..ac2545388571d45308a0a9ee908a45c5648dfeec 100644
--- a/chrome/browser/resources/inspect/inspect.js
+++ b/chrome/browser/resources/inspect/inspect.js
@@ -29,11 +29,10 @@ function sendTargetCommand(command, target) {
sendCommand(command, target.source, target.id);
}
-function sendServiceWorkerCommand(action, partition_path, scope) {
+function sendServiceWorkerCommand(action, worker) {
$('serviceworker-internals').contentWindow.postMessage({
'action': action,
- 'partition_path': partition_path,
- 'scope': scope
+ 'worker': worker
},'chrome://serviceworker-internals');
}
@@ -127,18 +126,12 @@ function populateServiceWorkers(partition_id, workers) {
addActionLink(
row,
'inspect',
- sendServiceWorkerCommand.bind(null,
- 'inspect',
- worker.partition_path,
- worker.scope),
+ sendServiceWorkerCommand.bind(null, 'inspect', worker),
false);
addActionLink(
row,
'terminate',
- sendServiceWorkerCommand.bind(null,
- 'stop',
- worker.partition_path,
- worker.scope),
+ sendServiceWorkerCommand.bind(null, 'stop', worker),
false);
}
}

Powered by Google App Engine
This is Rietveld 408576698