Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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

#168

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"

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

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Steven Parkes
    Steven Parkes

    Yeah, I came up with, I think, one of these in Johnson.

    May 5th, 2010 @ 12:13 PM

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.