Skip to content

Commit

Permalink
[js] Remove more functions from firefox.Profile that are just holdove…
Browse files Browse the repository at this point in the history
…rs from the

legacy FirefoxDriver
  • Loading branch information
jleyba committed Nov 3, 2017
1 parent 647420b commit d4d1108
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 45 deletions.
7 changes: 7 additions & 0 deletions javascript/node/selenium-webdriver/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ mode.
- Added uninstallAddon(id)
* Changes to `firefox.Options`
- Removed setLoggingPreferences (was a no-op)
* Changes to `firefox.Profile`
- Removed no-op methods
- acceptUntrustedCerts
- assumeUntrustedCertIssuer
- setAcceptUntrustedCerts
- setAssumeUntrustedCertIssuer
- setHost
* Changes to `safari.Options`
- Removed setCleanSession (was a no-op)
- Removed setLoggingPreferences (was a no-op)
Expand Down
45 changes: 0 additions & 45 deletions javascript/node/selenium-webdriver/firefox/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,51 +204,6 @@ class Profile {
return Object.assign({}, this.preferences_);
}

/**
* Specifies which host the driver should listen for commands on. If not
* specified, the driver will default to "localhost". This option should be
* specified when "localhost" is not mapped to the loopback address
* (127.0.0.1) in `/etc/hosts`.
*
* @param {string} host the host the driver should listen for commands on
*/
setHost(host) {
this.preferences_['webdriver_firefox_allowed_hosts'] = host;
}

/**
* @return {boolean} Whether the FirefoxDriver is configured to automatically
* accept untrusted SSL certificates.
*/
acceptUntrustedCerts() {
return !!this.preferences_['webdriver_accept_untrusted_certs'];
}

/**
* Sets whether the FirefoxDriver should automatically accept untrusted SSL
* certificates.
* @param {boolean} value .
*/
setAcceptUntrustedCerts(value) {
this.preferences_['webdriver_accept_untrusted_certs'] = !!value;
}

/**
* Sets whether to assume untrusted certificates come from untrusted issuers.
* @param {boolean} value .
*/
setAssumeUntrustedCertIssuer(value) {
this.preferences_['webdriver_assume_untrusted_issuer'] = !!value;
}

/**
* @return {boolean} Whether to assume untrusted certs come from untrusted
* issuers.
*/
assumeUntrustedCertIssuer() {
return !!this.preferences_['webdriver_assume_untrusted_issuer'];
}

/**
* Writes this profile to disk.
* @return {!Promise<string>} A promise for the path to the new profile
Expand Down

0 comments on commit d4d1108

Please sign in to comment.