fx-compat: Fix basicViewer for http(s):// URLs
maychangeremoteness="true" is required to successfully load pages from the web even though we never actually change remoteness. https://searchfox.org/comm-central/rev/2cf3a09a0127fe73e932c5ee793986f3bed2ccd2/mail/base/content/aboutMessage.xhtml#118
This commit is contained in:
parent
e26fd18450
commit
f05d6fe0e0
2 changed files with 6 additions and 5 deletions
|
@ -48,10 +48,10 @@ window.addEventListener("load", /*async */function() {
|
||||||
//browser.docShellIsActive = false;
|
//browser.docShellIsActive = false;
|
||||||
|
|
||||||
// align page title with title of shown document
|
// align page title with title of shown document
|
||||||
browser.addEventListener("pageshow", function() {
|
browser.addEventListener('pagetitlechanged', () => {
|
||||||
document.title = browser.contentDocument.title || browser.contentDocument.location.href;
|
document.title = browser.contentTitle || browser.currentURI.spec;
|
||||||
}, false);
|
});
|
||||||
|
|
||||||
// Load URI passed in as nsISupports .data via openWindow()
|
// Load URI passed in as nsISupports .data via openWindow()
|
||||||
browser.loadURI(
|
browser.loadURI(
|
||||||
window.arguments[0],
|
window.arguments[0],
|
||||||
|
|
|
@ -170,7 +170,8 @@
|
||||||
type="content"
|
type="content"
|
||||||
flex="1"
|
flex="1"
|
||||||
remote="false"
|
remote="false"
|
||||||
disableglobalhistory="true"/>
|
disableglobalhistory="true"
|
||||||
|
maychangeremoteness="true"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
</hbox>
|
</hbox>
|
||||||
</window>
|
</window>
|
||||||
|
|
Loading…
Add table
Reference in a new issue