Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN

MozReview-Commit-ID: 7E7LPorrEje
This commit is contained in:
Jared Wein
2016-12-29 18:34:54 -05:00
parent 2de0319338
commit e3149c378f
824 changed files with 7775 additions and 7789 deletions

View File

@@ -34,7 +34,7 @@ RemoteWebNavigation.prototype = {
QueryInterface: XPCOMUtils.generateQI([Ci.nsIWebNavigation, Ci.nsISupports]),
swapBrowser: function(aBrowser) {
swapBrowser(aBrowser) {
this._browser = aBrowser;
},
@@ -61,21 +61,21 @@ RemoteWebNavigation.prototype = {
canGoBack: false,
canGoForward: false,
goBack: function() {
goBack() {
this._sendMessage("WebNavigation:GoBack", {});
},
goForward: function() {
goForward() {
this._sendMessage("WebNavigation:GoForward", {});
},
gotoIndex: function(aIndex) {
gotoIndex(aIndex) {
this._sendMessage("WebNavigation:GotoIndex", {index: aIndex});
},
loadURI: function(aURI, aLoadFlags, aReferrer, aPostData, aHeaders) {
loadURI(aURI, aLoadFlags, aReferrer, aPostData, aHeaders) {
this.loadURIWithOptions(aURI, aLoadFlags, aReferrer,
Ci.nsIHttpChannel.REFERRER_POLICY_DEFAULT,
aPostData, aHeaders, null);
},
loadURIWithOptions: function(aURI, aLoadFlags, aReferrer, aReferrerPolicy,
loadURIWithOptions(aURI, aLoadFlags, aReferrer, aReferrerPolicy,
aPostData, aHeaders, aBaseURI) {
this._sendMessage("WebNavigation:LoadURI", {
uri: aURI,
@@ -87,15 +87,15 @@ RemoteWebNavigation.prototype = {
baseURI: aBaseURI ? aBaseURI.spec : null,
});
},
setOriginAttributesBeforeLoading: function(aOriginAttributes) {
setOriginAttributesBeforeLoading(aOriginAttributes) {
this._sendMessage("WebNavigation:SetOriginAttributes", {
originAttributes: aOriginAttributes,
});
},
reload: function(aReloadFlags) {
reload(aReloadFlags) {
this._sendMessage("WebNavigation:Reload", {flags: aReloadFlags});
},
stop: function(aStopFlags) {
stop(aStopFlags) {
this._sendMessage("WebNavigation:Stop", {flags: aStopFlags});
},
@@ -126,7 +126,7 @@ RemoteWebNavigation.prototype = {
throw Cr.NS_ERROR_NOT_IMPLEMENTED;
},
_sendMessage: function(aMessage, aData) {
_sendMessage(aMessage, aData) {
try {
this._browser.messageManager.sendAsyncMessage(aMessage, aData);
}