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

fix(extension/file): update File constructor following the spec #10760

Merged
merged 3 commits into from May 25, 2021

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented May 25, 2021

This PR is a retry of #10459. (This time it doesn't depends on the harness issue)

This PR updates the File constructor, following this spec update w3c/FileAPI#171. This PR removes the file name replacement, and enables the corresponding wpt by polyfilling the global document.body object. This PR also updates the wpt expectations which start passing because of the document.body polyfill.

@lucacasonato
Copy link
Member

The introduction of the document.body polyfill has broken significant amounts of the internals of testharness.js (mainly through this function: https://github.com/web-platform-tests/wpt/blob/master/resources/testharness.js#L471). The tests that this PR looks to make pass, are actually failing, the polyfill is just hiding it. I am going to revert the polyfill.

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.

None yet

2 participants