Closed Bug 1346820 Opened 7 years ago Closed 7 years ago

[Top Tabs] Two tabs will be in focus when a new tab is opened via 'View later' or 'Push Notification'

Categories

(Firefox for iOS :: General, defect, P3)

All
iOS
defect

Tracking

()

VERIFIED FIXED
Tracking Status
fxios-v7.0 --- affected
fxios 8.0+ ---
fxios-v8.0 --- affected

People

(Reporter: SimonB, Assigned: maurya1985)

References

Details

(Whiteboard: [MobileCore])

Attachments

(1 file)

Build: 7.0b2011
Device: iPad Pro 
iOS: 10.2.1

Steps to reproduce:
1. Open Firefox
2. Go to youtube
3. Tap the 'Share' button
4. Tap on 'View later'
5. Background Firefox by pressing the Home button
6. Restore Firefox


Actual results:
- Two tabs will be in focus.

Expected results:
- Only the newly opened tab should be in focus. 

See video: https://www.youtube.com/watch?v=7SgE9dc4wWA
Blocks: 1305800
Assignee: nobody → maurya1985
Status: NEW → ASSIGNED
Simon, can you give me permissions to watch the youtube video? I'm also sending you an email.

I wanted to check out the video because when I try to reproduce, I see something else. I don't see both the tabs focused. I see one tab focused and the other tab locked (not tappable). Also, the other tab title is "New Tab".
Flags: needinfo?(simion.basca)
I have granted permission to the video.
Flags: needinfo?(simion.basca)
Thanks Simon. Yes, something is not right with the "View Later" behavior.

Here's my observation:
On restoring Firefox, the tab that we wanted to "View Later" gets loaded. But, the focus is on the previously focused tab prior to backgrounding Firefox. It's not on the newly created tab though as you had observed. If you try to open more tabs, the focus is on both the newly created tab and on the previously focused tab.
Priority: -- → P3
Whiteboard: [MobileCore]
Farhan, I couldn't test the XCUI ones because I'm unable to run test cases on Xcode. I haven't seen this behavior before. When I run TopTabsTest.swift, it builds alright, then tries running on the simulator, and fails reporting the following error:

Test target XCUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)

Wondering if others are seeing this issue or if it's just me. I have Xcode 8.2.1 running on macOS 10.11.5 (El Capitan).

The BuddyBuild logs also don't show the XCUI tests. Not sure if they were disabled from running.
Attachment #8853330 - Flags: review?(fpatel)
review ping
Flags: needinfo?(fpatel)
Left a comment on the PR.
Flags: needinfo?(fpatel)
Attachment #8853330 - Flags: review?(fpatel) → review-
The same issue can be reproduced by opening a new tab via push notification.
Summary: Two tabs will be in focused when a new tab is opened via 'View later' → [Top Tabs] Two tabs will be in focused when a new tab is opened via 'View later' or 'Push Notification'
Summary: [Top Tabs] Two tabs will be in focused when a new tab is opened via 'View later' or 'Push Notification' → [Top Tabs] Two tabs will be in focus when a new tab is opened via 'View later' or 'Push Notification'
Landed on master, uplifted to v8.x

The full reload is not ideal, but I think this is better than a UI regression that is very noticable. Thank you Maurya for contributing this patch.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Verifying as fix on 8.0 (4534).
Status: RESOLVED → VERIFIED
See Also: → 1382328
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: