test_runner doesn't report violations of same-origin policy #56772
Labels
area-test
Cross-cutting test issues (use area- labels for specific failures; not used for package:test).
type-enhancement
A request for a change that isn't a bug
This is a similar issue as dart-lang/test#2282.
Running the following code:
does not result in a
SecurityError
when run withtools/test.py -r chrome -c dart2js <test_path>
.devicePixelRatio
is a disallowed API on cross-origin windows. When I single-stepped the test however, the test does throw that error:SecurityError: Failed to read a named property 'devicePixelRatio' from 'Window': Blocked a frame with origin "http://127.0.0.1:61457" from accessing a cross-origin frame.
It's possible we may need to enable same-origin policy (if possible) for this. It'd be useful to enable this so that we can run interop tests like
cross_origin_test
correctly.The text was updated successfully, but these errors were encountered: