Closed Bug 1497557 Opened 6 years ago Closed 3 years ago

<a> "protocol" shows as "http:" for data-relative paths, instead of ":"

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox64 --- wontfix
firefox88 --- fixed

People

(Reporter: loganfsmyth, Assigned: valentin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

If you load a data: URL on Firefox with a link on it, the `protocol` of the <a> is supposed to be ":" (because it's an unparseable URL), but Firefox appears to returning "http:" or "https:" for the protocol.

For example, if you load this and look at the console:

    data:text/html,<script>console.log(document.createElement('a').protocol); </script>

this will log "http:".
Priority: -- → P2
Blocks: url

I think the source of the "http" result is here

Thank for the pointer. I think it's an easy enough fix.

Assignee: nobody → valentin.gosu
Severity: normal → S3
Whiteboard: [necko-triaged]
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/af234fcd4e15
<a> "protocol" should be ":" for data-relative paths, instead of "http:" r=baku
Flags: needinfo?(valentin.gosu)
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/f529f4e42e7e
<a> "protocol" should be ":" for data-relative paths, instead of "http:" r=baku
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: