Comments (8)
@mgaudet Here are the ShadowRealm enabled tests in WPT as of now: https://github.com/web-platform-tests/wpt/pulls?q=is%3Apr+author%3Arwaldron+shadowrealm+is%3Aclosed
These are pending HTML spec update: https://github.com/web-platform-tests/wpt/pulls?q=is%3Aopen+is%3Apr+author%3Arwaldron+shadowrealm
The tests that are currently in WPT run with varying support across Chrome Canary, Firefox Nightly and Safari Technology Preview.
For Chrome Canary:
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --js-flags="--harmony-shadow-realm"
For Firefox Nightly:
Open "about:config", type:
javascript.options.experimental.shadow_realms
Toggle to true
For Safari Technology Preview:
env JSC_useShadowRealm=1 __XPC_JSC_useShadowRealm=1 /Applications/Safari\ Technology\ Preview.app/Contents/MacOS/Safari\ Technology\ Preview
from proposal-shadowrealm.
cc @rwaldron
from proposal-shadowrealm.
(Oh, I see the global object definition is now in flux at whatwg/html#9893)
from proposal-shadowrealm.
(In case anyone wants to see current results from Firefox, with some speculative enablement, the job results from CI are here)
from proposal-shadowrealm.
We've now landed 2 of several PRs that are enabling functional testing of the [Exposed=*] APIs. More are awaiting review, and still more are in progress.
from proposal-shadowrealm.
Hey @rwaldron , apologies for the long feedback delay.
So, running the tests as ./mach wpt --headless /test/path/ --setpref javascript.options.experimental.shadow_realms=true
I am noticing a lot of test failures related to undefined references. For example in the wasm tests, lots of failures of the shape assert_Table
is not defined,
There's also some tests (most of the Streams tests) that for example want setTimeout
, but that's currently defined as a part of the WindowOrWorkerGlobalScope
mixin, which currently the ShadowRealmGlobalScope doesn't include.
I can file more bugs in the appropriate repos, but I'm not sure where would be best.
On the good news side, we're definitely getting some UNEXPECTED-OK results, which is nice.
from proposal-shadowrealm.
@mgaudet I don't have any comment on whether the tests pass or not. My only goal was to ensure that the APIs that are likely to be exposed in shadowrealm are being tested in shadowrealm. It's up to implementers to run those tests and make sure their implementations pass.
from proposal-shadowrealm.
Sure -- my feedback was more about failures which seemed like test integration problems (e.g. the missing assert_Table reference) or depended on undetermined elements.
from proposal-shadowrealm.
Related Issues (20)
- Should HostImportModuleDynamically provide a referencing script? HOT 7
- importValue: How to import a module with no exports? HOT 18
- [Meta] Discussion topics for the TC39 plenary of June 2022 HOT 7
- Spec Text for WrappedFunctionCreate: argument not function HOT 2
- HostEnsureCanCompileStrings takes only one argument HOT 5
- Why not call it a Sandbox? HOT 18
- Incorrect `result` handling in "2.1 [[Call]]"? HOT 7
- ScriptEvaluation semantics for ShadowRealm HOT 4
- Web Integration: Performance mixin? HOT 9
- [Stage 3] Web APIs to be exposed to ShadowRealms HOT 46
- Require properties of ShadowRealm's global object added by host to be enumerable HOT 3
- ShadowRealms WPT Failures HOT 1
- ShadowRealms WPT Problems HOT 4
- Exposed=* vs Exposed=Shadow HOT 20
- Who Maintains the Invariants HOT 6
- Enable writing code directly to be evaluated synchronously HOT 9
- Feature Enabling HOT 1
- Clarify object/value sharing limitations in explainer
- Considering the impact of ShadowRealm on ad blocking, privacy and similar browser extensions HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proposal-shadowrealm.