gecko-dev/docshell/test/navigation
Boris Zbarsky 2e5c884144 Bug 1489308 part 5. Align the work we do on document.open with the spec. r=mccr8,smaug
The main behavior changes are:

1) We no longer create a new Window when doing document.open().  We use the
same Window but remove all the event listeners on it and on the existing DOM
tree before removing the document's existing kids.

2) We no longer create a new session history entry.  The existing one always
gets replaced instead.

3) We now support document.open on documents that are not in a Window.

The reasons for the various test changes are as follows:

The change to browser_modifiedclick_inherit_principal.js is because we no
longer set the docshell to a wyciwyg URL when document.open() happens and the
test was depending on that to terminate.

browser_wyciwyg_urlbarCopying.js is being removed because it's trying to test
wyciwyg URIs, which no longer exist.

The changes in docshell/test/navigation are because document.open() no longer
affects session history.  One of the tests was testing the interactions there
and is being removed; another is being repurposed to just test that
document.open() does not affect history.length.

The change to test_x-frame-options.html is because document.open() now removes
event listeners on the window, which it didn't use to do (and in the specific
case in this test reused the existing inner too, so the listener was still
around in practice).  The new behavior matches other browsers.

The removal of test_bug172261.html is because document.open() no longer affects
session history, so you can't go back across it or forward to the "opened"
state, so the situation that test is trying to test no longer exists.

The changes to test_bug255820.html are because reloading a document after
document.open() will now just load the URL of the document that was the entry
document for the open() call, not reload the written content.  So there's not
much point testing reload behavior, and in this test it was just reloading the
toplevel test file inside the frames.

The change to test_bug346659.html is because now we no longer create a new
Window on document.open().

The change to test_bug1232829.html is because document.open() (implicit in this
test) no longer adds history entries, so the back() was just leaving the test
page instead of going back across the document.open().  The test is a
crashtest in practice, so might still be testing something useful about how
document.open() interacts with animations.

The change to test_bug715739.html is because the URL of the document after
document.open() is now the URL of the entry document, not a wyciwyg URL, so
reload() has different behavior than it used to.

The change to test_bug329869.html is because now when we go back we're
reloading the original document we had, not doing a wyciwyg load, and the
security info now doesn't include the untrusted script.

The changes to the wpt expectations are removing a bunch of expected failures
now that we pass those tests and disabling some tests that are fundamentally
racy and hence fail randomly.  The latter all have github issues filed for the
test problem.

The change to testing/web-platform/tests/common/object-association.js is fixing
tests that were not matching the spec (and were failing in other browsers).

The change to parser-uses-registry-of-owner-document.html is fixing tests that
were not matching the spec (and were failing in other browsers).

The change to document-write.tentative.html is because the test was buggy: it
was using the same iframe element for all its tests and racing loads from some
tests against API calls from other tests, etc.  It's a wonder it ever managed
to pass, independent of these patches (and in fact it doesn't pass according to
wpt.fyi data, even in Firefox).

The changes in html/browsers/history/the-history-interface are because
document.open() no longer adds history entries.  The test was failing in all
other browsers for the same reason.

The changes in html/browsers/history/the-location-interface are because
reloading a document.open()-created thing now loads the URL of the page that
was the entry document for the open() call.  The test was failing in all other
browsers.

The change to reload_document_open_write.html is because we now reload the url
of the document that entered the script that called open() when we reload, not
the written content.  Other browsers were failing this test too; Gecko with
the old document.open implementation was the only one that passed.

The change to http-refresh.py is to fix a test bug: it was not returning a
Content-Type header, so we were putting up helper app dialogs, etc.

The change to test_ext_contentscript.js is because we no create a new global
for document.open() calls.  Kris Maglione OKed this part.

Differential Revision: https://phabricator.services.mozilla.com/D17323

--HG--
extra : moz-landing-system : lando
2019-02-27 23:24:48 +00:00
..
.eslintrc.js Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (manual fixes) r=bzbarsky 2018-11-07 13:49:05 +00:00
NavigationUtils.js Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
blank.html
bluebox_bug430723.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
browser.ini
browser_bug343515.js Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
browser_test-content-chromeflags.js Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
bug343515_pg1.html
bug343515_pg2.html
bug343515_pg3.html
bug343515_pg3_1.html
bug343515_pg3_1_1.html
bug343515_pg3_2.html
file_bug386782_contenteditable.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug386782_designmode.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug462076_1.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug462076_2.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug462076_3.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug508537_1.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug534178.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug1300461.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug1300461_back.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug1300461_redirect.html
file_bug1300461_redirect.html^headers^
file_bug1326251.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug1326251_evict_cache.html Bug 1487296 - Merge nsISHistoryInternal into nsISHistory. r=nika 2018-08-30 11:37:40 +10:00
file_bug1364364-1.html Bug 1414136 - Fix test failures in session history relying on non-comformant Promise handling. r=sawang 2017-11-10 10:33:25 +08:00
file_bug1364364-2.html Bug 1364364 - Part 4: Add test case. r=smaug 2017-08-30 17:00:12 +08:00
file_bug1375833-frame1.html Bug 1375833 - Part 3: Add test case. r=smaug 2017-08-11 18:30:49 +08:00
file_bug1375833-frame2.html Bug 1375833 - Part 3: Add test case. r=smaug 2017-08-11 18:30:49 +08:00
file_bug1375833.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_bug1379762-1.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_contentpolicy_block_window.html
file_document_write_1.html Bug 1489308 part 5. Align the work we do on document.open with the spec. r=mccr8,smaug 2019-02-27 23:24:48 +00:00
file_fragment_handling_during_load.html
file_fragment_handling_during_load_frame1.html
file_fragment_handling_during_load_frame2.html
file_nested_frames.html Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
file_nested_frames_innerframe.html
file_scrollRestoration.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_shiftReload_and_pushState.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_static_and_dynamic_1.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (manual fixes) r=bzbarsky 2018-11-07 13:49:05 +00:00
file_triggeringprincipal_frame_1.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_triggeringprincipal_frame_2.html
file_triggeringprincipal_iframe_iframe_window_open_frame_a.html
file_triggeringprincipal_iframe_iframe_window_open_frame_a_nav.html
file_triggeringprincipal_iframe_iframe_window_open_frame_b.html
file_triggeringprincipal_parent_iframe_window_open_base.html
file_triggeringprincipal_parent_iframe_window_open_nav.html
file_triggeringprincipal_subframe.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_triggeringprincipal_subframe_nav.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
file_triggeringprincipal_window_open.html
frame0.html
frame1.html
frame2.html
frame3.html
goback.html
iframe.html
iframe_static.html
mochitest.ini Bug 1489308 part 5. Align the work we do on document.open with the spec. r=mccr8,smaug 2019-02-27 23:24:48 +00:00
navigate.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
navigation_target_popup_url.html Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
navigation_target_url.html Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
open.html Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
parent.html
redbox_bug430723.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_bug13871.html
test_bug270414.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_bug278916.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_bug279495.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_bug344861.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_bug386782.html Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
test_bug430624.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_bug430723.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_bug1364364.html Bug 1364364 - Part 4: Add test case. r=smaug 2017-08-30 17:00:12 +08:00
test_bug1375833.html Bug 1488321 - Fix up nsISHEntry.{index,getEntryAtIndex()}. r=nika 2018-09-05 09:02:37 +10:00
test_child.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_contentpolicy_block_window.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_grandchild.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_not-opener.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_opener.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_popup-navigates-children.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (manual fixes) r=bzbarsky 2018-11-07 13:49:05 +00:00
test_reserved.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_sessionhistory.html Bug 1489308 part 5. Align the work we do on document.open with the spec. r=mccr8,smaug 2019-02-27 23:24:48 +00:00
test_sibling-matching-parent.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_sibling-off-domain.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_triggeringprincipal_frame_nav.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (manual fixes) r=bzbarsky 2018-11-07 13:49:05 +00:00
test_triggeringprincipal_iframe_iframe_window_open.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_triggeringprincipal_parent_iframe_window_open.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00
test_triggeringprincipal_window_open.html Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky 2018-11-07 13:55:47 +00:00