IJsWindowProxyHandler<TValue> Interface
The operations of a WindowProxy exotic object (https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-windowproxy-exotic-object), created by IJsAdapter<TValue>.CreateWindowProxy. Its internal methods are the ones of the specification: the indexed properties are the WindowProxy objects of the child navigables, the other properties are the properties of the global object of IJsWindowProxyHandler<TValue>.Window (same origin) or the cross-origin properties.
public interface IJsWindowProxyHandler<TValue> : IJsCrossOriginObjectHandler<TValue> where TValue : classType parameters
TValue- The type of the JavaScript values of the engine.
- Implements
Properties
| Name | Description |
|---|---|
| ChildCount | Gets the number of document-tree child navigables of the document of the window. |
| Window | Gets the global object of the window of the WindowProxy ([[Window]]): the active window of its browsing context. |
ChildCount
Window
Gets the global object of the window of the WindowProxy ([[Window]]): the active window of its browsing context.
TValue Window { get; }Property value
TValue
Methods
| Name | Description |
|---|---|
| GetChild(int) | Returns the WindowProxy of the document-tree child navigable at index, or null. |
| IsNamedProperty(string) | Whether name is a named property of the window (https://html.spec.whatwg.org/multipage/nav-history-apis.html#named-access-on-the-window-object): a named child navigable, or a named element when the window is same origin-domain with the current realm. |
| ReportAccess(string) | Reports an access to the window by the code of the current realm (https://html.spec.whatwg.org/multipage/browsers.html#coop-check-access-report). |
| ShouldReportAccess() | Whether the [[Get]] and [[Set]] internal methods of the WindowProxy must report the access for the code of the current realm (https://html.spec.whatwg.org/multipage/browsers.html#coop-check-access-report): the windows are in different virtual browsing context groups and an opener policy reports the accesses. The engine then calls IJsWindowProxyHandler<TValue>.ReportAccess with the name of the property. |
GetChild(int)
IsNamedProperty(string)
IJsCrossOriginObjectHandler.csWhether name is a named property of the window (https://html.spec.whatwg.org/multipage/nav-history-apis.html#named-access-on-the-window-object): a named child navigable, or a named element when the window is same origin-domain with the current realm.
ReportAccess(string)
IJsCrossOriginObjectHandler.csReports an access to the window by the code of the current realm (https://html.spec.whatwg.org/multipage/browsers.html#coop-check-access-report).
Parameters
propertyNamestring- The name of a cross-origin accessible window property,
indexedfor a child navigable, ornamedfor a named property.
ShouldReportAccess()
IJsCrossOriginObjectHandler.csWhether the [[Get]] and [[Set]] internal methods of the WindowProxy must report the access for the code of the current realm (https://html.spec.whatwg.org/multipage/browsers.html#coop-check-access-report): the windows are in different virtual browsing context groups and an opener policy reports the accesses. The engine then calls IJsWindowProxyHandler<TValue>.ReportAccess with the name of the property.
public bool ShouldReportAccess()