gecko-dev/browser
Marco Bonardo 034a395cfb Bug 1863797 - Frequent failures in browser_schemeless.js due to UrlbarView.selectedElement removed from DOM. r=adw
#selectedElement may end up pointing to disconnected nodes. And so the public
.selectedElement getter.
This is how it was happening: a first call to onQueryResults adds and selects a
heuristic result. Then a second call to onQueryResults brings a new heuristic
result that requires new content (not compatible with the previous one), so the
old heuristic is emptied out, and new DOM is generated.
Because the code in onQueryResults relies on .selectedElement, at the second
invokation it thinks the selection is still valid, and doesn't select the new
heuristic. In reality .selectedElement at that time is pointing to a removed
DOM node.
The patch introduces a #rawSelectedElement and converts #selectedElement
into a getter.

Plus some minor logging improvements, and removing unused #mainContainer property.

Differential Revision: https://phabricator.services.mozilla.com/D195779
2023-12-13 10:05:26 +00:00
..
actors Bug 1867620 - Avoid updating the in-content search bar placeholders / text from multiple locations when in handoff mode. r=Mardak 2023-12-12 21:15:25 +00:00
app Bug 1869033 - [browser] Add a pref for browser.translations.newSettingsUI.enable. r=nordzilla 2023-12-12 15:23:07 +00:00
base Bug 1869389 - Provide urlbar-search-mode-indicator-close button with an accessible name. r=Jamie,fluent-reviewers,adw,bolsson 2023-12-13 02:31:15 +00:00
branding Bug 1677775 - reformat .mozbuild files with Black r=linter-reviewers,geckoview-reviewers,firefox-build-system-reviewers,ahal,glandium,owlish,sylvestre 2023-12-08 04:26:45 +00:00
components Bug 1863797 - Frequent failures in browser_schemeless.js due to UrlbarView.selectedElement removed from DOM. r=adw 2023-12-13 10:05:26 +00:00
config Bug 1866562 - Make MSVC-style architecture constants consistent in mingwclang builds. r=tjr 2023-12-11 11:01:34 +00:00
docs
extensions Bug 1867017 - P2. Update about:preferences strings of autofill section r=credential-management-reviewers,fluent-reviewers,dimi,flod 2023-12-12 16:02:07 +00:00
fonts
fxr
installer Bug 1867459 - Replace CPU_ARCH with TARGET_CPU. r=firefox-build-system-reviewers,sergesanspaille 2023-12-08 10:43:59 +00:00
locales no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE 2023-12-13 07:02:47 +00:00
locales-preview
modules Bug 1868580 - Remove PingCentre from Contextual Services r=nanj,perry.mcmanis 2023-12-11 19:21:37 +00:00
themes Bug 1491614 - Red text for download notification warnings should use --text-color-error. r=desktop-theme-reviewers,sfoster 2023-12-13 03:02:26 +00:00
tools/mozscreenshots
.eslintrc.js
app.mozbuild Bug 1677775 - reformat .mozbuild files with Black r=linter-reviewers,geckoview-reviewers,firefox-build-system-reviewers,ahal,glandium,owlish,sylvestre 2023-12-08 04:26:45 +00:00
build.mk
confvars.sh
defs.mk
l10n-registry.manifest
LICENSE
Makefile.in
moz.build
moz.configure