Closed
Bug 1480504
Opened 7 years ago
Closed 7 years ago
Add @amazon and @google as internal search keywords
Categories
(Firefox :: New Tab Page, enhancement, P1)
Tracking
()
People
(Reporter: tspurway, Assigned: mkaply)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [fxsearch])
Attachments
(2 files)
We can do this by adding additional 'aliasMatches', which would allow us to add our keywords and would not collide with user defined search keywords.
The one edge case will will still need to take care of here would be if the user removes the actual search provider.
Updated•7 years ago
|
Priority: P1 → P2
Updated•7 years ago
|
Iteration: --- → 63.4 - Aug 20
Assignee | ||
Comment 2•7 years ago
|
||
> The one edge case will will still need to take care of here would be if the user removes the actual search provider.
The user can't remove them, they can only hide them, and I think the aliases should still work in that case.
Comment 3•7 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #2)
> The user can't remove them, they can only hide them
Aha! That would simplify things.
Any suggestions for a good way to convert existing search plugins to have the internal alias? We probably only want to do this for default/packaged plugins as potentially there could be alias conflicts if someone installed 2+ amazon search engines.
Assignee | ||
Comment 4•7 years ago
|
||
We can know if a search engine is built in, so we can check for that specifically. And there can't be another engine named Google.
I think what we should do is setup Google as is (since it will just work).
For Amazon, loop through all the engines, look for a built in engine whose name begins with "Amazon" and set the alias to that one.
I don't mind coding this up really quick. I had already been messing around with this.
Assignee | ||
Comment 5•7 years ago
|
||
Here's a quick first pass.
I didn't reuse _addEngine because we don't need the priorityMatches code.
I verified this works even when Google or Amazon is hidden.
If we wanted to make this more generic, we could have a mapping of some sort:
[
"Google": "@google",
"Amazon": "@amazon",
"eBay": "@ebay",
]
and then just match the first part of the left side against a search engine and add the right side as an alias.
Assignee | ||
Comment 6•7 years ago
|
||
Assignee | ||
Comment 7•7 years ago
|
||
I just pushed a more clever version that we can easily add new engines to.
There's probably a better way to create the initial map, but I couldn't thnk of anything in the moment.
It matches against the beginning of the engine name would should cover us for most cases.
Comment 8•7 years ago
|
||
Looks like the approach here should also fix bug 1480509 where this bug was made for existing profiles and the other bug is for a new profile, yeah?
Assignee: nobody → mozilla
Blocks: 1480509
Assignee | ||
Comment 9•7 years ago
|
||
This adds the internal shortcuts, but I think bug 1480509 is about adding the actual tiles, right?
Reporter | ||
Updated•7 years ago
|
Priority: P2 → P1
Comment 11•7 years ago
|
||
Comment on attachment 8997157 [details]
Bug 1480504 - Add internal aliases for common engines.
Ed Lee :Mardak has approved the revision.
https://phabricator.services.mozilla.com/D2681
Attachment #8997157 -
Flags: review+
Comment 12•7 years ago
|
||
Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/2ab02d99fe7e
Add internal aliases for common engines. r=Mardak
Comment 13•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Comment 14•7 years ago
|
||
status-firefox62:
--- → fixed
Updated•7 years ago
|
Flags: qe-verify+
Comment 15•7 years ago
|
||
There are some extra scenarios that could affect this feature:
- if a user wants to search for the "@amazon" or "@google" strings is there any way to cancel it out? *the user would have to open the search engine and re-input the strings;
- with "@amazon" or "@google" in the awesome-bar pressing CTRL+ENTER brings up the log in to the site(with username) confirmation window;
Do we consider any of these 2 blockers for the current implementation or should we treat them in separate threads/bugs?
Flags: needinfo?(mozilla)
Comment 16•7 years ago
|
||
Verified on MacOS 10.9, Ubuntu 16.04LTS, Win 10x64 for both 62.0b18 and 63.0a1 (2018-08-19).
Would address the issues in their own threads + the extra one.
Updated•7 years ago
|
Flags: qe-verify+
Updated•7 years ago
|
Assignee | ||
Comment 17•7 years ago
|
||
These issues are addressed in separate bugs.
Flags: needinfo?(mozilla)
Updated•6 years ago
|
Component: Activity Streams: Newtab → New Tab Page
You need to log in
before you can comment on or make changes to this bug.
Description
•