Closed Bug 1595985 Opened 5 years ago Closed 5 years ago

[Nudges] Let extensions close the urlbar view

Categories

(Firefox :: Address Bar, task, P1)

task
Points:
2

Tracking

()

RESOLVED FIXED
Firefox 72
Iteration:
72.2 - Nov 4 - 17
Tracking Status
firefox72 --- fixed

People

(Reporter: adw, Assigned: adw)

References

Details

Attachments

(1 file)

When we show a nudge on google.com, the urlbar input should not be focused initially, and if the user doesn't focus the urlbar, then the view won't close normally due to the input's being blurred. The extension needs a way to close the view on its own. See my comments in https://phabricator.services.mozilla.com/D52612.

This is based on D52612

In case it's helpful, here's the current wip background script so you can see how it uses closeView and everything else: https://github.com/0c0w3/urlbar-tips-experiment/blob/wip/src/background.js

Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/73c69599b3f1 Add browser.urlbar.closeView webextension API. 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: