Rename GetASCIIOrigin and GetUTFOrigin to GetWHATWGOrigin
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox116 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
We currently have two different concepts of "origin" which we use in Gecko associated with a nsIPrincipal. One is the origin which is a unique internal string conceptually corresponding 1:1 with a nsIPrincipal's access rights, and the other is the asciiOrigin, which returns the origin string according to the WHATWG URL specificiation. This string is formatted differently, leaves out internal information like containers, and returns the string "null" for more types of URLs.
We should rename GetASCIIOrigin and GetUTFOrigin to make it more clear which origin they correspond to in new code, and to avoid folks using these origins when they want to be using nsIPrincipal::Origin and vice-versa.
| Assignee | ||
Comment 1•2 years ago
|
||
This should make uses of the type more clearly indicating where the
origin came from, and should help avoid potential confusion between this
origin and nsIPrincipal::origin in new code.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
| bugherder | ||
Description
•