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 24138 - Shouldn't it throw a SyntaxError if resolving the URL fails?
Summary: Shouldn't it throw a SyntaxError if resolving the URL fails?
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-19 13:25 UTC by contributor
Modified: 2014-01-08 19:26 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2013-12-19 13:25:20 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html
Multipage: http://www.whatwg.org/C#the-history-interface
Complete: http://www.whatwg.org/c#the-history-interface
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Shouldn't it throw a SyntaxError if resolving the URL fails?

Posted from: 90.230.218.37 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.19 Safari/537.36 OPR/19.0.1326.9 (Edition Next)
Comment 1 Ian 'Hixie' Hickson 2014-01-03 21:37:10 UTC
The reason I made it throw a SecurityError is that it allows implementors more flexibility in deciding how to implement the checks here. If we are specific about which different exceptions are fired in which order, it becomes harder to get it right, easier to have bugs, and yet we don't gain much. Also, it's arguable a reasonable exception -- the security error is that the URL isn't in the same origin as the original URL, something which is trivially true if the URL isn't parsable. Does that make sense?
Comment 2 Simon Pieters 2014-01-07 13:48:52 UTC
Yeah, OK.
Comment 3 Ian 'Hixie' Hickson 2014-01-08 19:26:19 UTC
Marking WONTFIX per comment 2.