Firefox · Toolkit
CVE-2025-5267
Logic Error in Toolkit
Overview
Low
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Changed Functions
| Function | Change | Notes |
|---|---|---|
iftoolkit/actors/AutoCompleteParent.sys.mjs |
modified | |
notifyListenerstoolkit/actors/AutoCompleteParent.sys.mjs |
modified |
Files Changed
toolkit/actors/AutoCompleteParent.sys.mjs
Patch
diff --git a/toolkit/actors/AutoCompleteParent.sys.mjs b/toolkit/actors/AutoCompleteParent.sys.mjs
index 4dd0292d364..dc0b634e040 100644
--- a/toolkit/actors/AutoCompleteParent.sys.mjs
+++ b/toolkit/actors/AutoCompleteParent.sys.mjs
@@ -8,6 +8,7 @@ const lazy = {};
ChromeUtils.defineESModuleGetters(lazy, {
GeckoViewAutocomplete: "resource://gre/modules/GeckoViewAutocomplete.sys.mjs",
+ clearTimeout: "resource://gre/modules/Timer.sys.mjs",
setTimeout: "resource://gre/modules/Timer.sys.mjs",
});
@@ -471,10 +472,19 @@ export class AutoCompleteParent extends JSWindowActorParent {
);
items.forEach(item => (item.disabled = true));
- lazy.setTimeout(
- () => items.forEach(item => (item.disabled = false)),
- popupDelay
- );
+ let timerId;
+ const delay = () => {
+ if (timerId) {
+ lazy.clearTimeout(timerId);
+ }
+ timerId = lazy.setTimeout(() => {
+ items.forEach(item => (item.disabled = false));
+ this.openedPopup?.removeEventListener("click", delay);
+ }, popupDelay);
+ };
+
+ this.openedPopup.addEventListener("click", delay);
+ delay();
}
notifyListeners() {
Loading diff…
References
On This Page