-
Notifications
You must be signed in to change notification settings - Fork 673
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9cafa1c
to
877b162
Compare
1179838
to
95ab386
Compare
✅ Tests for the commit 95ab386 have passed. See details: |
@@ -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 : ''); |
There was a problem hiding this comment.
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' }); |
There was a problem hiding this comment.
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.
❌ Tests for the commit f49d336 have failed. See details: |
✅ Tests for the commit f49d336 have passed. See details: |
No description provided.