Navigating top frame from a data URL iframe throws a confusing exception |
||||
Issue descriptionRepro case: <html> <iframe src="data:text/html,<script>top.location='test.html'</script>"></iframe> </html> This results in the following exception: Uncaught DOMException: Failed to set the 'location' property on 'Window': 'test.html' is not a valid URL. at data:text/html,<script>top.location='test.html'</script>:1:21 'test.html' isn't an invalid URL, but the code uses it instead of completedURL to print the message: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/frame/Location.cpp?rcl=29f1aefe09e181a54a437ab6c2845db8d6463e9b&l=261
,
Apr 24 2017
DOM exceptions are accessible to pages, but I suppose it is OK to include the completed URL because the script can presumably know its own base URL.
,
Apr 25 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 7 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by creis@chromium.org
, Feb 23 2017Components: UI>Browser>Navigation