Last modified: 2014-06-09 06:33:28 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 T67239, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65239 - VisualEditor: [Regression pre-wmf5] TypeError: originalDimensions is undefined appears while saving the edit on an image
VisualEditor: [Regression pre-wmf5] TypeError: originalDimensions is undefine...
Status: VERIFIED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2014-05-15
Assigned To: Moriel Schottlender
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-12 20:06 UTC by Rummana Yasmeen
Modified: 2014-06-09 06:33 UTC (History)
5 users (show)

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


Attachments
Screenshot (266.00 KB, image/png)
2014-05-12 20:06 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2014-05-12 20:06:37 UTC
Created attachment 15359 [details]
Screenshot

Steps to reproduce:

1.Go to this page:http://en.wikipedia.beta.wmflabs.org/wiki/12thmayff?veaction=edit

2.Select the first image on the page: Dau_ho_thoi_Ho.png

3.Make any edit on the image's caption field

4.Click on "Apply Changes"

Observed Result:

The Media Settings dialog does not get closed , the edit does not get saved

The following error appears in the console:


TypeError: originalDimensions is undefined
Comment 1 Rummana Yasmeen 2014-05-12 21:04:56 UTC
The following steps ensure reproducing the issue for all images:

1.Insert a new image in a page and save the page
2.Reopen the page and go to the Advanced Settings of the image
3.Click on custom tab and click on Apply Changes
4.Save the page
5.Reopen the page and again go the Advanced Settings of the image
6.Click on Default tab and click on Apply changes

You will see the error and get stuck inside the media settings dialog box
Comment 2 Rummana Yasmeen 2014-05-12 22:11:15 UTC
For Chrome the error appearing is a bit different:Uncaught TypeError: Cannot read property 'width' of undefined
Comment 3 Gerrit Notification Bot 2014-05-13 19:55:08 UTC
Change 133123 had a related patch set uploaded by Mooeypoo:
Make sure originalDimensions are available before use

https://gerrit.wikimedia.org/r/133123
Comment 4 Gerrit Notification Bot 2014-05-13 20:11:07 UTC
Change 133123 merged by jenkins-bot:
Make sure originalDimensions are available before use

https://gerrit.wikimedia.org/r/133123
Comment 5 Rummana Yasmeen 2014-05-13 20:49:14 UTC
Verified the fix in Betalabs
Comment 6 Rummana Yasmeen 2014-05-16 19:44:21 UTC
Verified the fix in test2
Comment 7 Rummana Yasmeen 2014-05-22 21:37:23 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