Closed
Bug 1189413
Opened 9 years ago
Closed 9 years ago
Regression: Unable to backspace a URL in edit-mode
Categories
(Firefox for iOS :: General, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fxios | + | --- |
People
(Reporter: aaronmt, Assigned: sleroux)
References
Details
(Keywords: regression)
Attachments
(1 file)
Currently one is unable to backspace a URL in edit-mode. Visit http://reddit.com Tap the address-bar Attempt to back-space Tests?
Assignee | ||
Comment 1•9 years ago
|
||
Looks like the removal of this line was causing problems. I know both of you guys worked on this recently for fixing crashes and such. Is there any reason we should not do this?
Attachment #8641211 -
Flags: review?(wjohnston)
Attachment #8641211 -
Flags: review?(kbenhmida)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → sleroux
Assignee | ||
Updated•9 years ago
|
Comment 2•9 years ago
|
||
Comment on attachment 8641211 [details] [review] PR https://github.com/mozilla/firefox-ios/pull/833 This is a regression from bug 1177597. I think codester removed it because in general, deleteBackward() will end up triggering SELtextDidChange() because a character will be deleted. The initial highlight is an exception, though, since we set the cursor to the beginning of the text field when doing that highlight, meaning deleteBackward() has no characters to delete. Note that an alternative fix would be to remove this line [1], but we probably don't want to do that since we want the URL bar to show the beginning of the text when we first select it. So in short, I think this fix is fine. It'd be good to have a simple test for this if you don't mind! [1] https://github.com/mozilla/firefox-ios/blob/c0381538788ca27d6a4c30a8e25fa743840729eb/Client/Frontend/Widgets/AutocompleteTextField.swift#L62
Attachment #8641211 -
Flags: review?(wjohnston)
Attachment #8641211 -
Flags: review?(kbenhmida)
Attachment #8641211 -
Flags: review+
Assignee | ||
Comment 3•9 years ago
|
||
Added UI test for scenario: https://github.com/mozilla/firefox-ios/pull/833/files#diff-ddb707040b26de960719e3645dcfcc5dR115 I'll go ahead and merge this in.
Assignee | ||
Comment 4•9 years ago
|
||
Merged.
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.
Description
•