html/browsers/the-window-object/accessing-other-browsing-contexts/

12 / 15 WPT subtests passing

Failed
3
Timed out
0
Not run
0
Test files
5
Blocking files
0

Chrome 12 / 15 WPT subtests passing on the same files, none blocking

Tests

5 test files here

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
indexed-browsing-contexts-01.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. The window's length must return the number of child browsing contexts(in iframe)
  2. The window's length must return zero if it has no child browsing context
  3. The window's length must return the number of child browsing contexts
indexed-browsing-contexts-02.html1 / 3 passingChrome 1 / 32 failedWith failures
Standing
With failures runner status OK
Chrome
With failures 1 / 3 WPT subtests passing runner status OK
  1. FAILAccessing child browsing contexts 1
    assert_equals: The top browsing context should have 3 child browsing contexts. expected 3 but got 1
  2. FAILAccessing child browsing contexts 3
    assert_equals: The top browsing context should have 3 child browsing contexts. expected 3 but got 1
1 passing subtest
  1. Accessing child browsing contexts 2
indexed-browsing-contexts-03.html0 / 1 passingChrome 0 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Exempt 0 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate: Crane follows the browser majority

an <object> that is not being rendered (a display:none ancestor) shows its fallback and has no content window (HTML's object steps), so window[0] is the iframe's, as in Chrome and Safari; only Firefox gives the hidden object a browsing context

Crane matches
Chrome, Safari
Chrome
wpt.fyi run 4786307730243584: 0/1 (Chrome 157, 2358bd4835)
Firefox
wpt.fyi run 4877168468033536: 0/1 (Firefox 160, 2358bd4835)
Safari
wpt.fyi run 6479119966273536: 0/1 (Safari 27.2, 2358bd4835)
Revisit
when Chrome, Firefox or Safari changes its result on a newer aligned wpt.fyi run, or Crane's result moves
  1. FAILIndexed child browsing contexts
    assert_equals: The first child browsing context's container should be the object element. expected null but got object "[object Window]"
iterator.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. window[@@iterator]
window_length.html7 / 7 passingChrome 7 / 70 failedClean
Standing
Clean runner status OK
Chrome
Clean 7 / 7 WPT subtests passing runner status OK
7 passing subtests
  1. No child browsing contexts
  2. iframe not inserted into the document
  3. One iframe inserted into the document
  4. Child browsing context has a child browsing context
  5. window.length in child frame
  6. Opened window
  7. Iframe in opened window

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.