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

[wptrunner] Convert data prior to transmission #13938

Merged
merged 1 commit into from
Nov 6, 2018

Conversation

jugglinmike
Copy link
Contributor

A recent improvement to wptrunner modified the way data structures are
transmitted from the browser to the WebDriver server [1]. One
consequence of this change is that the data structures are created in a
JavaScript realm which differs from the realm in which the "Execute
Script" WebDriver command is running. As of version 17, Microsoft Edge
does not correctly serialize cross-realm values, so referenced
improvement unintentionally precluded testing in that browser.

Serialize and deserialize the results data structure from the realm of
the WebDriver command to avoid this problem.

[1] #13419

@jugglinmike jugglinmike requested a review from jgraham November 6, 2018 01:05
@wpt-pr-bot wpt-pr-bot added infra wptrunner The automated test runner, commonly called through ./wpt run labels Nov 6, 2018
@wpt-pr-bot wpt-pr-bot requested a review from gsnedders November 6, 2018 01:05
@jugglinmike jugglinmike changed the title [wptrunner] Transmit test results via postMessage [wptunner] Convert data prior to transmission Nov 6, 2018
@jugglinmike jugglinmike force-pushed the testdriver-results-realm branch from f83a9ed to 17949fc Compare November 6, 2018 01:12
A recent improvement to wptrunner modified the way data structures are
transmitted from the browser to the WebDriver server [1]. One
consequence of this change is that the data structures are created in a
JavaScript realm which differs from the realm in which the "Execute
Script" WebDriver command is running. As of version 17, Microsoft Edge
does not correctly serialize cross-realm values, so referenced
improvement unintentionally precluded testing in that browser.

Serialize and deserialize the results data structure from the realm of
the WebDriver command to avoid this problem.

[1] web-platform-tests#13419
@jugglinmike jugglinmike force-pushed the testdriver-results-realm branch from 17949fc to 9c3764a Compare November 6, 2018 01:13
@jugglinmike jugglinmike changed the title [wptunner] Convert data prior to transmission [wptrunner] Convert data prior to transmission Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra wptrunner The automated test runner, commonly called through ./wpt run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants