Last modified: 2014-06-18 19:14:05 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 T68222, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66222 - VisualEditor: [Regression wmf8] TypeError:this.documentView is null appearing after saving an edit and then reopening the VE again, also cannot switch to edit source mode after that in Firefox
VisualEditor: [Regression wmf8] TypeError:this.documentView is null appearing...
Status: VERIFIED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: High major
: VE-deploy-2014-06-12
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-05 22:22 UTC by Rummana Yasmeen
Modified: 2014-06-18 19:14 UTC (History)
6 users (show)

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


Attachments
Screenshot (230.56 KB, image/png)
2014-06-05 22:22 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2014-06-05 22:22:59 UTC
Created attachment 15576 [details]
Screenshot

Steps to reproduce:

1.Open any page in Betalabs or test2 with VE in Firefox

2.Make an edit

3.Save the page

4.Reopen the page

Observed Result:

In the console the following error appears:


TypeError: this.documentView is null

Also, another issue that is happening is, after editing if you try to switch to edit source mode, it is not opening the wikitext editor.Rather showing a message:
Some parts of the edit form did not reach the server; double-check that your edits are intact and try again.
Comment 1 Roan Kattouw 2014-06-05 22:26:13 UTC
This seems to be happening because, somehow, the old torn-down ce.Surface gets a focus event, calls this.surfaceObserver.startTimerLoop(), but this explodes because the SurfaceObserver has been detached already and its .documentView is null.

We should make sure we properly destroy the old surface.
Comment 2 Rummana Yasmeen 2014-06-05 23:16:17 UTC
Also getting this error now:

Error: Range error: Range is no longer valid after DOM mutation ([WrappedRange("link":0, "link":4)])
after applying link to the text "link"
Comment 3 Rummana Yasmeen 2014-06-06 00:04:05 UTC
The "Switching to edit source mode not opening the wikitext editor" issue is happening in Chrome as well, however the error found for Firefox in not appearing for Chrome, so I am taking this issue to a different bug, assuming it is not related.
Comment 4 Roan Kattouw 2014-06-06 01:01:57 UTC
The error from comment 2 happens because the old destroyed surface is getting blurred, and DesktopContext is responding to that.

The fundamental issue is this.fragment.select(); in the teardown process of ve.ui.Dialog, which runs 200ms after the save dialog closes, at which point the surface is already hidden and lots of stuff goes wrong.

Beside that, though, we should be much more aggressive about destroying things properly. And also audit things we do after a delay like this (so potentially anything in a setup/teardown process) because the user might have deactivated the editor in the meantime.
Comment 5 Gerrit Notification Bot 2014-06-06 20:03:27 UTC
Change 138014 had a related patch set uploaded by Catrope:
*Actual* death and/or *actual* destruction

https://gerrit.wikimedia.org/r/138014
Comment 6 Gerrit Notification Bot 2014-06-07 13:03:35 UTC
Change 138014 merged by jenkins-bot:
*Actual* death and/or *actual* destruction

https://gerrit.wikimedia.org/r/138014
Comment 7 Rummana Yasmeen 2014-06-09 20:33:17 UTC
This is still happening in Firefox for Betalabs, So reopening it
Comment 8 Ed Sanders 2014-06-09 20:40:53 UTC
MW hasn't had a core update since this was merged.

FYI: If there isn't a commit called 'Update VE core submodule to master' above a core commit you are testing on this page:

https://gerrit.wikimedia.org/r/#/q/is:watched+status:merged,n,z

it won't be in MW yet.
Comment 9 Roan Kattouw 2014-06-09 20:43:24 UTC
(In reply to Ed Sanders from comment #8)
> MW hasn't had a core update since this was merged.
> 
> FYI: If there isn't a commit called 'Update VE core submodule to master'
> above a core commit you are testing on this page:
> 
> https://gerrit.wikimedia.org/r/#/q/is:watched+status:merged,n,z
> 
For that link to work, you need to be logged in and be watching the right projects :)

More portable link: https://gerrit.wikimedia.org/r/#/q/status:merged+AND+%28+project:mediawiki/extensions/VisualEditor+OR+project:VisualEditor/VisualEditor+%29,n,z
Comment 10 Rummana Yasmeen 2014-06-09 22:49:46 UTC
Verified the fix in Betalabs
Comment 11 Rummana Yasmeen 2014-06-12 21:13:20 UTC
This is happening in production.Didn't we backport it?
Comment 12 Gerrit Notification Bot 2014-06-12 21:23:19 UTC
Change 139207 had a related patch set uploaded by Catrope:
*Actual* death and/or *actual* destruction

https://gerrit.wikimedia.org/r/139207
Comment 13 Gerrit Notification Bot 2014-06-12 21:30:57 UTC
Change 139207 merged by Catrope:
*Actual* death and/or *actual* destruction

https://gerrit.wikimedia.org/r/139207
Comment 14 Rummana Yasmeen 2014-06-13 00:24:09 UTC
Not yet fixed in en.wiki
Comment 15 Rummana Yasmeen 2014-06-18 19:14:05 UTC
Verified the fix in production en.wiki

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


Navigation
Links