Update the investigation, If we just close the tab, the mechanism works correctly. However, if the tab is closed by window.close(), we cannot finish the final TabState update. BrowserParent don't receive the IPC call(SendSessionStoreUpdate) from BrowserChild. https://searchfox.org/mozilla-central/rev/8a990595ce6d5ed07ace2d4d5d86cc69aec90bde/dom/ipc/BrowserChild.cpp#3823
Bug 1563171 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Update the investigation, If we just close the tab, the mechanism works correctly. However, if the tab is closed by window.close(), we cannot finish the final TabState update.
Update the investigation, If we just close the tab, the mechanism works correctly. However, if the tab is closed by window.close(), we cannot finish the final TabState update. The reason is we cannot get xulBrowserWindow at this time. https://searchfox.org/mozilla-central/rev/11712bd3ce7454923e5931fa92eaf9c01ef35a0a/dom/ipc/BrowserParent.cpp#2638