feat: webFrameMain.origin (#35438)

This commit is contained in:
Jeremy Rose 2022-08-31 17:40:57 -07:00 committed by GitHub
parent a7248af79e
commit 6ad679f540
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 82 additions and 14 deletions

View file

@ -169,6 +169,16 @@ convenient when `nodeIntegrationInSubFrames` is not enabled.
A `string` representing the current URL of the frame.
#### `frame.origin` _Readonly_
A `string` representing the current origin of the frame, serialized according
to [RFC 6454](https://www.rfc-editor.org/rfc/rfc6454). This may be different
from the URL. For instance, if the frame is a child window opened to
`about:blank`, then `frame.origin` will return the parent frame's origin, while
`frame.url` will return the empty string. Pages without a scheme/host/port
triple origin will have the serialized origin of `"null"` (that is, the string
containing the letters n, u, l, l).
#### `frame.top` _Readonly_
A `WebFrameMain | null` representing top frame in the frame hierarchy to which `frame`