mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Bug 710578 - Pages without contentDocument cause JSON exception in handleLocationChange [r=mfinkle a=javascript]
This commit is contained in:
parent
8c9f1415d4
commit
d0c866971f
@ -1397,8 +1397,12 @@ Tab.prototype = {
|
||||
|
||||
let browser = BrowserApp.getBrowserForWindow(contentWin);
|
||||
let uri = browser.currentURI.spec;
|
||||
let documentURI = browser.contentDocument.documentURIObject.spec;
|
||||
let contentType = browser.contentDocument.contentType;
|
||||
let documentURI = "";
|
||||
let contentType = "";
|
||||
if (browser.contentDocument) {
|
||||
documentURI = browser.contentDocument.documentURIObject.spec;
|
||||
contentType = browser.contentDocument.contentType;
|
||||
}
|
||||
|
||||
let message = {
|
||||
gecko: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user