#168 new
gleneivey

file load from iframe src="" attribute has wrong default path

Reported by gleneivey | May 5th, 2010 @ 08:37 AM

It seems that the base path used to resolve relative file names in is that of the top-level window object even in the case where one iframe is nested in another that has a different path from the top-level window.

This is illustrated in the "scope" test currently in the "frame-scope" branch of thatcher/env-js on GitHub. On my system, this results in:

 [java] [FAIL](29){scope|Basic iframe behaviors} iframe reloads on .src=: iframe doc's .parentWindow points to iframe's .contentWindow, expected: [Window] result: undefined
 [java] failed to open file  file:/home/gei/Repos/Mainlines/env-js/specs/scope/iframe2.html JavaException: java.io.FileNotFoundException: /home/gei/Repos/Mainlines/env-js/specs/scope/iframe2.html (No such file or directory) 
 [java] [PASS](30){scope|Iframe nesting} top-level IFRAME loaded from correct source

where the correct path is really "..../env-js/specs/fixtures/scope/iframe2.html"

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket

Tags

Referenced by

Pages