Last modified: 2014-09-04 21:30:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71630, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69630 - VisualEditor Mobile: [iOS] abandoning edit takes me to unscrollable page
VisualEditor Mobile: [iOS] abandoning edit takes me to unscrollable page
Status: VERIFIED FIXED
Product: VisualEditor
Classification: Unclassified
Mobile (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2014-08-28
Assigned To: Juliusz Gonera
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-15 22:57 UTC by Maryana Pinchuk
Modified: 2014-09-04 21:30 UTC (History)
12 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Maryana Pinchuk 2014-08-15 22:57:09 UTC
Observed on iPad. Steps to repro:

1. Go into VE edit mode on an article and enter the link inspector
2. Use browser back to exit the link inspector

Expected: you get a message asking if you want to abandon changes and get taken back to the content if you say yes

Actual: no message about abandoning changes, and you're taken to the top of the page but can't scroll below the fold
Comment 1 Bingle 2014-08-15 23:00:13 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/ttlYWwkt
Comment 2 Bingle 2014-08-15 23:05:15 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/kzlyuZku
Comment 3 Juliusz Gonera 2014-08-20 22:55:32 UTC
This actually seems to be a VE/OOUI bug. The problem lies in WindowManager not cleaning up after itself.

I thought it could be easily fixed by adding this.inspectors.clearWindows() in ve.ui.Context.prototype.destroy, but unfortunately that results in:

"Uncaught TypeError: Cannot read property 'getComputedStyle' of undefined "

This happens when WindowManager invokes OO.ui.Window.prototype.hold. I suspect it's because everything in WindowManager is async/delayed (to accommodate for animations), so DOM nodes no longer exist when WindowManager tries to tear windows down.
Comment 4 Roan Kattouw 2014-08-20 22:58:18 UTC
(In reply to Juliusz Gonera from comment #3)
> I thought it could be easily fixed by adding this.inspectors.clearWindows()
I haven't reported this in Bugzilla yet, but I discovered yesterday that clearWindows() is completely broken. It will only clean up the current window (i.e. the one that's currently open), and it won't touch any others.

> in ve.ui.Context.prototype.destroy, but unfortunately that results in:
> 
> "Uncaught TypeError: Cannot read property 'getComputedStyle' of undefined "
> 
> This happens when WindowManager invokes OO.ui.Window.prototype.hold. I
> suspect it's because everything in WindowManager is async/delayed (to
> accommodate for animations), so DOM nodes no longer exist when WindowManager
> tries to tear windows down.
Yeah that sounds likely. Maybe WindowManager needs a destroy function that destroys everything immediately? I also don't really understand why WindowManager not cleaning up is causing problems if the WindowManager's DOM element is removed.
Comment 5 Gerrit Notification Bot 2014-08-21 23:03:44 UTC
Change 155657 had a related patch set uploaded by JGonera:
Remove global overlay classes when destroying MobileSurface

https://gerrit.wikimedia.org/r/155657
Comment 6 Gerrit Notification Bot 2014-08-21 23:44:57 UTC
Change 155657 merged by jenkins-bot:
Remove global overlay classes when destroying MobileSurface

https://gerrit.wikimedia.org/r/155657
Comment 7 Gerrit Notification Bot 2014-08-21 23:53:21 UTC
Change 155668 had a related patch set uploaded by Catrope:
Destroy WindowManagers in Context and Surface destructors

https://gerrit.wikimedia.org/r/155668
Comment 8 Gerrit Notification Bot 2014-08-21 23:55:16 UTC
Change 155668 merged by jenkins-bot:
Destroy WindowManagers in Context and Surface destructors

https://gerrit.wikimedia.org/r/155668
Comment 9 Juliusz Gonera 2014-08-27 18:18:12 UTC
All patches merged, marking as fixed.
Comment 10 Rummana Yasmeen 2014-08-29 21:03:47 UTC
Verified the fix in Betalabs and test2
Comment 11 Rummana Yasmeen 2014-09-04 21:30:42 UTC
Verified the fix in production

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links