Last modified: 2014-02-12 23:53:56 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 T55282, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53282 - 'Contribute an image' button on Special:Uploads not working - Class.extend seems unreliable
'Contribute an image' button on Special:Uploads not working - Class.extend se...
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
: 53123 53124 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-23 20:11 UTC by Arthur Richards
Modified: 2014-02-12 23:53 UTC (History)
9 users (show)

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


Attachments

Description Arthur Richards 2013-08-23 20:11:05 UTC
When I go to Special:Uploads and tap 'Contribute an image', I am able to select an image to upload - however after selecting the image to upload, it does not appear to actually get uplaoded and I am not presented with the expected overlay to verify that it's my own work, add additional info, and submit the upload.

This happens in the stable version of the site; tested on Android 4.4 Chrome and desktop Chrome on OS X.
Comment 1 Arthur Richards 2013-08-23 20:12:16 UTC
Upload stats graphs (http://mobile-reportcard.wmflabs.org/) suggest that this broke sometime yesterday (Thursday, 22 August)
Comment 2 Arthur Richards 2013-08-23 20:29:05 UTC
Er also just realized I wrote 'Android 4.4' - should be 'Android 4.2'
Comment 3 Jon 2013-08-23 20:52:44 UTC
So this explains why several tests have been failing in debug mode. It seems there is something odd about the extend function in that there is a bug in the code somewhere. I've got a fix for this but there is a bigger problem somewhere in our code. Juliusz any ideas?
Comment 4 Gerrit Notification Bot 2013-08-23 20:53:32 UTC
Change 80665 had a related patch set uploaded by Jdlrobson:
Bug 53282: Don't rely on extend / fix the uploads page button

https://gerrit.wikimedia.org/r/80665
Comment 5 Jon 2013-08-23 20:57:33 UTC
https://gerrit.wikimedia.org/r/80665 < This works and qunit tests pass in debug mode for overlays. It seems this.appendToElement or this.appendTo return null when set via extend.

I suspect this is also what is causing the problem for bug 53123
Comment 6 Jon 2013-08-23 21:01:55 UTC
*** Bug 53123 has been marked as a duplicate of this bug. ***
Comment 7 Jon 2013-08-23 21:03:05 UTC
*** Bug 53124 has been marked as a duplicate of this bug. ***
Comment 8 Juliusz Gonera 2013-08-26 16:21:37 UTC
Nothing seems wrong with Class.extend(). It's just that document.body doesn't seem to be reliable. Try adding console.log(document.body); in the first line of Overlay.js, it returns null for me in Chrome...
Comment 9 Jon 2013-08-26 16:27:29 UTC
well then that code must be loading in the head when document.body doesn't exist?
Comment 10 Gerrit Notification Bot 2013-08-26 16:37:21 UTC
Change 81012 had a related patch set uploaded by JGonera:
Don't use document.body

https://gerrit.wikimedia.org/r/81012
Comment 11 Juliusz Gonera 2013-08-26 16:37:53 UTC
I revisited bug 52361 and it seems that there's a different fix than using document.body (see previous comment).
Comment 12 Juliusz Gonera 2013-08-26 16:38:53 UTC
Probably, but I'm not sure why. Or maybe document.body on some browsers exists only after the ending tag for body is found (and scripts are still within <body>)?
Comment 13 Juliusz Gonera 2013-08-26 16:43:36 UTC
Also, I am not able to reproduce this bug on master now. Has anything else changed?
Comment 14 Gerrit Notification Bot 2013-08-26 17:33:13 UTC
Change 81012 merged by jenkins-bot:
Don't use document.body

https://gerrit.wikimedia.org/r/81012
Comment 15 Gerrit Notification Bot 2013-08-26 20:17:18 UTC
Change 80665 abandoned by Jdlrobson:
Bug 53282: Don't rely on extend / fix the uploads page button

Reason:
abandoned in favour of  Ifb45718a29b8d3147be483349b30a4bc080604d6

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

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


Navigation
Links