Copy / Cut options from context menu are available on empty searchbar
Categories
(Firefox :: Search, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox72 | --- | wontfix |
firefox73 | --- | wontfix |
firefox74 | --- | verified |
firefox75 | --- | verified |
People
(Reporter: csasca, Assigned: standard8)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
2.52 MB,
video/quicktime
|
Details | |
47 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
Affected versions
- Firefox 74.0a1
- Firefox 73.0b11
- Firefox 72.0
Affected platforms
- Windows 10 & 7
- macOS 10.13
- Ubuntu 18.04
Steps to reproduce
- Open Firefox and go to Options / Preferences
- Enable the search bar
- Right click on the added search bar
Expected result
- The copy / cut options are greyed out as there is no input text
Actual result
- The copy / cut options are available
Regression range
- I will see for a regression. On a look over, 69.0b8 seems to not be affected, but
71.0 is affected.
Additional notes
- The behavior can be seen in the attachment
- Context menu options both in pages and the search bar from toolbar are affected by this issue.
- A page affected by this is example.
- 68.4.2esr is affected too.
- If considered, a separate bug should be opened for the issue on pages, as opposed to just the search bar.
Comment 1•5 years ago
|
||
The regression window is likely really useful here.
Comment 2•5 years ago
•
|
||
It is intentional behavior for web page at least, see Bug 1271897 comment#5.
However, the context menu of the search bar is broken. i.e. Cut, Copy, Paste, Delete are always enabled. But Paste & Search is OK.
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=a4bfd6e22c412a65d558d46c6a3f19da14a03a85&tochange=9ec431469e3777c3c9675e7699a38e3155ada5dd
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Comment 3•5 years ago
|
||
Thanks Alice for looking for the regression range, and for the additional finds.
Updated•5 years ago
|
Comment 5•5 years ago
|
||
:ntim, per comment #2 your patch looks like it regressed this. Can you take a look please?
Updated•5 years ago
|
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Usually, editMenuOverlay.js or moz-input-box would handle this, but searchbar.js uses its own implementation to append its own menu items. Ideally, editMenuOverlay.js would provide a mechanism for this, which would allow both moz-input-box and searchbar.js to stop existing, but that's out of scope.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
Comment 9•5 years ago
|
||
Please nominate this for Beta uplift when you're comfortable doing so.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 10•5 years ago
|
||
Comment on attachment 9124450 [details]
Bug 1612122 - Set disabled state of searchbar context menu items.
Beta/Release Uplift Approval Request
- User impact if declined: Confusing state of context menu items on the search bar context menu.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See comment 0
- List of other uplifts needed: Bug 1615629
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small, focussed, change to how the search bar context menu is set up.
Note: Bug 1615629 is tier-2 test-only but useful to uplift at the same to avoid extra orange.
- String changes made/needed: None
Assignee | ||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment on attachment 9124450 [details]
Bug 1612122 - Set disabled state of searchbar context menu items.
On nightly for a week without regressions, uplift approved for 74.0b7, thanks.
Comment 12•5 years ago
|
||
Sheriffs, could you please also land the patch from bug 1615629 with a=test-only
? Otherwise, there will be a tier-2 test verify failure. Thank you!
Comment 13•5 years ago
|
||
bugherder uplift |
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Reproduced the issue on Windows 10/ MacOS 10.13 using Firefox 73.0 (20200207195153)
Verified fixed on Firefox Nightly 75.0a1 (20200223214228) and Firefox Beta 74.0b7 (20200221211950)
Description
•