* Fix event hooking in a tab that loaded in background.
Cette révision appartient à :
Parent
2f312a9259
révision
741bc384b7
2 fichiers modifiés avec 6 ajouts et 6 suppressions
|
@ -38,17 +38,17 @@ var resurrect={
|
|||
.setAttribute('hidden', !gContextMenu.onLink);
|
||||
},
|
||||
|
||||
attachClickEvent:function() {
|
||||
attachClickEvent:function(event) {
|
||||
resurrect.disabled=false;
|
||||
|
||||
var contentWin=getBrowser().contentWindow;
|
||||
if (contentWin.document.documentURI.match(/^about:neterror/)) {
|
||||
contentWin.document.getElementById('mirror').addEventListener(
|
||||
var contentDoc=event.target;
|
||||
if (contentDoc.documentURI.match(/^about:neterror/)) {
|
||||
contentDoc.getElementById('mirror').addEventListener(
|
||||
'click', resurrect.selectMirror, false
|
||||
);
|
||||
try {
|
||||
// because this button isn't always there
|
||||
contentWin.document.getElementById('mirrorSelect').addEventListener(
|
||||
contentDoc.getElementById('mirrorSelect').addEventListener(
|
||||
'click', resurrect.selectMirror, false
|
||||
);
|
||||
} catch (e) { }
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<Description about="urn:mozilla:install-manifest">
|
||||
<em:id>{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}</em:id>
|
||||
<em:name>Resurrect Pages</em:name>
|
||||
<em:version>1.0</em:version>
|
||||
<em:version>1.0.1</em:version>
|
||||
<em:description>Resurrect dead pages, by finding their ghosts.</em:description>
|
||||
|
||||
<em:homepageURL>http://www.arantius.com/article/resurrect</em:homepageURL>
|
||||
|
|
Chargement…
Référencer dans un nouveau ticket