Ticket #8443 (reopened bug)

Opened 10 months ago

Last modified 4 weeks ago

Dialog: "unspecified error" when using ie9 and iframe

Reported by: mr-x-123 Owned by: mr-x-123
Priority: minor Milestone: none
Component: ui.dialog Version: 1.8.21
Keywords: Cc:
Blocking: Blocked by:

Description

hi folks, i'm sorry i'm in a hurry and writing a bad ticket. in fact i considered not writing a ticket at all, but it maybe it will help. to my humble knowledge the effects module is USELESS as-is in ie9 with a iframed page.

problem is: ie9.0.8112.16421 64bit (not ie8, not ie7, not ff, not chromium) gives "unspecified error" when calling

active = document.activeElement;

in line 4716 or so. this is most likely a ie9 bug.

you can read more at  http://stackoverflow.com/questions/7904417/jquery-ui-creates-unspecified-error-when-loading-iframe-in-ie9 or just google. you will find if you are interested.

i "fixed" it by writing

try {
active = document.activeElement;
} catch( e ) {
active = document.body;
}

around this and the other occourence of document.activeElement;

please excuse if i can't provide additional information

Change History

comment:1 Changed 10 months ago by scott.gonzalez

  • Owner set to mr-x-123
  • Status changed from new to pending

Please provide a reduced test case showing the problem. I just did a quick test with animated dialogs and it worked fine.

comment:2 Changed 10 months ago by trac-o-bot

  • Status changed from pending to closed
  • Resolution set to invalid

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

comment:3 Changed 4 months ago by muzzamo

I believe this is an issue in jquery core.

I have created ticket 13378 ( http://bugs.jquery.com/ticket/13378) to track it there.

comment:4 Changed 4 weeks ago by tj.vantoll

#9254 is a duplicate of this ticket.

comment:5 Changed 4 weeks ago by tj.vantoll

  • Status changed from closed to reopened
  • Resolution notabug deleted
  • Summary changed from "unspecified error" when using ie9 and IFRAME to Dialog: "unspecified error" when using ie9 and iframe
  • Component changed from ui.effects.core to ui.dialog
  • Milestone changed from 1.9.0 to none

The error occurs on this line in open:

this.opener = $( this.document[0].activeElement );

Per the discussion in the core ticket the error occurs on access to activeElement, therefore I believe our only recourse here it to wrap that line with a try/catch.

I verified that this problem does not occur in IE10.

Note: See TracTickets for help on using tickets.