Open Bug 1346157 Opened 8 years ago Updated 2 years ago

Navigation back and forward does not keep the mobile or desktop view selected

Categories

(Firefox for iOS :: Build & Test, defect, P3)

Other
iOS
defect

Tracking

()

REOPENED
Tracking Status
fxios 9.0 ---

People

(Reporter: isabel_rios, Unassigned)

Details

(Whiteboard: [MobileCore][papercut])

Attachments

(1 file)

According to previous UITest defined 
https://github.com/mozilla-mobile/firefox-ios/blob/master/UITests/NavigationTests.swift#L184

The expected behaviour is: 
1. Load first URL and ensure that we are on the mobile site initially
2. Navigate to second URL and ensure that we are still on the mobile site
3. Request desktop site and ensure that we get it
4. Navigate back and ensure that we are on the mobile site again
5. Navigate forward and ensure that we are on the desktop site again

This test is currently deactivated and would like to reactivate so that it runs as XCUITests, but the behaviour observed is different.

On Step 5, the url is shown again in mobile view. So, navigating back and forward does not keep this option selected previously.

Not sure if something has changed or if that depends on the website (I've tried with a few). 
Could you please shed some light on this so that the test can be written acording to the expected behaviour?

Thanks!
Flags: needinfo?(fpatel)
The urls tested are: 
First url: "addons.mozilla.org".
Second url: "linkedin.com", "twitter.com", "amazon.com"

Nom to triage to check whether this is expected behaviour or there is an issue here.
Thanks!
tracking-fxios: --- → ?
Yea the test is correct. The behavior should be preserved between sites when going back/forward.
Flags: needinfo?(fpatel)
So, looks there is an issue. Thanks for confirming it! Attaching a video file with current behaviour.
Can we test this in an older iOS relaase? 9.x to find out if this is WebKit related?
Flags: needinfo?(irios.mozilla)
Tested on simulator 9.2. Same behaviour observed.

More details about the issue. The mobile view is not kept either when coming from an website that has changed to desktop view.
1. Load first URL and ensure that we are on the mobile site initially
2. Navigate to second URL and ensure that we are still on the mobile site
3. Go back to first url and select desktop view
4. Go forward to second url

Expected
4. Second url should be shown in mobile view but it is shown in desktop view. Looks that changing the first webiste to desktop and going forward to the second website does not keep the mobile view either.
Flags: needinfo?(irios.mozilla)
Priority: -- → P3
Whiteboard: [MobileCore]
Whiteboard: [MobileCore] → [MobileCore][papercut]
I am no longer reproducing this issue on devices running iOS 10.3.x on master 8446ac3c3b8. Feel free to re-open if this issue is encountered again.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Reopening because the automated test fails due to this bug and manually can reproduce it following the steps in comment #5.
The test will be disabled while the bug is open, agree on the priority, is not a critical one.
Thanks
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.