I have Firefox 3.0.4 with FireBug 1.2.1 and no other plugins
I saved the following to the file testf.htm:
---- snip ----
<IFRAME NAME="ReplayFrame" SRC="test.htm" FRAMEBORDER="5"></IFRAME>
<script>
setTimeout(function() {
var field = document.all.ReplayFrame.contentDocument.getElementById
("a");
field.focus();
var evt = document.createEvent("KeyEvents");
evt.initKeyEvent("keypress", true, true, null, false, false, false,
false, 9, 0);
field.dispatchEvent(evt);
}, 1000);
</script>
---- snip ----
And the following to the file test.htm:
---- snip ----
<input type="text" id="a">
---- snip ----
When I load testf.htm into firefox, I get the FireBug error
"Permission denied to get property XULElement.popupOpen". If I click
"Continue (F8)", firefox crashes. it also crashes if I Ctrl-R.
The error appears to have been raised from the dispatchEvent call
(this is also apparent when debugging the script in FireBug)
It also appears that the focus() call is critical for the crash.
This seems like either a FireFox bug or a FireBug bug...
can anyone advise?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---