зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1095457 fix loading frame script in share panel, r=jaws
This commit is contained in:
Родитель
aaad7da285
Коммит
bbebb9fcd5
|
@ -509,8 +509,8 @@ SocialShare = {
|
|||
iframe.setAttribute("disableglobalhistory", "true");
|
||||
iframe.setAttribute("flex", "1");
|
||||
panel.appendChild(iframe);
|
||||
iframe.addEventListener("DOMContentLoaded", function _firstload() {
|
||||
iframe.removeEventListener("DOMContentLoaded", _firstload, true);
|
||||
iframe.addEventListener("load", function _firstload() {
|
||||
iframe.removeEventListener("load", _firstload, true);
|
||||
iframe.messageManager.loadFrameScript("chrome://browser/content/content.js", true);
|
||||
}, true);
|
||||
this.populateProviderMenu();
|
||||
|
|
Загрузка…
Ссылка в новой задаче