dart-lang / web

Lightweight browser API bindings built around JS static interop.
https://pub.dev/packages/web
BSD 3-Clause "New" or "Revised" License
135 stars 23 forks source link

Add cross-origin window and location wrappers #291

Closed srujzs closed 1 month ago

srujzs commented 2 months ago

Closes https://github.com/dart-lang/sdk/issues/54443 Closes https://github.com/dart-lang/web/issues/247 Closes https://github.com/dart-lang/sdk/issues/54938

Since cross-origin objects have limitations around access, wrappers are introduced to do the only safe operations. Extension methods are added to get instances of these wrappers.

I'll work on getting a test in the SDK doing the interop operations with JSAny? so that ability we're relying on here won't regress and we can get better coverage.

kevmoo commented 2 months ago

Also need to rebase on latest...although it looks like we're going for a 1.1 release soon.