gecko-dev/dom/tests/browser
Tom Tung 45a97b5b83 Bug 1654080 - Use PBackground for syncing SessionStorageCache and use LSWriteOptimizer to send data changes; r=dom-workers-and-storage-reviewers,janv,nika
This patch does:
- Use LSWriteOptimizer
- Remove SessionStorageService since it's unused.
- Move IPC from PContent to PBackground
(by SessionStorageManager{Child, Parent} and SessionStorageCache{Child, Parent}).
- Extract SessionStorageManagerBase and add PBackgroundSessionStorageManager.
- Expose a getter function to get a BackgroundParentManager for top context id
on the parent.

IPC
- Before this patch:
  - Copy from parent while loading a document.
    - Mark cache entry on the parent process as loaded by the child id.
  - Update change on checkpoint.
  - Unmark cache entry on the parent process as unloaded for the child id while
  the parent actor is destorying.
- After this patch:
  - Sync IPC load in the first SessionStorage operation.
  - Update change on checkpoint

`BackgroundSessionStorageManager`'s lifecycle on the parent process.
- Create by `SessionStorageManagerParent` and register to the `sManagers`.
- Hold by `SessionStorageManagerParent` and `sManagers`.
- Remove from the `sManagers` while the corresponding `BrowsingContext` is
destructed (on the parent process).

Depends on D89341

Differential Revision: https://phabricator.services.mozilla.com/D89342
2020-10-14 00:19:33 +00:00
..
perfmetrics Bug 1643075, removed unused message manager usage from browser_test_performance_metrics.js, r=tarek 2020-06-04 00:07:25 +00:00
.eslintrc.js
beforeunload_test_page.html
browser.ini Bug 1666843 - Clear mFocusedWindow while burring; r=hsivonen 2020-10-12 11:58:50 +00:00
browser_ConsoleAPITests.js
browser_ConsoleAPI_originAttributes.js Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski 2020-07-10 23:58:28 +00:00
browser_ConsoleStorageAPITests.js Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo 2020-08-17 20:20:50 +00:00
browser_ConsoleStoragePBTest_perwindowpb.js Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo 2020-08-17 20:20:50 +00:00
browser_allocateGigabyte.js
browser_autofocus_background.js
browser_autofocus_preference.js
browser_beforeunload_between_chrome_content.js
browser_bug396843.js
browser_bug1004814.js Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski 2020-07-10 23:58:28 +00:00
browser_bug1008941_dismissGeolocationHanger.js
browser_bug1236512.js
browser_bug1238427.js
browser_bug1316330.js
browser_bug1563629.js
browser_cancel_keydown_keypress_event.js
browser_focus_steal_from_chrome.js
browser_focus_steal_from_chrome_during_mousedown.js
browser_frame_elements.html
browser_frame_elements.js Bug 1647438: Remove nsIDOMWindowUtils.containerElement. r=nika 2020-07-02 15:03:44 +00:00
browser_hasbeforeunload.js Bug 1655866: Part 5 - Use native PermitUnload implementation from front-end code. r=nika,mconley 2020-09-21 22:41:04 +00:00
browser_keypressTelemetry.js
browser_largeAllocation_non_win32.js
browser_largeAllocation_win32.js
browser_localStorage_e10s.js Bug 1464542: Part 3b - Add existing Services.jsm registrations to the new services cache. r=mccr8,geckoview-reviewers,agi 2020-07-09 21:42:25 +00:00
browser_localStorage_privatestorageevent.js
browser_localStorage_snapshotting_e10s.js Bug 1464542: Part 3b - Add existing Services.jsm registrations to the new services cache. r=mccr8,geckoview-reviewers,agi 2020-07-09 21:42:25 +00:00
browser_navigate_replace_browsingcontext.js Bug 1610850 -Fix lint failure a=lint-fix 2020-03-26 20:29:47 +02:00
browser_noopener.js
browser_noopener_null_uri.js
browser_persist_cookies.js Bug 1634305 - use BEHAVIOR_REJECT_TRACKER to run test; r=baku 2020-05-04 19:04:23 +00:00
browser_persist_cross_origin_iframe.js Bug 1576188 - Test that save-as works for cross process frames. r=peterv 2020-04-27 05:41:27 +00:00
browser_persist_image_accept.js Bug 1641208 - `Accept` header does not include `image/avif` even when `image.avif.enable` is set. r=mattwoodrow,aosmond,necko-reviewers,valentin 2020-06-01 22:21:05 +00:00
browser_persist_mixed_content_image.js
browser_pointerlock_warning.js Bug 1664952, move the pointer lock warning handling into a separate actor that applies to subframes, and move origin determination into parent, r=Gijs 2020-09-22 08:51:57 +00:00
browser_sessionStorage_navigation.js Bug 1654080 - Use PBackground for syncing SessionStorageCache and use LSWriteOptimizer to send data changes; r=dom-workers-and-storage-reviewers,janv,nika 2020-10-14 00:19:33 +00:00
browser_test_focus_after_modal_state.js Bug 1640240, remove message manager usage from browser_test_focus_after_modal_state.js, r=smaug 2020-05-22 19:03:02 +00:00
browser_test_new_window_from_content.js Bug 1663500 - Revert bug 1661643 change and resurrect browser.link.open_newwindow=1. r=Gijs,preferences-reviewers 2020-09-08 12:09:43 +00:00
browser_test_toolbars_visibility.js
browser_unlinkable_about_page_can_load_module_scripts.js
browser_wakelock.js
browser_windowProxy_transplant.js Bug 1654922 - Part 1: Remove DocumentChannel pref usage from tests and document navigation code, r=mattwoodrow 2020-08-01 16:36:12 +00:00
browser_xhr_sandbox.js
dummy.html
dummy.png
file_empty.html Bug 1660485 - Add a test to veirfy the SessionStorage for a tab is preserved during navigation; r=nika 2020-08-27 15:40:47 +00:00
file_load_module_script.html
file_module_loaded.js
file_module_loaded2.js
file_postMessage_parent.html Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo 2020-08-17 20:20:50 +00:00
focus_after_prompt.html
geo_leak_test.html
helper_largeAllocation.js Bug 1508306 - Part 2: Fix Large-Allocation tests for new changes, r=mattwoodrow 2020-06-15 23:24:09 +00:00
helper_localStorage_e10s.js
image.html Bug 1576188 - Test that save-as works for cross process frames. r=peterv 2020-04-27 05:41:27 +00:00
mimeme.sjs
page_localstorage_e10s.html
page_localstorage_snapshotting_e10s.html
page_privatestorageevent.html
position.html
prevent_return_key.html
set-samesite-cookies-and-redirect.sjs
test-console-api.html
test_bug1004814.html
test_largeAllocation.html
test_largeAllocation.html^headers^
test_largeAllocation2.html
test_largeAllocation2.html^headers^
test_largeAllocationFormSubmit.sjs
test_mixed_content_image.html
test_new_window_from_content_child.html
test_noopener_source.html
test_noopener_target.html
worker_bug1004814.js