Closed Bug 1183851 Opened 9 years ago Closed 9 years ago

Changing orientation in editing mode updates URL bar to wrong state

Categories

(Firefox for iOS :: Browser, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios + ---

People

(Reporter: bnicholson, Unassigned)

References

Details

(Keywords: regression)

Attachments

(2 files)

STR:
1) Click URL bar.
2) Enter some characters.
3) Rotate phone.

The lock/reader icons appear, and the entered text gets overridden with the page URL. We need to guard on being in editing mode for any URL updates we do.

We might also want to consider going back to a separate display URL view and an editing URL field like we had before since it simplified issues like these (at the cost of layout complexity).
Attached file Pull request
Attachment #8634114 - Flags: review?(bnicholson)
Comment on attachment 8634114 [details] [review]
Pull request

Thanks for the PR -- unfortunately, the fix will be a bit more complicated than this.

We still want to update the URL when we're not in editing mode, so we'll still need to update the display URL on rotation. It needs to be a conditional update: ignore if we're in editing mode, but proceed otherwise.

Also, we need similar checks for other parts of the URL bar, such as the lock icon and the reader mode icon.
Attachment #8634114 - Flags: review?(bnicholson) → review-
Actually, with bug 1182274 landed, we shouldn't need to update the display URL on rotation since the URL bar needs to respond only to the URL updated KVO event. We still need to handle the lock and reader icon as mentioned, though.
Would you please further explain what do you mean by "handle the lock and reader icon" ?
With my fix : 
if we are in editing mode : lock and reader icons hidden -> rotation -> icons stays hidden
if not in editing mode : lock and reader icons visible -> rotation -> icons visible
editing -> rotation -> go button : icons visible
I think that's normal behaviour no ?
Flags: needinfo?(bnicholson)
(In reply to Mosbah from comment #4)
Steps:
1) Go to google.com, see lock icon.
2) Tap the URL bar, no lock icon (correct behavior).
3) Rotate, lock icon appears (incorrect).
Flags: needinfo?(bnicholson)
Fixed by URL bar refactor (bug 1184239).
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: