Closed
Bug 1405604
Opened 8 years ago
Closed 8 years ago
[Regression] The clipboard is incorrectly cleared after following specific steps
Categories
(Firefox for iOS :: General, defect, P1)
Tracking
()
VERIFIED
FIXED
People
(Reporter: SimonB, Assigned: justindarc)
References
Details
(Whiteboard: [Regression])
Attachments
(1 file)
Build: 21b363679
Device: iPhone 6S
iOS: 10.3.3
Steps to reproduce:
1. Go to Settings and turn Offer to Go to Copied link On
2. Open a new tab and go to youtube.com
3. Long tap on the URL bar and copy the link
4. Double tap on Home button and close Firefox
5. Re-open Firefox
6. Background Firefox by pressing the home button once
Actual results:
- The clipboard is cleared. This can be seen in the Today Widget or by trying to paste the previous copied link in the URL bar.
Expected results:
- The clipboard should not be cleared.
Note:
- Issue reproducible on both iOS 11.x and iOS 10.x
See video here:
- https://www.youtube.com/watch?v=xh4o8UY9azk
Updated•8 years ago
|
Summary: The clipboard is incorrectly cleared after following specific steps → [Regression] The clipboard is incorrectly cleared after following specific steps
Whiteboard: regression
| Assignee | ||
Updated•8 years ago
|
Updated•8 years ago
|
Whiteboard: regression → [Regression][ClipboardBar]
Updated•8 years ago
|
Whiteboard: [Regression][ClipboardBar] → [Regression]
Updated•8 years ago
|
Assignee: jhugman → nobody
Status: ASSIGNED → NEW
| Assignee | ||
Comment 1•8 years ago
|
||
Taking this since :jhugman is on PTO this week.
Assignee: nobody → jdarcangelo
Status: NEW → ASSIGNED
Priority: P2 → P1
| Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8921149 -
Flags: review?(rnewman)
Comment 3•8 years ago
|
||
Discussed on Slack, but in short: we shouldn't need to read the clipboard on exit at all. And, indeed, checking on exit is wrong.
We should:
1. Check the clipboard when we enter the foreground, and decide whether to show the toast.
2. Update our saved string from that value as we read it.
3. Update our saved string *when the user copies a URL within Firefox*.
then everything should work.
| Assignee | ||
Comment 4•8 years ago
|
||
Comment on attachment 8921149 [details] [review]
GitHub Pull Request
Carrying over R+ from Slack.
Attachment #8921149 -
Flags: review?(rnewman) → review+
| Assignee | ||
Comment 5•8 years ago
|
||
Landed on master:
https://github.com/mozilla-mobile/firefox-ios/commit/49b84434f60aa24782e43bb916b1173b6cfd166f
Landed on v10.x:
https://github.com/mozilla-mobile/firefox-ios/commit/1d048b52a49bd672e0f2de75fe6578f55a9a7e62
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 7•8 years ago
|
||
Verifying as fix on master d80fd66a7 and beta 10.0 (7473). The clipboard is no longer cleared after following the STR.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•