Bug 1375425 - Correct l10n service namespace; r?automatedtester
We don't want to support multiple namespaces in service endpoints as it
will add unecessary complexity when we in the future support enabling-
and disabling services on an individual level. This patch drops the
"localization" namespace and exposes "L10n:*".
MozReview-Commit-ID: IhqG72vMohJ
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -3196,16 +3196,22 @@ GeckoDriver.prototype.commands = {
"quit": GeckoDriver.prototype.quit, // deprecated, remove in Firefox 60
// Addon service
"Addon:Install": GeckoDriver.prototype.installAddon,
"addon:install": GeckoDriver.prototype.installAddon, // deprecated, remove in Firefox 60
"Addon:Uninstall": GeckoDriver.prototype.uninstallAddon,
"addon:uninstall": GeckoDriver.prototype.uninstallAddon, // deprecated, remove in Firefox 60
+ // L10n service
+ "L10n:LocalizeEntity": GeckoDriver.prototype.localizeEntity,
+ "localization:l10n:localizeEntity": GeckoDriver.prototype.localizeEntity, // deprecated, remove in Firefox 60
+ "L10n:LocalizeProperty": GeckoDriver.prototype.localizeProperty,
+ "localization:l10n:localizeProperty": GeckoDriver.prototype.localizeProperty, // deprecated, remove in Firefox 60
+
"newSession": GeckoDriver.prototype.newSession,
"getSessionCapabilities": GeckoDriver.prototype.getSessionCapabilities,
"executeScript": GeckoDriver.prototype.executeScript,
"getTimeouts": GeckoDriver.prototype.getTimeouts,
"setTimeouts": GeckoDriver.prototype.setTimeouts,
"singleTap": GeckoDriver.prototype.singleTap,
"performActions": GeckoDriver.prototype.performActions,
"releaseActions": GeckoDriver.prototype.releaseActions,
@@ -3264,19 +3270,16 @@ GeckoDriver.prototype.commands = {
"getWindowSize": GeckoDriver.prototype.getWindowRect, // Redirecting for compatibility
"setWindowSize": GeckoDriver.prototype.setWindowRect, // Redirecting for compatibility
"maximizeWindow": GeckoDriver.prototype.maximizeWindow,
"fullscreen": GeckoDriver.prototype.fullscreen,
"dismissDialog": GeckoDriver.prototype.dismissDialog,
"acceptDialog": GeckoDriver.prototype.acceptDialog,
"getTextFromDialog": GeckoDriver.prototype.getTextFromDialog,
"sendKeysToDialog": GeckoDriver.prototype.sendKeysToDialog,
-
- "localization:l10n:localizeEntity": GeckoDriver.prototype.localizeEntity,
- "localization:l10n:localizeProperty": GeckoDriver.prototype.localizeProperty,
};
function copy (obj) {
if (Array.isArray(obj)) {
return obj.slice();
} else if (typeof obj == "object") {
return Object.assign({}, obj);
}