Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for location.origin; fix regressions (#2978, #2975) #3015

Merged
merged 5 commits into from
Oct 24, 2018

Conversation

AndreyBelym
Copy link
Contributor

No description provided.

Copy link
Contributor

@LavrovArtem LavrovArtem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AndreyBelym AndreyBelym reopened this Oct 24, 2018
@testcafe-build-bot
Copy link
Collaborator

@AndreyBelym
Copy link
Contributor Author

\cc @miherlosev @AlexKamaev

@@ -4,6 +4,10 @@

var origin = location.origin;

// NOTE: location.origin doesn't exist in IE11 on Windows 10.10240 LTSB
if (!origin)
origin = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simplify this:
#2979 (review)

@@ -152,7 +152,7 @@ module.exports = class MarionetteClient {
marionetteProtocol: infoPacket.body.marionetteProtocol
};

this.sessionInfo = await this._getResponse({ command: 'newSession' });
this.sessionInfo = await this._getResponse({ command: 'WebDriver:NewSession' });
Copy link
Collaborator

@miherlosev miherlosev Oct 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good practice to move all command names to an array of the constants.

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants