gecko-dev/browser
Gijs Kruitbosch 3d859095f0 Bug 1805678 - ensure bookmark menu button submenus don't reuse root/view element references, r=mak
Only the bookmarks menu button is doing this peculiar re-using of
options.

I tried various fixes: keeping the inheritance but replacing only the
rootElt/viewElt (and using Object.assign to clone the options so modifications
don't 'transmit' to the ancestor menus) but it was messy and net code increase
for a pretty crufty UI surface. I also wasn't sure if that would end up
negatively influencing (now or in the future) e.g. menus shown from the main
bookmarks toolbar view (which would show up as a 'parent' view for the menus
we open from there), and thought that reusing the options was likely to cause
further confusion in future as well, should we add more, uh, options, to them.

So in the end I stuck with Keeping It Simple - I just repeat the one-off
repeating entry class. I'm not even sure how needed this is - in particular,
I wonder why we don't need it for other submenus for 'real' bookmark folders!
But I didn't investigate this too much. If you're sure that we can get rid of
some more of it, happy to do that in a followup.

Note that the addition of _init() was not ultimmately needed to fix this bug
(I think), but it brought the initialization sequence and when we set
`_placesView` more in line with what we did before and what I already did for
`PlacesToolbar`, so that seemed like a good thing to avoid further/other issues.

Differential Revision: https://phabricator.services.mozilla.com/D164756
2022-12-16 08:06:07 +00:00
..
actors Bug 1800149 - Part 2: Stop sending some values from a content process in ClickHandler, r=Gijs 2022-12-13 18:35:18 +00:00
app Bug 1800923 Not able to import data from Opera/Vivaldi on first run migration. r=mconley 2022-12-15 19:53:48 +00:00
base Bug 1805678 - ensure bookmark menu button submenus don't reuse root/view element references, r=mak 2022-12-16 08:06:07 +00:00
branding
components Bug 1805678 - ensure bookmark menu button submenus don't reuse root/view element references, r=mak 2022-12-16 08:06:07 +00:00
config Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-12-12 14:52:47 +00:00
docs Bug 1802961 - Generate documentation for the browser/components/migration component. r=kpatenio 2022-12-06 17:50:40 +00:00
extensions Bug 1804895 - Update setMuted method for Hulu video wrapper to only toggle when setting a new muted state. r=pip-reviewers,mhowell 2022-12-15 15:45:07 +00:00
fonts
fxr
installer Bug 1804661 - Convert browser/components/BrowserContentHandler.jsm to an ES module. r=Gijs 2022-12-12 14:59:18 +00:00
locales no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE 2022-12-16 06:59:33 +00:00
locales-preview Bug 1801314 - Add initial infrastructure for a migration wizard reusable component. r=Gijs,kpatenio,NeilDeakin,niklas,mstriemer 2022-12-06 17:50:38 +00:00
modules Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers 2022-12-15 03:11:55 +00:00
themes Backed out changeset ad94b64c18cb (bug 1751763) for causing mochitests failures on browser_startup_images.js. CLOSED TREE 2022-12-13 10:29:08 +02:00
tools/mozscreenshots Bug 1541508 - Use Services.env in browser/ r=mossop 2022-11-25 19:09:06 +00:00
.eslintrc.js
app.mozbuild
build.mk
confvars.sh
defs.mk
l10n-registry.manifest
LICENSE
Makefile.in
moz.build
moz.configure Bug 1802233 - target_is_linux_or_wasi was not meant to include Android. r=firefox-build-system-reviewers,ahochheiden 2022-11-24 00:46:13 +00:00