File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ function Window(options) {
61
61
// Set up the window as if it's a top level window.
62
62
// If it's not, then references will be corrected by frame/iframe code.
63
63
this . _parent = this . _top = this . _globalProxy ;
64
+ this . _frameElement = null ;
64
65
65
66
// List options explicitly to be clear which are passed through
66
67
this . _document = Document . create ( [ ] , {
@@ -122,6 +123,9 @@ function Window(options) {
122
123
get window ( ) {
123
124
return window . _globalProxy ;
124
125
} ,
126
+ get frameElement ( ) {
127
+ return window . _frameElement ;
128
+ } ,
125
129
get frames ( ) {
126
130
return window . _globalProxy ;
127
131
} ,
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ function loadFrame(frame) {
58
58
const contentWindow = contentDoc . _defaultView ;
59
59
contentWindow . _parent = parent ;
60
60
contentWindow . _top = parent . top ;
61
+ contentWindow . _frameElement = frame ;
61
62
contentWindow . _virtualConsole = parent . _virtualConsole ;
62
63
63
64
// Handle about:blank with a simulated load of an empty document.
You can’t perform that action at this time.
0 commit comments