iFrame in Firefox hidden window with a contentWindow.history?

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-04-01T22:18:06Z Indexed on 2010/04/01 22:23 UTC
Read the original article Hit count: 438

I'm trying to run a hosted script with content privileges in my Firefox extension. To do this, I create a content iframe in the hidden window pointed at a html file that pulls the script. This script requires the 'history' be available, but the iframes created in the hidden window have no history for some reason.

Chromebug reports this for the iframe's contentWindow.history:

object does not support history (nsIDOMHistory)

And the script gives this error when its not available:

Error: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHistory.length]

Any ideas?

© Stack Overflow or respective owner

Related posts about firefox-extension

Related posts about firefox-addon