Open Bug 1754429 Opened 3 years ago Updated 1 year ago

Make urlbar and searchbar "where to open" behavior consistent

Categories

(Firefox :: Address Bar, enhancement, P3)

Desktop
Unspecified
enhancement

Tracking

()

ASSIGNED

People

(Reporter: aminomancer, Assigned: aminomancer)

References

(Blocks 3 open bugs)

Details

Attachments

(1 obsolete file)

The urlbar, searchbar, and one-offs use different methods to determine where a result should be opened (which is based on user preferences and keyboard modifiers). Consolidating them into one helper function (or at least making them identical) will remove some inconsistent behavior in edge cases and simplify proposed changes discussed in bug 1753863 and bug 1753878.

Blocks: 1754432
Blocks: 1754427

The urlbar, searchbar, and search one-offs currently have different
approaches to determining where a result should be opened based on
prefs and keyboard modifiers. This patch consolidates the behaviors
into a single helper function and resolves a subtle bug that resulted
from the old "where to open" behavior, wherein Ctrl+clicking a one-off
search button would open a new blank tab only to enter search mode.
This should pave the way for bug 1754432 and bug 1754427, as we can
implement the proposed pref(s) in the new helper function and apply the
same consistent behavior to hold the urlbar/search results views open.
This also adds basic testing for the whereToOpenResult method in both
urlbar and searchbar. The tests will need to be adjusted/expanded when
the relevant prefs are changed, but for now this should protect against
regressions directly caused by this patch.

Assignee: nobody → shmediaproductions
Status: NEW → ASSIGNED
Attachment #9263213 - Attachment description: Bug 1754429 - Consolidate urlbar and search "where" behavior. r=mak,adw → WIP: Bug 1754429 - Consolidate urlbar and search "where" behavior. r=mak,adw
Attachment #9263213 - Attachment description: WIP: Bug 1754429 - Consolidate urlbar and search "where" behavior. r=mak,adw → Bug 1754429 - Consolidate urlbar and search "where" behavior. r=mak,adw

Sorry, there was a problem with the detection of inactive users. I'm reverting the change.

Assignee: nobody → shmediaproductions
Status: NEW → ASSIGNED
Attachment #9263213 - Attachment is obsolete: true
Severity: -- → N/A
Type: task → enhancement
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: