Last modified: 2014-08-04 21:24:04 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 T70073, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68073 - VisualEditor: [Regression pre-wmf14] Save button in save dialog remains active while save is in progress and throws "Uncaught TypeError: Cannot read property '$saveOptions' of null"
VisualEditor: [Regression pre-wmf14] Save button in save dialog remains activ...
Status: VERIFIED FIXED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: High minor
: VE-deploy-2014-07-24
Assigned To: Alex Monk
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-15 21:26 UTC by Rummana Yasmeen
Modified: 2014-08-04 21:24 UTC (History)
5 users (show)

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


Attachments
Screenshot (187.49 KB, image/png)
2014-07-15 21:26 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2014-07-15 21:26:39 UTC
Created attachment 15948 [details]
Screenshot

Steps to reproduce:

1.Open a page with VE
2.Make an edit 
3.Click on the "Save Page"
4.While the saving is in progress,keep on clicking on the "Save Page" button on the Save dialog

Observed Result:
The following error appears in the console:

Uncaught TypeError: Cannot read property '$saveOptions' of null
Comment 1 Alex Monk 2014-07-16 16:21:37 UTC
Seems that I can only get "Uncaught TypeError: Cannot read property 'messages' of null " on my local machine
Comment 2 Gerrit Notification Bot 2014-07-16 16:54:09 UTC
Change 146810 had a related patch set uploaded by Alex Monk:
Don't allow document save if we're already tearing down the surface

https://gerrit.wikimedia.org/r/146810
Comment 3 Gerrit Notification Bot 2014-07-16 20:45:26 UTC
Change 146810 merged by jenkins-bot:
Don't allow document save if we're already tearing down the surface

https://gerrit.wikimedia.org/r/146810
Comment 4 Alex Monk 2014-07-16 21:20:23 UTC
I don't think that fixed it, unfortunately. But I can't reproduce this error locally.
Comment 5 Krinkle 2014-07-17 01:48:38 UTC
I can reproduce both the UI as well as the logic problem.

Both the "Review your changes" and the "Save page" buttons in the save dialog remain clickable.

Their apparent state looks clickable, their response to clicking is appeared pressed, and the result is the event handler firing internally.

The exception usually doesn't happen until after the first save attempt has finished and the view goes back to "read" mode, but it does throw:

ve.init.mw.ViewPageTarget.prototype.onSave = function ( ..  ) {
	if ( !this.pageExists || this.restoring ) {
		..
	} else {
		if ( mw.page.watch && mw.page.watch.updateWatchLink ) {
			watchChecked = this.saveDialog.$saveOptions
.. ^
Comment 6 Alex Monk 2014-07-17 21:33:22 UTC
Does this still happen? I was able to replicate it on deployment-prep at the time (not on my local machine, as I said), but now I can't...

I get "Uncaught TypeError: Cannot read property 'getModel' of null" when trying to load VE after it's been saved (again, only on deployment-prep, not my local machine), but that seems unrelated.
Comment 7 James Forrester 2014-07-23 02:40:01 UTC
Going to mark as FIXED but please re-open if there's an issue.
Comment 8 Rummana Yasmeen 2014-07-23 23:55:36 UTC
Verified the fix in Betalabs
Comment 9 Rummana Yasmeen 2014-07-25 22:28:17 UTC
Verified the fix in test2
Comment 10 Rummana Yasmeen 2014-08-04 21:24:04 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