I check the behavior of process switch by test_sessionStorageReplace.html. https://searchfox.org/mozilla-central/rev/b4f3ce16c5099cf068fb023341959a0457adec9e/dom/tests/mochitest/sessionstorage/test_sessionStorageReplace.html We can focus on the bottom of this test. 1. Open a new window with "http://example.org/tests/dom/tests/mochitest/sessionstorage/frameReplace.html?init&window" - https://searchfox.org/mozilla-central/rev/b4f3ce16c5099cf068fb023341959a0457adec9e/dom/tests/mochitest/sessionstorage/test_sessionStorageReplace.html#46 - (In frameReplace.html) We create three items in the sessionStorage. ("A":"1", "B":"2", "C":"3"). 2. Change the location to "http://example.com/tests/dom/tests/mochitest/sessionstorage/frameReplace.html?check&window" - https://searchfox.org/mozilla-central/rev/b4f3ce16c5099cf068fb023341959a0457adec9e/dom/tests/mochitest/sessionstorage/test_sessionStorageReplace.html#31 - (In frameReplace.html) Check if the items that are written in step 1 still exist. 3. Change the location to "http://example.org:80/tests/dom/tests/mochitest/sessionstorage/frameReplace.html?clean&" - https://searchfox.org/mozilla-central/rev/b4f3ce16c5099cf068fb023341959a0457adec9e/dom/tests/mochitest/sessionstorage/test_sessionStorageReplace.html#36 - (In frameReplace.html) Recheck and clean the sessionStorage 4. Close the window.
Bug 1656768 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I explain the behavior of process switch by test_sessionStorageReplace.html. https://searchfox.org/mozilla-central/rev/b4f3ce16c5099cf068fb023341959a0457adec9e/dom/tests/mochitest/sessionstorage/test_sessionStorageReplace.html We can focus on the bottom of this test. 1. Open a new window with "http://example.org/tests/dom/tests/mochitest/sessionstorage/frameReplace.html?init&window" - https://searchfox.org/mozilla-central/rev/b4f3ce16c5099cf068fb023341959a0457adec9e/dom/tests/mochitest/sessionstorage/test_sessionStorageReplace.html#46 - (In frameReplace.html) We create three items in the sessionStorage. ("A":"1", "B":"2", "C":"3"). 2. Change the location to "http://example.com/tests/dom/tests/mochitest/sessionstorage/frameReplace.html?check&window" - https://searchfox.org/mozilla-central/rev/b4f3ce16c5099cf068fb023341959a0457adec9e/dom/tests/mochitest/sessionstorage/test_sessionStorageReplace.html#31 - (In frameReplace.html) Check if the items that are written in step 1 still exist. 3. Change the location to "http://example.org:80/tests/dom/tests/mochitest/sessionstorage/frameReplace.html?clean&" - https://searchfox.org/mozilla-central/rev/b4f3ce16c5099cf068fb023341959a0457adec9e/dom/tests/mochitest/sessionstorage/test_sessionStorageReplace.html#36 - (In frameReplace.html) Recheck and clean the sessionStorage 4. Close the window.