GNOME Shell search provider creates unnecessary windows
Categories
(Firefox :: Shell Integration, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: nova.umar.acc, Assigned: bhearsum, NeedInfo)
References
Details
(Whiteboard: [fidedi-ope])
Attachments
(1 file)
Steps to reproduce:
Requirements: a system with the GNOME desktop environment.
- Open the GNOME Shell Overview.
- Write some text you wish to look up on a search engine on Firefox, e.g. "How to make brownies?".
- Along with information from other GNOME Shell search providers, a listing "Search the web for <insert thing you wrote>" appears.
- Click this listing provided by Firefox's GNOME Shell search provider.
Actual results:
A new Firefox window containing the searched text appears, even if an existing running Firefox instance exists.
Expected results:
If there is an existing running instance of Firefox, a new tab should be opened instead.
Reporter | ||
Comment 1•2 years ago
|
||
This issue can be fixed by adding the --new-tab
flag in line 357 of browser/components/shell/nsGNOMEShellDBusHelper.cpp
. Kudos to Sam Thursfield from GNOME Discourse for actually finding out the file name, line of code, and origin of the bug.
Comment 2•2 years ago
|
||
Setting this to Firefox: Shell Integration, if this is not the right component, please move it to a more appropriate one. Thanks!
Assignee | ||
Comment 3•2 years ago
|
||
Thank you so much for the detailed report and suggested fix! I threw together a build with the proposed fix - would you be willing to give it a try and see if it works for you? It's available here: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/cK5dMqqqTCu76MNiAm8upQ/runs/0/artifacts/public/build/target.tar.bz2
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
I was unable to get gnome searching working at all on my machine (perhaps it's broken on Ubuntu?), thus I was unable to verify this fix myself -- but it seems pretty straightforward and safe to take.
Updated•2 years ago
|
Comment 6•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•