New issue
Advanced search Search tips

Issue 695583 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Navigating top frame from a data URL iframe throws a confusing exception

Project Member Reported by mea...@chromium.org, Feb 23 2017

Issue description

Repro 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
 

Comment 1 by creis@chromium.org, Feb 23 2017

Cc: creis@chromium.org japhet@chromium.org alex...@chromium.org
Components: UI>Browser>Navigation
Labels: Hotlist-GoodFirstBug
Status: Available (was: Untriaged)
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.
Project Member

Comment 3 by sheriffbot@chromium.org, Apr 25 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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

Comment 4 by tkent@chromium.org, May 7 2018

Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)

Sign in to add a comment