Page MenuHomePhabricator

In the mobile Web wikicode editor, saving the edit is almost impossible, because the button Suivant (Next) is missing
Closed, ResolvedPublic

Description

Safari on iOS 8.2 on an iPad in landscape.

In Safari, I have the reading list open.

I go to fr.wikipedia.org
I go to the article Equanum
I click the pencil, to edit the article.
I edit the wikicode...
I am done. I want to save my edit.
But the button Suivant (Next) is missing. I scroll around. I bring the keyboard, I dismiss the keyboard. There is no way to save my edit!

Finally, I guess a workaround. I close and re-open the reading list. This makes the button Suivant (Next) appear. So all ends well, I can save my edit. But really you have to guess the workaround!

It would be very nice to fix this bug.

Thank you.

Nnemo

Event Timeline

Nnemo raised the priority of this task from to High.
Nnemo updated the task description. (Show Details)
Nnemo subscribed.
Nnemo set Security to None.

The bug also occurs at the following step: edit summary.

The button Sauvegarder (Save) is missing, so there is no apparent way to save the edit.

Here this is worse: the wikicode is not anymore on the screen, so the user cannot salvage it by copying it.
 --> Data loss.

Thanks for the detailed report @Nnemo.

I've just tried to verify this using Apple's iOS simulator running iOS 8.2 and I see the following:

iOS Simulator Screen Shot 8 May 2015 11.42.00.png (2,048×1,536 px, 287 KB)

I was not able to reproduce on an actual iPad in landscape mode running iOS 8.0.

Couldn't reproduce in iOS 8.3 either. @Nnemo can you try clearing the browser cache on your iPad and see if it's still reproducible?

Jdlrobson subscribed.

@Nnemo please give us some further information so we can get to the bottom of this! Thanks!

Thanks for the detailed report @Nnemo.

I've just tried to verify this using Apple's iOS simulator running iOS 8.2 and I see the following:

iOS Simulator Screen Shot 8 May 2015 11.42.00.png (2,048×1,536 px, 287 KB)

Thank you @phuedx for taking interest in the issue.

I can see that you did not have the reading list open.

@phuedx, @Jdlrobson, @kaldari — The reading list is important: this changes the size of the view. I reproduce the bug.

You're right @Nnemo, I didn't. I now see the behaviour you're talking about.

Actually, that was the iOS simulator being fairly unresponsive to dragging.

@Nnemo: I've taken the following steps and in both scenarios have been able to scroll around the page so that I can see the Suivant button.

  • Navigate to fr.wikipedia.org/wiki/Equanum, click edit, open the Reading List, scroll to the right to reveal the Suivant button
  • Open the Reading List, navigate to fr.wikipedia.org/wiki/Equanum, click edit, scroll to the right to reveal the Suivant button

I wonder why the UI isn't resizing.

@Jdlrobson, @kaldari: have one of you got a physical iOS 8.2 iPad that you can use to reproduce this?

I used a physical iOS 8.3 iPad and still could not reproduce the problem. I tried opening and closing the keyboard, opening and closing the reading list, etc. Screenshot:

iOS bug.jpg (768×1,024 px, 73 KB)

@Nnemo: Please edit the description so that I can understand how to reproduce the bug. Thanks!

Hey @Nnemo. We've had a hard time reproducing this bug and aren't too sure how to proceed. Any help you can give us would be greatly appreciated, otherwise we'll have to close the bug.

This comment was removed by Nnemo.

Hey @Nnemo. We've had a hard time reproducing this bug and aren't too sure how to proceed.

I know, and I understand that. It is a bit hard for me too to reproduce this bug, because this editor has other bugs that come in the way.

Now, I reproduce this scenario, which will be easier to repro:

Safari on iOS 8 on an iPad mini in landscape without the reading list open.
I click on the pencil.
I agree to edit as guest.
I scroll down, with only one finger.
I write a new paragraph at the end of the intro, with the text "Bloup".
Now, I want to save my edit. The keyboard is still on the screen. The button Suivant is not on the screen. <-- Bug?
I scroll towards the top, with only one finger.
The keyboard is still on the screen. The button Suivant is still not on the screen. <-- Bug!
Here, sometimes other bugs come in. Often, it is impossible to have the first lines of wikicode. Sometimes the top part of is washed whiter than white.

Any help you can give us would be greatly appreciated, otherwise we'll have to close the bug.

I reproduce the bug, so closing this issue would not be appropriate. This issue may be hard to reproduce, yet it is an issue.

I see what you mean, the behavior of the header while the keyboard is up is wonky. It disappears when the keyboard comes up, and then sometimes when you scroll to the top or bottom it appears and sometime it doesn't. Seems to be specific to newer versions of iOS. The header stays put in iOS 6.

I'll see if I can fix it.

Change 215568 had a related patch set uploaded (by Kaldari):
Adding height to viewport definition to fix iOS8 issues

https://gerrit.wikimedia.org/r/215568

The patch above doesn't appear to fix the problem. Apparently there is no known reliable solution to prevent iOS Safari from messing with fixed position elements. The browser is trying to be clever and give you more space for typing, but it seems to be more annoying than helpful. Some sites have apparently implemented iOS-specific stylesheets that switch the fixed position elements into absolute positioned elements, although that seems like a pretty crappy solution.

I feel like we used to have an ios specific hack for this - did we remove this?

Apparently there is no known reliable solution to prevent iOS Safari from messing with fixed position elements. The browser is trying to be clever and give you more space for typing, but it seems to be more annoying than helpful.

In this case, what about placing the button simply at the beginning of the page, without fixed position? Doing so would be accessible. When I scroll down, I would get space for typing. And, when I want to save my edit, I would scroll up and I would find the button.

@Nnemo I would be fine with switching from fixed to absolute positioning for iOS (which is what some other sites seem to be doing). @Jdlrobson Do you have any opinion on that? We've had lots of iOS specific hacks for the editing interface, but it seems like it's never been entirely bug-free. I could do some code archeology, but it would take a significant amount of work to investigate our previous hacks. Do you think it would be worth the effort?

kaldari lowered the priority of this task from High to Medium.Jun 5 2015, 5:20 PM

Change 215568 abandoned by Kaldari:
Adding height to viewport definition to fix iOS8 issues

Reason:
Doesn't fix the bug :(

https://gerrit.wikimedia.org/r/215568

This situation keeps on getting odd. I tried editing logged out and the Next/Submit buttons were there. This only seems to affect logged-in users.

@kaldari can you still reproduce this bug? (Especially if you test the logged in / logged out thing mentioned by @Callmemirela? There shouldn't be a big difference in EditorOverlay between logged in and logged out users :/).

I have a feeling this is caused by the same problem as T98846 as in my local simulator, the fixed header now seems a lot smoother.

I've merged the fix to that, so can anyone see if they can replicate this issue on http://en.m.wikipedia.beta.wmflabs.org

@Nnemo @H66m9d are either of you able to tell me if the bug occurs on the site http://en.m.wikipedia.beta.wmflabs.org ?

@Nnemo @H66m9d are either of you able to tell me if the bug occurs on the site http://en.m.wikipedia.beta.wmflabs.org ?

I have tested on en.m.wikipedia.beta.wmflabs.org.

When I want to save my edit, the button Next is absent. Bug?

So I try to scroll upwards, to find the button Next. I try with one finger. With two fingers.
This is expected to scroll upwards.
But this does nothing.

Scrolling is impossible.

--> T106934: In the mobile Web wikicode editor, it is impossible to scroll, so it is impossible to save the edit

So I cannot find the button Next.

So I cannot save my edit.

This issue is different from the new one.

In this issue, the button Next is missing. This occurs even if there is nothing to scroll.

The issue T106934 is about scrolling being impossible. This is very annoying, and very frequent, during the whole editing, not only when I want to save with the button Next.

Jdlrobson claimed this task.

This should be fixed now on all wikis, apologies it took so long to get to the bottom of and thanks for your patience. Please create a new task if you find any similar problems.