fx-compat: Fix ProgressWindow

This commit is contained in:
Abe Jellinek 2022-11-22 13:30:15 -05:00 committed by Dan Stillman
parent 95f2e40434
commit 730677a918
2 changed files with 3 additions and 4 deletions

View file

@ -38,10 +38,9 @@
windowtype="alert:alert">
<vbox id="zotero-progress-text-box" flex="1" style="padding: 10px">
<hbox align="stretch">
<hbox id="zotero-progress-text-headline" align="stretch">
<label id="progress-label" flex="1"/>
</hbox>
<html:progress id="progress-indicator" max="100"/>
</vbox>
<script>
window.addEventListener("DOMContentLoaded", () => window.sizeToContent())

View file

@ -124,7 +124,7 @@ Zotero.ProgressWindow = function(options = {}) {
}
if (_window) {
_progressWindow = _window.openDialog("chrome://zotero/content/progressWindow.xul",
_progressWindow = _window.openDialog("chrome://zotero/content/progressWindow.xhtml",
"", "chrome,dialog=no,titlebar=no,alwaysontop=yes");
_window.addEventListener('close', () => {
this.close();
@ -133,7 +133,7 @@ Zotero.ProgressWindow = function(options = {}) {
else {
let ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher);
_progressWindow = ww.openWindow(null, "chrome://zotero/content/progressWindow.xul",
_progressWindow = ww.openWindow(null, "chrome://zotero/content/progressWindow.xhtml",
"", "chrome,dialog=no,titlebar=no,alwaysontop=yes", null);
}
_progressWindow.addEventListener("load", _onWindowLoaded, false);