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)

All
iOS
defect

Tracking

()

VERIFIED FIXED
Tracking Status
fxios 10.0 ---
fxios-v10.0 --- verified
fxios-v11.0 --- verified

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
Summary: The clipboard is incorrectly cleared after following specific steps → [Regression] The clipboard is incorrectly cleared after following specific steps
Whiteboard: regression
Assignee: nobody → jhugman
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: regression → [Regression][ClipboardBar]
Whiteboard: [Regression][ClipboardBar] → [Regression]
Assignee: jhugman → nobody
Status: ASSIGNED → NEW
Taking this since :jhugman is on PTO this week.
Assignee: nobody → jdarcangelo
Status: NEW → ASSIGNED
Priority: P2 → P1
Attached file GitHub Pull Request
Attachment #8921149 - Flags: review?(rnewman)
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.
Comment on attachment 8921149 [details] [review] GitHub Pull Request Carrying over R+ from Slack.
Attachment #8921149 - Flags: review?(rnewman) → review+
Blocks: 1411976
Verifying as fix on master d80fd66a7 and beta 10.0 (7473). The clipboard is no longer cleared after following the STR.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: