This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26073 - Need to serialize a URL without username/password
Summary: Need to serialize a URL without username/password
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-12 10:26 UTC by Anne
Modified: 2015-06-15 14:51 UTC (History)
2 users (show)

See Also:


Attachments

Description Anne 2014-06-12 10:26:59 UTC
Potentially we only need to serialize without fragment for referrer. Then we could just have "referrer flag" of sorts.
Comment 1 Anne 2014-10-14 18:26:18 UTC
https://w3c.github.io/webappsec/specs/referrer-policy/#strip-url handles this for referrer. Any other use cases?
Comment 2 Anne 2015-06-15 14:51:56 UTC
Probably better to explicitly remove them before serializing. If you want to preserve them, copy the URL first.