fix invalid owner

This commit is contained in:
SHIMODA Hiroshi 2010-12-20 20:58:59 +09:00
parent 3bbe37ddfa
commit a60a734a04

View File

@ -1691,7 +1691,7 @@ var TreeStyleTabService = {
document.documentElement.dispatchEvent(event); document.documentElement.dispatchEvent(event);
// for backward compatibility // for backward compatibility
event = aTabBrowser.ownerDocument.createEvent('Events'); event = document.createEvent('Events');
event.initEvent(this.kEVENT_TYPE_PRINT_PREVIEW_ENTERED.replace(/^nsDOM/, ''), true, false); event.initEvent(this.kEVENT_TYPE_PRINT_PREVIEW_ENTERED.replace(/^nsDOM/, ''), true, false);
document.documentElement.dispatchEvent(event); document.documentElement.dispatchEvent(event);
}, },
@ -1703,7 +1703,7 @@ var TreeStyleTabService = {
document.documentElement.dispatchEvent(event); document.documentElement.dispatchEvent(event);
// for backward compatibility // for backward compatibility
event = aTabBrowser.ownerDocument.createEvent('Events'); event = document.createEvent('Events');
event.initEvent(this.kEVENT_TYPE_PRINT_PREVIEW_EXITED.replace(/^nsDOM/, ''), true, false); event.initEvent(this.kEVENT_TYPE_PRINT_PREVIEW_EXITED.replace(/^nsDOM/, ''), true, false);
document.documentElement.dispatchEvent(event); document.documentElement.dispatchEvent(event);
}, },