@@ -3,7 +3,7 @@ test(t => {
3
3
t . add_cleanup ( ( ) => frame . remove ( ) ) ;
4
4
assert_equals ( frame . contentDocument . URL , "about:blank" ) ;
5
5
assert_equals ( frame . contentWindow . location . href , "about:blank" ) ;
6
- frame . contentDocument . open ( ) ;
6
+ assert_equals ( frame . contentDocument . open ( ) , frame . contentDocument ) ;
7
7
assert_equals ( frame . contentDocument . URL , document . URL ) ;
8
8
assert_equals ( frame . contentWindow . location . href , document . URL ) ;
9
9
} , "document.open() changes document's URL (fully active document)" ) ;
@@ -26,7 +26,7 @@ async_test(t => {
26
26
27
27
frame . onload = t . step_func_done ( ( ) => {
28
28
// Now childDoc is still active but no longer fully active.
29
- childDoc . open ( ) ;
29
+ assert_equals ( childDoc . open ( ) , childDoc ) ;
30
30
assert_equals ( childDoc . URL , blankURL ) ;
31
31
assert_equals ( childWin . location . href , blankURL ) ;
32
32
} ) ;
@@ -40,6 +40,9 @@ test(t => {
40
40
t . add_cleanup ( ( ) => frame . remove ( ) ) ;
41
41
const doc = frame . contentDocument ;
42
42
43
+ // We do not test for win.location.href in this test due to
44
+ // https://github.com/whatwg/html/issues/3959.
45
+
43
46
// Right now the frame is connected and it has an active document.
44
47
assert_equals ( doc . URL , "about:blank" ) ;
45
48
@@ -55,6 +58,9 @@ async_test(t => {
55
58
const frame = document . createElement ( "iframe" ) ;
56
59
t . add_cleanup ( ( ) => frame . remove ( ) ) ;
57
60
61
+ // We do not test for win.location.href in this test due to
62
+ // https://github.com/whatwg/html/issues/3959.
63
+
58
64
frame . onload = t . step_func ( ( ) => {
59
65
const doc = frame . contentDocument ;
60
66
// Right now the frame is connected and it has an active document.
0 commit comments