CrossOriginWindowExtension extension
Safe alternatives to common Window members that can return cross-origin windows.
By default, the Dart web compilers are not sensitive to cross-origin objects, and therefore same-origin policy errors may be triggered when type-checking. Use these members instead to safely interact with such objects.
- on
Properties
- openerCrossOrigin → CrossOriginWindow?
-
Available on Window, provided by the CrossOriginWindowExtension extension
A CrossOriginWindow wrapper of the Window.opener value of this cross-origin window.no setter - parentCrossOrigin → CrossOriginWindow?
-
Available on Window, provided by the CrossOriginWindowExtension extension
A CrossOriginWindow wrapper of the Window.parent value of this cross-origin window.no setter - topCrossOrigin → CrossOriginWindow?
-
Available on Window, provided by the CrossOriginWindowExtension extension
A CrossOriginWindow wrapper of the Window.top value of this cross-origin window.no setter
Methods
-
openCrossOrigin(
String url) → CrossOriginWindow? -
Available on Window, provided by the CrossOriginWindowExtension extension
A CrossOriginWindow wrapper of the value returned from calling Window.open withurl
.