Page MenuHomePhabricator

Mobile Visual Editor on iOS has a suppressed error after saving
Closed, ResolvedPublic

Description

Edit an article on mobile on iOS, then save it. After the save this will be in the console:

VM32 jquery.js:3819 jQuery.Deferred exception: Cannot read property 'getView' of null TypeError: Cannot read property 'getView' of null
    at VeInitMwMobileArticleTarget.ve.init.mw.MobileArticleTarget.onSurfaceScroll (http://dev.wiki.local.wmftest.net:8080/w/extensions/VisualEditor/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js?215d9:249:38)
    at VeUiMWSurface.oo.EventEmitter.emit (http://dev.wiki.local.wmftest.net:8080/w/resources/lib/oojs/oojs.jquery.js?b1631:824:12)
    at http://dev.wiki.local.wmftest.net:8080/w/extensions/VisualEditor/lib/ve/src/ui/ve.ui.Surface.js?afd47:560:12
    at mightThrow (http://dev.wiki.local.wmftest.net:8080/w/resources/lib/jquery/jquery.js?6fb03:3535:29)
    at process (http://dev.wiki.local.wmftest.net:8080/w/resources/lib/jquery/jquery.js?6fb03:3603:12) undefined

Event Timeline

Change 535207 had a related patch set uploaded (by DLynch; owner: DLynch):
[mediawiki/extensions/VisualEditor@master] MobileArticleTarget: don't access the surface after it's destroyed

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

Change 535207 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] MobileArticleTarget: don't access the surface after it's destroyed

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