Bug 1519461 - Don't return values from docShellIsActive, renderLayers, and userTypedValue setters;r=mconley

This is more consistent with other setters, and lets us handle the null frameLoader
case a bit more simply.

Differential Revision: https://phabricator.services.mozilla.com/D16370

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brian Grinstead 2019-01-14 20:36:25 +00:00
Родитель cdd04b8d1b
Коммит cdd4391679
2 изменённых файлов: 7 добавлений и 10 удалений

Просмотреть файл

@ -492,7 +492,7 @@ window._gBrowser = {
},
set userTypedValue(val) {
return this.selectedBrowser.userTypedValue = val;
this.selectedBrowser.userTypedValue = val;
},
get userTypedValue() {

Просмотреть файл

@ -379,13 +379,11 @@ class MozBrowser extends MozElementMixin(XULFrameElement) {
if (this.isRemoteBrowser) {
let { frameLoader } = this;
if (frameLoader && frameLoader.tabParent) {
return frameLoader.tabParent.docShellIsActive = val;
frameLoader.tabParent.docShellIsActive = val;
}
return false;
} else if (this.docShell) {
this.docShell.isActive = val;
}
if (this.docShell)
return this.docShell.isActive = val;
return false;
}
get docShellIsActive() {
@ -403,11 +401,11 @@ class MozBrowser extends MozElementMixin(XULFrameElement) {
if (this.isRemoteBrowser) {
let { frameLoader } = this;
if (frameLoader && frameLoader.tabParent) {
return frameLoader.tabParent.renderLayers = val;
frameLoader.tabParent.renderLayers = val;
}
return false;
} else {
this.docShellIsActive = val;
}
return this.docShellIsActive = val;
}
get renderLayers() {
@ -734,7 +732,6 @@ class MozBrowser extends MozElementMixin(XULFrameElement) {
set userTypedValue(val) {
this.urlbarChangeTracker.userTyped();
this._userTypedValue = val;
return val;
}
get userTypedValue() {