Closed Bug 1543321 Opened 6 months ago Closed 6 months ago

Implement nsContentUtils::GetThreadSafeUTFOrigin

Categories

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

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

Attachments

(2 files)

This would be a thread-safe static method to retrieve the origin from a URL.
It would be built on top of NS_NewURIOnAnyThread and it would return NS_ERROR_UNKNOWN_PROTOCOL in case the operation can not be completed on the current thread.

Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1cd48cfaec56
Implement nsContentUtils::GetThreadSafeUTFOrigin, r=valentin
https://hg.mozilla.org/integration/autoland/rev/1d58cd8e6457
Use nsContentUtils::GetThreadSafeUTFOrigin in the URL API, r=smaug
Depends on: 1540514
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.