Search hand-off in Activity Stream
Categories
(Firefox :: Messaging System, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: k88hudson, Assigned: rrosario)
References
(Depends on 2 open bugs, Blocks 3 open bugs)
Details
Attachments
(1 file)
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Reporter | ||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Updated•6 years ago
|
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Reporter | ||
Comment 9•6 years ago
|
||
Reporter | ||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Assignee | ||
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
Comment 17•6 years ago
|
||
Assignee | ||
Comment 18•6 years ago
|
||
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 21•6 years ago
|
||
Comment 22•6 years ago
|
||
Assignee | ||
Comment 23•6 years ago
|
||
Comment 24•6 years ago
|
||
Assignee | ||
Comment 25•6 years ago
•
|
||
(In reply to Eitan Isaacson [:eeejay] from comment #8)
Oh, I forgot to mention, in my proposed implementation, the AS search field
would be implemented a <button>, but styled as a field.
By changing the <input type="text".../> to a <button/>, we lost the ability to middle click to paste or right click to get the context menu specific for text boxes. See Bug 1518197 and Bug 1518301, for example.
Any thoughts on that? Ideas to workaround?
Comment 26•6 years ago
|
||
(In reply to Ricky Rosario [:rrosario, :r1cky] from comment #25)
(In reply to Eitan Isaacson [:eeejay] from comment #8)
Oh, I forgot to mention, in my proposed implementation, the AS search field
would be implemented a <button>, but styled as a field.By changing the <input type="text".../> to a <button/>, we lost the ability to middle click to paste or right click to get the context menu specific for text boxes. See Bug 1518197 and Bug 1518301, for example.
Any thoughts on that? Ideas to workaround?
Yikes. Yeah, I guess faking an input has its limits. I can think of a solution for those issues, but others might crop up as well. Here is a workaround:
- Make the button
contenteditable
. - Listen for
paste
events,preventDefault()
,stopPropogation()
, and send theirclipboardData
to awesomebar.
If you do the above, you can get rid of the ctrl+v listener that's there, since the paste
listener should handle it.
Comment 27•6 years ago
|
||
(In reply to Eitan Isaacson [:eeejay] from comment #26)
- Make the button
contenteditable
.
The problem with this is that it will expose the button as editable text (editable state) to accessibility. That means, for example, that NVDA will switch to focus mode (to allow for interaction) when you press enter on the button instead of clicking it. There's currently no way to prevent this, although various parties have encountered this problem and there has been some discussion about having an aria-editable="false" or similar.
Comment 28•6 years ago
|
||
(In reply to James Teh [:Jamie] from comment #27)
(In reply to Eitan Isaacson [:eeejay] from comment #26)
- Make the button
contenteditable
.The problem with this is that it will expose the button as editable text (editable state) to accessibility. That means, for example, that NVDA will switch to focus mode (to allow for interaction) when you press enter on the button instead of clicking it. There's currently no way to prevent this, although various parties have encountered this problem and there has been some discussion about having an aria-editable="false" or similar.
That's a good point. It would defeat the purpose of making it a button. I dare say you can have a hack where the actual contenteditable element is inside the button and aria-hidden.
Comment 29•6 years ago
|
||
Messed around with a bit, and yeah, that could work. Although it would be going down the deep end..
This would make it so that mouse users can right-click on the button and get the edit actions, while keyboard users would not (and screen readers would present it as a button).
- I would add another child div to the
<button>
element:
<div class="fake-editable" tabindex="-1" aria-hidden="true" contenteditable=""></div>
- CSS:
.fake-editable:focus {
outline: none;
caret-color: transparent;
}
.fake-editable {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
- Add a
paste
listener to that element to intercept pastes and send them to the awesomebar.
Assignee | ||
Comment 30•6 years ago
|
||
(In reply to Eitan Isaacson [:eeejay] from comment #29)
I'll try this out today. Thanks a bunch!
Comment 31•6 years ago
|
||
Hi, thanks for this feature. Something important was missing here, what Chrome's NTP also can: Pressing the ESC-Key should bring back the Search Bar on Firefox NTP. Is this already a known issue or should I file a new one. Thanks.
Comment 32•6 years ago
|
||
Looks like the behavior in chrome is to clear out the address bar but focus still remains there. Visually the in-content search box does reappear, so I guess it's more of a click target reminder (hey you can click here to.. move focus back to where it already is in the address bar)
Comment 33•6 years ago
|
||
(In reply to Ed Lee :Mardak from comment #32)
Looks like the behavior in chrome is to clear out the address bar but focus still remains there. Visually the in-content search box does reappear, so I guess it's more of a click target reminder (hey you can click here to.. move focus back to where it already is in the address bar)
Probably, yes. Can Firefox follow this behavior? That would be great.
Thanks in advance.
Assignee | ||
Comment 34•6 years ago
|
||
(In reply to Mehmet from comment #33)
Probably, yes. Can Firefox follow this behavior? That would be great.
I guess we could listen for "Esc" and have the in-content search re-appear. Mind filing a bug for that? Thanks!
Comment 35•6 years ago
|
||
(In reply to Ricky Rosario [:rrosario, :r1cky] from comment #34)
Mind filing a bug for that? Thanks!
Done: bug 1519141. Thanks.
Updated•5 years ago
|
Description
•