| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html i18n-values="dir:textdirection;"> | 2 <html i18n-values="dir:textdirection;"> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <title>ServiceWorker registrations</title> | 5 <title>ServiceWorker</title> |
| 6 <link rel="stylesheet" href="chrome://resources/css/tabs.css"> | 6 <link rel="stylesheet" href="chrome://resources/css/tabs.css"> |
| 7 <link rel="stylesheet" href="chrome://resources/css/widgets.css"> | 7 <link rel="stylesheet" href="chrome://resources/css/widgets.css"> |
| 8 <link rel="stylesheet" href="serviceworker_internals.css"> | 8 <link rel="stylesheet" href="serviceworker_internals.css"> |
| 9 </head> | 9 </head> |
| 10 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> | 10 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> |
| 11 <!-- templates --> | 11 <!-- templates --> |
| 12 <div style="display:none"> | 12 <div style="display:none"> |
| 13 <div id="serviceworker-version-template" class="serviceworker-version"> | 13 <div id="serviceworker-version-template" class="serviceworker-version"> |
| 14 <div class="serviceworker-status"> | 14 <div class="serviceworker-status"> |
| 15 <span>Installation Status:</span> | 15 <span>Installation Status:</span> |
| 16 <span jscontent="$this.status"></span> | 16 <span jscontent="$this.status"></span> |
| 17 </div> | 17 </div> |
| 18 <div class="serviceworker-running-status"> | 18 <div class="serviceworker-running-status"> |
| 19 <span>Running Status:</span> | 19 <span>Running Status:</span> |
| 20 <span jscontent="$this.running_status"></span> | 20 <span jscontent="$this.running_status"></span> |
| 21 </div> | 21 </div> |
| 22 <div class="serviceworker-vid"> | 22 <div class="serviceworker-vid"> |
| 23 <span>Version ID:</span> | 23 <span>Version ID:</span> |
| 24 <span jscontent="$this.version_id"></span> | 24 <span jscontent="$this.version_id"></span> |
| 25 </div> | 25 </div> |
| 26 <div class="serviceworker-pid"> | 26 <div class="serviceworker-pid"> |
| 27 <span>Renderer process ID:</span> | 27 <span>Renderer process ID:</span> |
| 28 <span jscontent="$this.process_id"></span> | 28 <span jscontent="$this.process_id"></span> |
| 29 </div> | 29 </div> |
| 30 <div class="serviceworker-tid"> | 30 <div class="serviceworker-tid"> |
| 31 <span>Renderer thread ID:</span> | 31 <span>Renderer thread ID:</span> |
| 32 <span jscontent="$this.thread_id"></span> | 32 <span jscontent="$this.thread_id"></span> |
| 33 </div> | 33 </div> |
| 34 <div class="serviceworker-rid"> |
| 35 <span>DevTools agent route ID:</span> |
| 36 <span jscontent="$this.devtools_agent_route_id"></span> |
| 37 </div> |
| 34 <div> | 38 <div> |
| 35 <div>Log:</div> | 39 <div>Log:</div> |
| 36 <textarea class="serviceworker-log" | 40 <textarea class="serviceworker-log" |
| 37 jsvalues=".partition_id:$partition_id;.version_id:$this.versio
n_id" | 41 jsvalues=".partition_id:$partition_id;.version_id:$this.versio
n_id" |
| 38 rows="10" cols="120" readonly jscontent="$this.log"></textarea
> | 42 rows="3" cols="120" readonly jscontent="$this.log"></textarea> |
| 43 </div> |
| 44 <div class="worker-controls"> |
| 45 <button href="#" class="stop" jsdisplay="$this.running_status ==
'RUNNING'" |
| 46 jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:ver
sion_id}">Stop</button> |
| 47 <button href="#" class="sync" jsdisplay="$this.running_status ==
'RUNNING'" |
| 48 jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:ver
sion_id}">Sync</button> |
| 49 <button href="#" class="inspect" jsdisplay="$this.running_status
== 'RUNNING'" |
| 50 jsvalues=".cmdArgs:{process_id:process_id,devtools_agent_rout
e_id:devtools_agent_route_id}">Inspect</button> |
| 51 <span class="operation-status" style="display: none">Running...<
/span> |
| 52 </div> |
| 53 </div> |
| 54 <div id="serviceworker-registration-template" class="serviceworker-regis
tration"> |
| 55 <div class="serviceworker-scope"> |
| 56 <span>Scope:</span> |
| 57 <span jscontent="scope"></span> |
| 58 </div> |
| 59 <div class="serviceworker-script_url"> |
| 60 <span>Script:</span> |
| 61 <span jscontent="script_url"></span> |
| 62 </div> |
| 63 <div class="serviceworker-rid"> |
| 64 <span>Registration ID:</span> |
| 65 <span jscontent="registration_id"></span> |
| 66 <span jsdisplay="$this.unregistered">(unregistered)</span> |
| 67 </div> |
| 68 <div jsselect="$this.active"> |
| 69 Active worker: |
| 70 <div transclude="serviceworker-version-template"></div> |
| 71 </div> |
| 72 <div jsselect="$this.pending"> |
| 73 Pending worker: |
| 74 <div transclude="serviceworker-version-template"></div> |
| 75 </div> |
| 76 <div class="registration-controls" jsdisplay="!$this.unregistered"> |
| 77 <button href="#" class="unregister" |
| 78 jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}">
Unregister</button> |
| 79 <button href="#" class="start" jsdisplay="$this.active.running_s
tatus != 'RUNNING'" |
| 80 jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}">
Start</button> |
| 81 <span class="operation-status" style="display: none">Running...<
/span> |
| 39 </div> | 82 </div> |
| 40 </div> | 83 </div> |
| 41 <div id="serviceworker-list-template" | 84 <div id="serviceworker-list-template" |
| 42 jsvalues="$partition_id:$this.partition_id;$partition_path:$this.pa
rtition_path;.partition_path:$this.partition_path"> | 85 jsvalues="$partition_id:$this.partition_id;$partition_path:$this.pa
rtition_path;.partition_path:$this.partition_path"> |
| 43 <div class="serviceworker-summary"> | 86 <div class="serviceworker-summary"> |
| 44 <span>Instances in: </span> | 87 <span>Registrations in: </span> |
| 45 <span jscontent="$this.partition_path"></span> | 88 <span jscontent="$this.partition_path"></span> |
| 46 <span jscontent="'(' + $this.registrations.length + ')'"></span> | 89 <span jscontent="'(' + $this.stored_registrations.length + ')'">
</span> |
| 47 </div> | 90 </div> |
| 48 <div class="serviceworker-item" jsselect="$this.registrations"> | 91 <div class="serviceworker-item" jsselect="$this.stored_registrations
"> |
| 49 <div class="serviceworker-scope"> | 92 <div transclude="serviceworker-registration-template"></div> |
| 50 <span>Scope:</span> | 93 </div> |
| 51 <span jscontent="scope"></span> | 94 <div class="serviceworker-item" jsselect="$this.unregistered_registr
ations"> |
| 52 </div> | 95 <div transclude="serviceworker-registration-template"></div> |
| 53 <div class="serviceworker-script_url"> | 96 </div> |
| 54 <span>Script:</span> | 97 <div class="serviceworker-item" jsselect="$this.unregistered_version
s"> |
| 55 <span jscontent="script_url"></span> | 98 Unregistered worker: |
| 56 </div> | 99 <div transclude="serviceworker-version-template"></div> |
| 57 <div jsselect="$this.active"> | |
| 58 Active worker: | |
| 59 <div transclude="serviceworker-version-template"></div> | |
| 60 </div> | |
| 61 <div jsselect="$this.pending"> | |
| 62 Pending worker: | |
| 63 <div transclude="serviceworker-version-template"></div> | |
| 64 </div> | |
| 65 <div class="controls"> | |
| 66 <button class="stop" jsdisplay="$this.active.running_status
== 'RUNNING'" | |
| 67 jsvalues=".scope:scope;.partition_path:$partition_path">S
top</button> | |
| 68 <button href="#" class="start" jsdisplay="$this.active.runni
ng_status != 'RUNNING'" | |
| 69 jsvalues=".scope:scope;.partition_path:$partition_path">S
tart</button> | |
| 70 <button href="#" class="unregister" | |
| 71 jsvalues=".scope:scope;.partition_path:$partition_path">U
nregister</button> | |
| 72 <button href="#" class="sync" jsdisplay="$this.active.runnin
g_status == 'RUNNING'" | |
| 73 jsvalues=".scope:scope;.partition_path:$partition_path">S
ync</button> | |
| 74 <button href="#" class="inspect" jsdisplay="$this.active.run
ning_status == 'RUNNING'" | |
| 75 jsvalues=".scope:scope;.partition_path:$partition_path">I
nspect</button> | |
| 76 <span class="operation-status" style="display: none">Running
...</span> | |
| 77 </div> | |
| 78 </div> | 100 </div> |
| 79 </div> | 101 </div> |
| 80 </div> | 102 </div> |
| 81 <h1>ServiceWorker registrations</h1> | 103 <h1>ServiceWorker registrations</h1> |
| 82 <div class="content"> | 104 <div class="content"> |
| 83 <div id="serviceworker-list"></div> | 105 <div id="serviceworker-list"></div> |
| 84 </div> | 106 </div> |
| 85 <script src="chrome://resources/js/util.js"></script> | 107 <script src="chrome://resources/js/util.js"></script> |
| 86 <script src="chrome://resources/js/cr.js"></script> | 108 <script src="chrome://resources/js/cr.js"></script> |
| 87 <script src="serviceworker_internals.js"></script> | 109 <script src="serviceworker_internals.js"></script> |
| 88 <script src="chrome://resources/js/load_time_data.js"></script> | 110 <script src="chrome://resources/js/load_time_data.js"></script> |
| 89 <script src="chrome://resources/js/jstemplate_compiled.js"></script> | 111 <script src="chrome://resources/js/jstemplate_compiled.js"></script> |
| 90 <script src="strings.js"></script> | 112 <script src="strings.js"></script> |
| 91 <script src="chrome://resources/js/i18n_template2.js"></script> | 113 <script src="chrome://resources/js/i18n_template2.js"></script> |
| 92 </body> | 114 </body> |
| 93 </html> | 115 </html> |
| OLD | NEW |