New issue
Advanced search Search tips

Issue 63591 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 40787
Owner: ----
Closed: Nov 2010
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Restricted
  • Only users with Commit permission may comment.



Sign in to add a comment

Cannot call JavaScript functions on other frames when both frames are local files

Reported by jongjeng...@gmail.com, Nov 18 2010

Issue description

Chrome Version       : 9.0.570.1 beta
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5: OK
  Firefox 3.x: OK
       IE 7/8: OK

What steps will reproduce the problem?
1. Download a.html and b.html
1. Open a.html locally
2. Click the link

What is the expected result?
An alert saying "hi"

What happens instead?
JavaScript error: Unsafe JavaScript attempt to access frame with URL file:///path/to/a.html from frame with URL file:///path/to/b.html. Domains, protocols and ports must match.
 
b.html
153 bytes View Download
a.html
209 bytes View Download
Full version string:
Google Chrome	9.0.570.1 (Official Build 64589) beta
WebKit	534.11
V8	2.5.2
User Agent	Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.11 (KHTML, like Gecko) Chrome/9.0.570.1 Safari/534.11

Comment 2 by temp01...@gmail.com, Nov 19 2010

Mergedinto: 40787
Status: Duplicate
This is intentional - for security reasons. See  bug 4197  and  bug 40787  for reasoning. You can use the --allow-file-access-from-files flag to disable this protection.

In future, this restriction might loosen up a bit - see  bug 47416 .
Project Member

Comment 3 by bugdroid1@chromium.org, Oct 12 2012

Labels: Restrict-AddIssueComment-Commit
Mergedinto: chromium:40787
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Project Member

Comment 4 by bugdroid1@chromium.org, Mar 11 2013

Labels: -Area-Undefined

Sign in to add a comment