mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1634719: Drop the broken extraProps argument to newAppInfo. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D73469
This commit is contained in:
parent
5747ae4098
commit
e5989d6961
@ -29,11 +29,8 @@ let origRuntime = Cc["@mozilla.org/xre/app-info;1"].getService(
|
||||
* lastAppVersion: nsIXULRuntime.lastAppVersion
|
||||
*
|
||||
* crashReporter: nsICrashReporter interface is implemented if true
|
||||
* extraProps: extra properties added to XULAppInfo
|
||||
*/
|
||||
var newAppInfo = function(options = {}) {
|
||||
let extraProps = "extraProps" in options ? options.extraProps : {};
|
||||
|
||||
let appInfo = {
|
||||
// nsIXULAppInfo
|
||||
vendor: "Mozilla",
|
||||
@ -79,10 +76,6 @@ var newAppInfo = function(options = {}) {
|
||||
interfaces.push(Ci.nsICrashReporter);
|
||||
}
|
||||
|
||||
for (let key of Object.keys(extraProps)) {
|
||||
appInfo.browserTabsRemoteAutostart = extraProps[key];
|
||||
}
|
||||
|
||||
appInfo.QueryInterface = ChromeUtils.generateQI(interfaces);
|
||||
|
||||
return appInfo;
|
||||
|
@ -686,9 +686,6 @@ var AddonTestUtils = {
|
||||
version,
|
||||
platformVersion,
|
||||
crashReporter: true,
|
||||
extraProps: {
|
||||
browserTabsRemoteAutostart: false,
|
||||
},
|
||||
});
|
||||
this.appInfo = AppInfo.getAppInfo();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user