Closed Bug 1154547 Opened 9 years ago Closed 9 years ago

Make a couple of small improvements to about:serviceworkers

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(2 files)

      No description provided.
Comment on attachment 8592570 [details] [diff] [review]
Part 1: Linkify the worker script URLs in about:serviceworkers

Review of attachment 8592570 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/content/aboutServiceWorkers.js
@@ +81,5 @@
>      item.appendChild(bold);
>  
> +    if (makeLink) {
> +      let link = document.createElement("a");
> +      link.href = value;

link.title = "this would be nice to have";
link._target too.
Attachment #8592570 - Flags: review?(amarchesini) → review+
Comment on attachment 8592571 [details] [diff] [review]
Part 2: Make it possible to update a service worker from about:serviceworkers

Review of attachment 8592571 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/content/aboutServiceWorkers.js
@@ +100,5 @@
>  
> +  var updateButton = document.createElement("button");
> +  updateButton.appendChild(document.createTextNode(bundle.GetStringFromName('update')));
> +  updateButton.onclick = function() {
> +    gSWM.update(info.scope);

would be super cool if update returns a promise so that we can show a loading icon and stop it when the operation is fully completed.
Attachment #8592571 - Flags: review?(amarchesini) → review+
https://hg.mozilla.org/mozilla-central/rev/693f73c613d0
https://hg.mozilla.org/mozilla-central/rev/21a2d0003caa
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Request for the future: if a word in English is unclear, you should add a localization comment.

Example: is "Update" a verb or a noun? In this case it's a button label, so a verb, but people don't have access to bugs and code, just to a text file saying "Update".
Depends on: 1155064
Yep, noted.  Thanks, flod!
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: