Do not access gBrowser before DOM load (of chrome).

Fixes #444
This commit is contained in:
Anthony Lieuallen 2011-01-17 04:36:39 +00:00
parent 0430736ce2
commit 38c0e33c50
2 changed files with 8 additions and 10 deletions

View file

@ -1,13 +1,16 @@
<?xml version='1.0'?>
<!DOCTYPE overlay SYSTEM "chrome://resurrect/locale/overlay.dtd">
<?xml-stylesheet href='chrome://resurrect/skin/resurrect-overlay.css' type='text/css'?>
<?xml-stylesheet href='chrome://resurrect/skin/resurrect-overlay.css' type='text/css'?>
<overlay id='resurrect-overlay' xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'>
<script type='application/x-javascript' src='chrome://resurrect/content/resurrect.js'></script>
<script type='application/x-javascript' src='chrome://resurrect/content/resurrect.js'></script>
<script type='application/x-javascript'>
window.addEventListener('load', resurrect.onLoad, false);
</script>
<toolbarpalette id='BrowserToolbarPalette'>
<toolbarbutton id='resurrect-page-tb'
type=""
<toolbarbutton id='resurrect-page-tb'
type=""
class="toolbarbutton-1"
oncommand="resurrect.page();"
label='&resurrect.thispage;'

View file

@ -260,9 +260,4 @@ var resurrect={
}
}
}
}//end var resurrect
if ('undefined'!=typeof gBrowser) {
window.addEventListener('load', resurrect.onLoad, false);
}
};