2010-09-09 19:08:25 -07:00
|
|
|
function check_about_rights(tab) {
|
|
|
|
let doc = gBrowser.getBrowserForTab(tab).contentDocument;
|
|
|
|
ok(doc.getElementById("your-rights"), "about:rights content loaded");
|
|
|
|
gBrowser.removeTab(tab);
|
|
|
|
finish();
|
|
|
|
}
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
waitForExplicitFinish();
|
|
|
|
let tab = gBrowser.selectedTab = gBrowser.addTab("about:blank");
|
|
|
|
let browser = gBrowser.getBrowserForTab(tab);
|
|
|
|
browser.addEventListener("load", function() {
|
2010-09-18 03:07:01 -07:00
|
|
|
browser.removeEventListener("load", arguments.callee, true);
|
|
|
|
|
2010-09-09 19:08:25 -07:00
|
|
|
ok(true, "about:rights loaded");
|
|
|
|
executeSoon(function() { check_about_rights(tab); });
|
|
|
|
}, true);
|
|
|
|
browser.loadURI("about:rights", null, null);
|
|
|
|
}
|