Closed Bug 1598107 Opened 5 years ago Closed 5 years ago

onResultPicked needs to indicate it's handling user input

Categories

(Firefox :: Address Bar, task, P1)

task
Points:
1

Tracking

()

RESOLVED FIXED
Firefox 72
Iteration:
72.3 - Nov 18 - Dec 1
Tracking Status
firefox72 --- fixed

People

(Reporter: adw, Assigned: adw)

References

Details

Attachments

(1 file)

We added requireUserInput to some of the experiment APIs we're working on. These APIs will be called by the interventions extension in its onResultPicked listener. When I test my WIP extension, I get an error: "may only be called from a user input handler". We need to indicate that onResultPicked is fired as the result of user input. Fortunately it's easy: We just need to pass inputHandling=true to new EventManager.

Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4126c23bb67c Set inputHandling=true for the browser.urlbar.onResultPicked event r=mak,mixedpuppy
Backout by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/52b260c76e56 Backed out changeset 4126c23bb67c for causing browser chrome failures on browser_bug399606.js. CLOSED TREE
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8acdcbadf0e2 Set inputHandling=true for the browser.urlbar.onResultPicked event r=mak,mixedpuppy
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: