Closed Bug 1142768 Opened 10 years ago Closed 9 years ago

Service Worker client.url should use "creation url"

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: catalinb, Assigned: ehsan.akhgari)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Hey Catalin, would you mentor here please? Thanks!
Flags: needinfo?(catalin.badea392)
I'd wait for the w3c bug to be finished before moving forward with this. It doesn't look like this issue got too much attention lately. https://www.w3.org/Bugs/Public/show_bug.cgi?id=27146
Flags: needinfo?(catalin.badea392)
Assignee: nobody → ehsan
Comment on attachment 8705311 [details] [diff] [review] Return the original document URI from ServiceWorkerClient.url Review of attachment 8705311 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks! ::: dom/workers/ServiceWorkerClient.cpp @@ +49,5 @@ > + nsCOMPtr<nsIURI> originalURI = aDoc->GetOriginalURI(); > + if (originalURI) { > + nsAutoCString spec; > + originalURI->GetSpec(spec); > + mUrl.Assign(NS_ConvertUTF8toUTF16(spec)); Can you just use CopyUTF8toUTF16() here? ::: testing/web-platform/mozilla/tests/service-workers/service-worker/resources/clients-matchall-client-types-iframe.html @@ +1,3 @@ > <!DOCTYPE html> > <title>Empty doc</title> > +<body onload="history.pushState({}, 'title', 'new-url.html')"> Maybe add a comment here to indicate what this is for. Out of context of this bug I know it would confuse me.
Attachment #8705311 - Flags: review?(bkelly) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
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: