fx-compat: Basic viewer: Restore loadURI() for Zotero.openInViewer()
This commit is contained in:
parent
20aa40c5d2
commit
dbbc6a2f44
1 changed files with 11 additions and 8 deletions
|
@ -53,14 +53,7 @@ window.addEventListener("load", /*async */function() {
|
|||
});
|
||||
|
||||
// Load URI passed in as nsISupports .data via openWindow()
|
||||
browser.loadURI(
|
||||
window.arguments[0],
|
||||
{
|
||||
triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
|
||||
//loadFlags: Ci.nsIWebNavigation.LOAD_FLAGS_STOP_CONTENT,
|
||||
}
|
||||
);
|
||||
|
||||
loadURI(window.arguments[0]);
|
||||
}, false);
|
||||
|
||||
window.addEventListener("keypress", function (event) {
|
||||
|
@ -79,3 +72,13 @@ window.addEventListener("click", function (event) {
|
|||
Zotero.launchURL(event.originalTarget.getAttribute('href'));
|
||||
}
|
||||
});
|
||||
|
||||
function loadURI(uri) {
|
||||
browser.loadURI(
|
||||
uri,
|
||||
{
|
||||
triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
|
||||
//loadFlags: Ci.nsIWebNavigation.LOAD_FLAGS_STOP_CONTENT,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue