Skip to content

Use polyfill if location.origin doesn't exist (in IE11) #2441

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

Merged

Conversation

danielroe
Copy link
Contributor

Purpose

To prevent IE11 from crashing where web workers are being used.

Approach

This polyfills location.origin with location.protocol + "//" + location.host in environments without location.origin (like IE11 under the Intranet Zone).

References

closes #2440

Pre-Merge TODO

  • Write tests for your proposed changes
  • Make sure that existing tests do not fail

Sorry, something went wrong.

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 70005a1 have failed. See details.

@miherlosev
Copy link
Contributor

Hi @danielroe

Thank you for contributing to 'testcafe-hammerhead'. We will review your PR at the start of the next sprint because the current sprint is already planned.

@LavrovArtem
Copy link
Contributor

@testcafe-build-bot retest

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 70005a1 have passed. See details.

@LavrovArtem
Copy link
Contributor

Thank you for the contributing.

@LavrovArtem LavrovArtem merged commit 9b73e2d into DevExpress:master Sep 23, 2020
@danielroe danielroe deleted the 2440-web-worker-location-origin-ie11 branch September 23, 2020 09:37
AlexSkorkin added a commit to DevExpress/testcafe that referenced this pull request Dec 9, 2020
[AlexanderMoiseev](https://github.com/AlexanderMoiseev)
[augustomezencio-hotmart](https://github.com/augustomezencio-hotmart) - [Fix tree-kill vulnerability from old version.](#5690)
[bdwain](https://github.com/bdwain) - [Fixes header types for request and response mocks (#5529)](#5530)
[mostlyfabulous](https://github.com/mostlyfabulous) - [Gh2172 Add `ShadowRoot()` as a chainable Selector method](#5560)
[danielroe](https://github.com/danielroe) - [Use polyfill if `location.origin` doesn't exist (in IE11)](DevExpress/testcafe-hammerhead#2441)
testcafe-build-bot added a commit to testcafe-build-bot/testcafe that referenced this pull request Dec 9, 2020
[AlexanderMoiseev](https://github.com/AlexanderMoiseev)
[augustomezencio-hotmart](https://github.com/augustomezencio-hotmart) - [Fix tree-kill vulnerability from old version.](DevExpress#5690)
[bdwain](https://github.com/bdwain) - [Fixes header types for request and response mocks (DevExpress#5529)](DevExpress#5530)
[mostlyfabulous](https://github.com/mostlyfabulous) - [Gh2172 Add `ShadowRoot()` as a chainable Selector method](DevExpress#5560)
[danielroe](https://github.com/danielroe) - [Use polyfill if `location.origin` doesn't exist (in IE11)](DevExpress/testcafe-hammerhead#2441)
testcafe-build-bot added a commit to testcafe-build-bot/testcafe that referenced this pull request Dec 9, 2020
[AlexanderMoiseev](https://github.com/AlexanderMoiseev)
[augustomezencio-hotmart](https://github.com/augustomezencio-hotmart) - [Fix tree-kill vulnerability from old version.](DevExpress#5690)
[bdwain](https://github.com/bdwain) - [Fixes header types for request and response mocks (DevExpress#5529)](DevExpress#5530)
[mostlyfabulous](https://github.com/mostlyfabulous) - [Gh2172 Add `ShadowRoot()` as a chainable Selector method](DevExpress#5560)
[danielroe](https://github.com/danielroe) - [Use polyfill if `location.origin` doesn't exist (in IE11)](DevExpress/testcafe-hammerhead#2441)
AndreyBelym pushed a commit to DevExpress/testcafe that referenced this pull request Dec 11, 2020
[AlexanderMoiseev](https://github.com/AlexanderMoiseev)
[augustomezencio-hotmart](https://github.com/augustomezencio-hotmart) - [Fix tree-kill vulnerability from old version.](#5690)
[bdwain](https://github.com/bdwain) - [Fixes header types for request and response mocks (#5529)](#5530)
[mostlyfabulous](https://github.com/mostlyfabulous) - [Gh2172 Add `ShadowRoot()` as a chainable Selector method](#5560)
[danielroe](https://github.com/danielroe) - [Use polyfill if `location.origin` doesn't exist (in IE11)](DevExpress/testcafe-hammerhead#2441)
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.

IE11: Web worker fails with NetworkError
4 participants