mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
23
docshell/test/unit/test_pb_notification.js
Normal file
23
docshell/test/unit/test_pb_notification.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
if (typeof Cc === "undefined")
|
||||
Cc = Components.classes;
|
||||
if (typeof Ci === "undefined")
|
||||
Ci = Components.interfaces;
|
||||
|
||||
function destroy_transient_docshell() {
|
||||
var docshell = Cc["@mozilla.org/docshell;1"].createInstance(Ci.nsIDocShell);
|
||||
docshell.setOriginAttributes({privateBrowsingId : 1});
|
||||
do_test_pending();
|
||||
do_timeout(0, Components.utils.forceGC);
|
||||
}
|
||||
|
||||
function run_test() {
|
||||
var obs = {
|
||||
observe: function(aSubject, aTopic, aData) {
|
||||
do_check_eq(aTopic, "last-pb-context-exited");
|
||||
do_test_finished();
|
||||
}
|
||||
};
|
||||
var os = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService);
|
||||
os.addObserver(obs, "last-pb-context-exited", false);
|
||||
destroy_transient_docshell();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue