зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 8ac572a4580b (bug 1274992)
This commit is contained in:
Родитель
1200b08571
Коммит
bbd4952213
|
@ -50,16 +50,3 @@ addEventListener("TalosPowersContentForceCCAndGC", (e) => {
|
||||||
Cu.forceShrinkingGC();
|
Cu.forceShrinkingGC();
|
||||||
sendSyncMessage("TalosPowersContent:ForceCCAndGC");
|
sendSyncMessage("TalosPowersContent:ForceCCAndGC");
|
||||||
});
|
});
|
||||||
|
|
||||||
addEventListener("TalosPowersContentFocus", (e) => {
|
|
||||||
if (content.location.protocol != "file:" &&
|
|
||||||
content.location.hostname != "localhost" &&
|
|
||||||
content.location.hostname != "127.0.0.1") {
|
|
||||||
throw new Error("TalosPowersContentFocus may only be used with local content");
|
|
||||||
}
|
|
||||||
content.focus();
|
|
||||||
let contentEvent = Cu.cloneInto({
|
|
||||||
bubbles: true,
|
|
||||||
}, content);
|
|
||||||
content.dispatchEvent(new content.CustomEvent("TalosPowersContentFocused", contentEvent));
|
|
||||||
}, true, true);
|
|
||||||
|
|
|
@ -16,18 +16,5 @@ var TalosPowersContent;
|
||||||
});
|
});
|
||||||
document.dispatchEvent(event);
|
document.dispatchEvent(event);
|
||||||
},
|
},
|
||||||
|
|
||||||
focus(callback) {
|
|
||||||
if (callback) {
|
|
||||||
addEventListener("TalosPowersContentFocused", function focused() {
|
|
||||||
removeEventListener("TalosPowersContentFocused", focused);
|
|
||||||
callback();
|
|
||||||
});
|
|
||||||
};
|
|
||||||
document.dispatchEvent(new CustomEvent("TalosPowersContentFocus", {
|
|
||||||
bubbles: true,
|
|
||||||
}));
|
|
||||||
},
|
|
||||||
|
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
|
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
|
||||||
<Description about="urn:mozilla:install-manifest">
|
<Description about="urn:mozilla:install-manifest">
|
||||||
<em:id>talos-powers@mozilla.org</em:id>
|
<em:id>talos-powers@mozilla.org</em:id>
|
||||||
<em:version>1.0.8</em:version>
|
<em:version>1.0.7</em:version>
|
||||||
<em:targetApplication>
|
<em:targetApplication>
|
||||||
<Description>
|
<Description>
|
||||||
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
|
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
|
||||||
|
|
Двоичные данные
testing/talos/talos/talos-powers/talos-powers-signed.xpi
Двоичные данные
testing/talos/talos/talos-powers/talos-powers-signed.xpi
Двоичный файл не отображается.
Загрузка…
Ссылка в новой задаче