Closed Bug 1315370 Opened 8 years ago Closed 8 years ago

Portrait sometimes shows navigation buttons in URL bar

Categories

(Focus-iOS :: General, defect, P1)

All
iOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
Iteration:
1.8

People

(Reporter: bnicholson, Assigned: bnicholson)

References

Details

(Whiteboard: [MobileAS])

Barbara reported an issue on her iPhone 7 where portrait was showing the back/forward/etc. buttons in the top URL bar (in addition to them being shown in the bottom toolbar). It sounds like the issue is intermittent, and I haven't been able to reproduce. Steps most welcome!
No luck hitting this -- maybe this got fixed already. Unassigning myself until we get another report.
Assignee: bnicholson → nobody
Status: ASSIGNED → NEW
Just hit this a few minutes ago. Trying to come up with STR, I've been able to hit it again on occasion, but the steps aren't very reliable (sometimes takes 30+ tries):

1) Go to google.com (hit "g" then Go).
2) Rotate to landscape orientation.
3) Press Erase.
4) Turn the screen off.
5) Rotate to portrait orientation.
6) Unlock the phone.
7) Repeat from step 1.
Assignee: nobody → bnicholson
Status: NEW → ASSIGNED
Iteration: --- → 1.8
I have a much higher success rate if I push the top right settings button between steps 3 and 4, then press Back between steps 6 and 7.
Apparently UIDevice.current.orientation is unreliable. After step 5 in comment 3, UIDevice.current.orientation.isLandscape is *true* when viewWillTransition is fired (including in the completion block to coordinator.animate(alongsideTransition:)), so we never get signalled that the phone is rotated to portrait.

I noticed that the size given to viewWillTransition is at least correct, so as a workaround we can try comparing size.width to size.height.
master: 488859557302ccf9aedacb36b45ea8faed5f3c91
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Keywords: steps-wanted
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.