Bug Tracker

Opened 10 years ago

Closed 10 years ago

#14166 closed bug (patchwelcome)

Accessing a Window's Height in IE 8 Breaks, Sometimes

Reported by: vestigal Owned by: vestigal
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description

If too many iframes are nested, and one of the inner ones loads a PDF file and then tries to access the window's height, IE throws an error.

I noticed this on IE 10 in IE8 standards mode.

I've created a test case and posted it on jsFiddle, but unfortunately the test requires three files, and therefore one will need to download the files and save them to reproduce the issue.

To reproduce the bug, please follow the below steps.

  1. Open IEPdfFrameHeightBug.html in IE. Make sure that IE is set to IE8 standards mode.
  2. Select the iframe that is in the document and press 'enter'.
  3. The console should print "getting," and then the error, which is this:

SCRIPT16386: No such interface supported

jquery.min.js, line 6 character 28398

The closest bug that I could find to this was bug #3405, but I think that this bug is different enough to merit looking into.

Change History (6)

comment:1 Changed 10 years ago by dmethvin

Owner: set to vestigal
Status: newpending

This could be almost impossible to narrow down. Can you create a test case with the uncompressed version of jQuery? At least the line number will be useful that way.

comment:2 Changed 10 years ago by vestigal

Status: pendingnew

Sure. Is there a way to attach files, or an archive, to this bug? Since there are several files involved, I don't think that using jsFiddle works very well.

comment:3 Changed 10 years ago by dmethvin

Status: newpending

You should be able to use http://jsfiddle.net/vestigal/wUfgt/show as the URL in the iframe with no problems, that just has the page with no jsFiddle windows.

comment:4 Changed 10 years ago by vestigal

Status: pendingnew

I've created a new, simplified test case at http://jsfiddle.net/vestigal/7WL7M/7/show/ that demonstrates the issue.

At the moment, the error appears to be in jquery-git.js on line 9767.

Thanks for looking at this. Please let me know if you need anything else.

comment:5 Changed 10 years ago by vestigal

On a side note, it looks like the bug tracker keeps changing the status of this case to "new" whenever I make a modification, which is odd.

comment:6 Changed 10 years ago by dmethvin

Resolution: patchwelcome
Status: newclosed

It is normal for the tracker to change the state from pending to new when you reply.

This is just too much of an edge case to investigate. Most likely, the window is not fully ready. A PDF requires a plugin and the plugin itself may be causing the issue.

Note: See TracTickets for help on using tickets.