mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1294381
- Delayed process script for test_bug803225.html. r=mrbkap
This commit is contained in:
parent
af105a9c64
commit
9f5afabda0
@ -120,8 +120,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=803225
|
||||
Services.ppmm.addMessageListener("Test:content-ready", function contentReadyListener() {
|
||||
Services.ppmm.removeMessageListener("Test:content-ready", contentReadyListener);
|
||||
sendAsyncMessage("Test:content-ready-forward");
|
||||
Services.ppmm.removeDelayedProcessScript(pScript);
|
||||
})
|
||||
Services.ppmm.loadProcessScript("data:,new " + function () {
|
||||
|
||||
var pScript = "data:,new " + function () {
|
||||
var os = Components.classes["@mozilla.org/observer-service;1"]
|
||||
.getService(Components.interfaces.nsIObserverService);
|
||||
var observer = {
|
||||
@ -133,7 +135,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=803225
|
||||
}
|
||||
};
|
||||
os.addObserver(observer, "content-document-global-created", false);
|
||||
}, false);
|
||||
}
|
||||
|
||||
Services.ppmm.loadProcessScript(pScript, true);
|
||||
|
||||
var uri = ioService.newURI("mailto:foo@bar.com", null, null);
|
||||
webHandler.launchWithURI(uri);
|
||||
|
Loading…
Reference in New Issue
Block a user