gecko-dev/dom/tests/browser
Andrew Sutherland 13e936cdab Bug 1345421 - Part 2: Ensure mOriginsHavingData is up-to-date via flushing. r=baku
The intermittent failure appears to have been due to mOriginsHavingData
only being updated when the db thread flushes.  The db thread has a
hard-coded 5 second flush interval.  It's likely that e10s startup was
previously so slow that we were assured of having a flush happen by the
time our fresh process created its parent actor.

We correct this by reliably ensuring a flush before spinning up the
process to check preload state.  We also ensure a flush at the start of
the test for our check that there was no preload in the initial cases.
We were actually more vulnerable in that case, I believe, but as a
browser chrome test, there were no other tests that would have used
content localStorage.

We additionally ensure that the content process has received and
populated mOriginsHavingData by having the tab opening process wait for
about:blank to load in the process before actually opening our origin.
Prior to this change we were depending on orderings that aren't
guaranteed.

--HG--
extra : rebase_source : 92d3c675cee82ffe8b562e83860601e0c6dc1a9b
2017-06-12 04:52:21 -04:00
..
beforeunload_test_page.html Bug 1336763 - Regression tests that exercise nsITabParent's hasBeforeUnload attribute. r=Ehsan 2017-04-14 18:32:37 -04:00
browser_allocateGigabyte.js Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
browser_autofocus_background.js Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
browser_autofocus_preference.js Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 1, r=qdot 2016-11-18 09:33:33 +01:00
browser_beforeunload_between_chrome_content.js Bug 1336763 - Update browser_beforeunload_between_chrome_content.js to use ContentTask. r=jessica 2017-04-27 12:46:59 -04:00
browser_bug396843.js
browser_bug1004814.js Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
browser_bug1008941_dismissGeolocationHanger.js Bug 1072859 - Disable Geolocation on non-secure origins. r=jdm 2017-03-08 16:45:44 -08:00
browser_bug1238427.js
browser_bug1316330.js Bug 1339543 part 2 eKeyPress event should have edit commands for all editor types when it's dispatched to a remote process r=smaug 2017-05-19 17:24:20 +09:00
browser_cancel_keydown_keypress_event.js Bug 1316330 - Cancel delayed keypress events if last keydown was canceled. r=smaug 2016-12-02 15:35:28 +08:00
browser_ConsoleAPI_originAttributes.js Bug 1322235: Part 6 - Replace AddonPolicyService with a stub implementation in ExtensionPolicyService. r=mixedpuppy,zombie 2017-06-03 17:12:14 -07:00
browser_ConsoleAPITests.js Bug 1357473 - Update Console to the latest spec - part 7 - test updated, r=bgrins 2017-04-20 13:52:43 +02:00
browser_ConsoleStorageAPITests.js Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
browser_ConsoleStoragePBTest_perwindowpb.js Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
browser_focus_steal_from_chrome_during_mousedown.js
browser_focus_steal_from_chrome.js Bug 1310403, Remove special mouse handling for buttons which fixes extra focus events, r=smaug 2016-11-11 10:30:36 -05:00
browser_frame_elements.html
browser_frame_elements.js Bug 1315905 - Cleanup Necko http security check - part 2 - tests, r=valentin 2016-11-17 14:53:30 +01:00
browser_hasbeforeunload.js Bug 1336763 - Regression tests that exercise nsITabParent's hasBeforeUnload attribute. r=Ehsan 2017-04-14 18:32:37 -04:00
browser_largeAllocation_non_win32.js Bug 1331087 - Part 1: Disable the largeAllocation header by default outside of Win32 builds, r=ehsan 2017-01-31 14:08:20 -05:00
browser_largeAllocation_win32.js Bug 1331087 - Part 1: Disable the largeAllocation header by default outside of Win32 builds, r=ehsan 2017-01-31 14:08:20 -05:00
browser_localStorage_e10s.js Bug 1345421 - Part 2: Ensure mOriginsHavingData is up-to-date via flushing. r=baku 2017-06-12 04:52:21 -04:00
browser_localStorage_privatestorageevent.js Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
browser_noopener.js Bug 1371349 - Request an even longer timeout for browser_noopener.js, r=smaug 2017-06-13 12:30:33 -04:00
browser_prerendering.js Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
browser_test__content.js
browser_test_focus_after_modal_state.js Bug 1316330 - Cancel delayed keypress events if last keydown was canceled. r=smaug 2017-02-03 05:16:00 -05:00
browser_test_new_window_from_content.js
browser_test_toolbars_visibility.js
browser_xhr_sandbox.js
browser.ini Bug 1365032 - Part 2: Add a test for propagating properties of windows across window.open, r=smaug 2017-06-07 12:55:07 -04:00
dummy.html
focus_after_prompt.html Bug 1316330 - Cancel delayed keypress events if last keydown was canceled. r=smaug 2017-02-03 05:16:00 -05:00
geo_leak_test.html
helper_largeAllocation.js Bug 1368364 - backout bug 1242505 as it causes browser/modules/ intermittent failures. r=paolo 2017-06-03 10:34:14 +02:00
page_localstorage_e10s.html Bug 1285898 - [e10s-multi] LocalStorage e10s Test. r=baku 2017-02-07 04:05:07 -05:00
page_privatestorageevent.html
position.html
prerender_target.html Bug 1330332 - Update prerendering tests to validate global history state, r=smaug 2017-01-19 15:26:18 -05:00
prerender.html Bug 1330332 - Update prerendering tests to validate global history state, r=smaug 2017-01-19 15:26:18 -05:00
prevent_return_key.html Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
test_bug1004814.html
test_largeAllocation2.html Bug 1329331 - Add tests for not leaving the Large-Allocation process when there are other toplevel windows, r=smaug 2017-01-16 14:03:09 -05:00
test_largeAllocation2.html^headers^ Bug 1329331 - Add tests for not leaving the Large-Allocation process when there are other toplevel windows, r=smaug 2017-01-16 14:03:09 -05:00
test_largeAllocation.html Bug 1347983 - Part 2: Add a test to ensure that forms submitted from a large-allocation page behave correctly, r=smaug 2017-03-16 14:32:30 -04:00
test_largeAllocation.html^headers^ Bug 1304140 - Part 2: Add tests for the Large-Allocation header, r=smaug 2016-10-31 16:38:54 -04:00
test_largeAllocationFormSubmit.sjs Bug 1347983 - Part 2: Add a test to ensure that forms submitted from a large-allocation page behave correctly, r=smaug 2017-03-16 14:32:30 -04:00
test_new_window_from_content_child.html
test_noopener_source.html Bug 1365032 - Part 2: Add a test for propagating properties of windows across window.open, r=smaug 2017-06-07 12:55:07 -04:00
test_noopener_target.html Bug 1365032 - Part 2: Add a test for propagating properties of windows across window.open, r=smaug 2017-06-07 12:55:07 -04:00
test-console-api.html Bug 1357473 - Update Console to the latest spec - part 3 - Console.groupEnd(), r=bgrins, r=nchevobbe 2017-04-18 10:04:00 +02:00
worker_bug1004814.js