gecko-dev/browser
Luca Greco 87647faa54 Bug 1724205 - Fix issue on restoring private tabs discarded while being created. r=Gijs,mixedpuppy
When an extension does call tabs.discard earlier in the tab creation (e.g. when the extension calls
tabs.discard from inside a tabs.onUpdated listener), when the tab is activated (e.g. by selecting
the non-currently active lazified tab) Firefox is expected to restore it to the webpage url that
was being loaded.

This was already working as expected on non-private tabs, where the expected tab url was stored
in the TabStateCache as the userTypedValue (which seems to be part of a fix also related to
tabs.discard and landed in Firefox 62 from Bug 1422588).

It didn't work yet for private tabs, because for a private tab we are storing `{isPrivate: true}`
into the TabStateCache as soon as we are creating the tab, and so the change to SessionStore
resetBrowserToLazyState applied from Bug 1422588 had no effect for the private tabs
(due to the check for an existing cached entry for the same tab).

This patch applies a small change to ensure we are caching the userTypedValue set on the browser
element if one is not already stored in the TabStateCache, and adds an additional test case
to browser_ext_tabs_discarded.js which cover the expected behavior (and fails as expected
without a fix for the underlying issue).

Differential Revision: https://phabricator.services.mozilla.com/D122370
2021-08-13 17:27:32 +00:00
..
actors Bug 1719110 - Don't use sync IPC to show suggestion by spellchecker. r=Gijs 2021-08-10 03:55:25 +00:00
app Bug 1702715 - [devtools] Enable server side target switching. r=bomsy,Honza,jdescottes,ladybenko. 2021-08-13 16:43:02 +00:00
base Bug 1725388 - Remove pref/envvars that can disable WebRender. r=jrmuizel 2021-08-12 20:28:53 +00:00
branding Bug 1724885 - Fix broken icons; differentiate Beta. r=mhowell 2021-08-12 16:18:32 +00:00
components Bug 1724205 - Fix issue on restoring private tabs discarded while being created. r=Gijs,mixedpuppy 2021-08-13 17:27:32 +00:00
config Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-08-09 16:20:45 +00:00
docs Bug 1721647: Add a stub page data service API to enable parallel development. r=mak 2021-07-26 18:23:06 +00:00
extensions Bug 1723950 - Shim more of the stubbed-out Optimizely API in its SmartBlock shim to fix more site breakage; r=denschub,webcompat-reviewers 2021-08-09 17:58:12 +00:00
fonts Bug 1714632 - Update bundled TwemojiMozilla font to 0.6.0 (Twemoji 13.1). r=lsalzman 2021-07-16 23:04:00 +00:00
fxr Bug 1704970 - Move fxr's refresh icon to its own assets directory. 2021-07-09 20:07:08 +00:00
installer Bug 1724885 - Fix broken icons; differentiate Beta. r=mhowell 2021-08-12 16:18:32 +00:00
locales Bug 1592682 - Add Section Headers in login list for date and alert sorts. r=jaws,tgiles,fluent-reviewers 2021-08-13 15:16:55 +00:00
modules Bug 1718435 - follow-up: clean up callsite of clear recent history window that passes nsISupports-y arguments, r=mconley 2021-08-09 19:26:18 +00:00
themes Bug 1724878 - Apply fill:currentColor to #urlbar-search-mode-indicator-close. r=dao 2021-08-13 14:05:11 +00:00
tools/mozscreenshots Bug 1719463 - Part 11: Remove the Help button from the pre-proton appMenu view. r=Gijs 2021-08-10 05:29:34 +00:00
.eslintrc.js Bug 1515695 - Remove Task.jsm. r=florian,jdescottes 2021-06-17 08:28:02 +00:00
app.mozbuild
build.mk
confvars.sh
defs.mk
l10n-registry.manifest
LICENSE
Makefile.in
moz.build Bug 1687777 - Schedule OS-level --backgroundtask backgroundupdate on Windows. r=mossop,bytesized,flod 2021-03-27 20:43:26 +00:00
moz.configure