Last modified: 2014-02-12 23:54:14 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 T52761, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50761 - Nearby broken on desktop - Uncaught TypeError: Cannot set property 'ontouchstart' of undefined
Nearby broken on desktop - Uncaught TypeError: Cannot set property 'ontouchst...
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Jon
https://github.com/wikimedia/mediawik...
:
: 50825 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-04 18:49 UTC by Helder
Modified: 2014-02-12 23:54 UTC (History)
12 users (show)

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


Attachments
Screenshot (186.12 KB, image/png)
2013-07-04 18:49 UTC, Helder
Details

Description Helder 2013-07-04 18:49:44 UTC
Created attachment 12754 [details]
Screenshot

When I was opening the page
https://pt.wikipedia.org/wiki/Especial:Nearby
I got the following error on Google Chrome (28.0.1500.71)'s console:

Uncaught TypeError: Cannot set property 'ontouchstart' of undefined

init	https://bits.wikimedia.org/pt.wikipedia.org/load.php?debug=false&lang=pt-br&modules=ext.centralNotice.bannerController%7Cext.dismissableSiteNotice%7Cext.uls.displaysettings%2Cime%2Cinit%2Cinputsettings%2Cinterface%2Clanguagenames%2Clanguagesettings%2Cpreferences%2Cwebfonts%7Cext.uls.webfonts.repository%7Cjquery.client%2Ccookie%2CdelayedBind%2Ci18n%2Cime%2CjStorage%2Cjson%2CmwExtension%2Ctipsy%2Culs%2Cwebfonts%7Cjquery.uls.data%2Cgrid%7Cmediawiki.Uri%2Capi%2Ccldr%2CjqueryMsg%2Clanguage%2Cnotify%2Cuser%2Cutil%7Cmediawiki.api.parse%7Cmediawiki.language.data%2Cinit%7Cmediawiki.legacy.ajax%2Cwikibits%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.startup%7Cmobile.head%2Cnearby%2Cstartup%7Cmobile.nearby.plumbing%2Cscripts%2Cstyles%7Cmobile.pagelist.styles%7Cmobile.stable.common%2Cplumbing%7Cmobile.toast.styles%7Cskins.vector.js%7Cwikibase.client.init&skin=vector&version=20130704T183545Z&*
fire	https://bits.wikimedia.org/pt.wikipedia.org/load.php?debug=false&lang=pt-br&modules=ext.centralNotice.bannerController%7Cext.dismissableSiteNotice%7Cext.uls.displaysettings%2Cime%2Cinit%2Cinputsettings%2Cinterface%2Clanguagenames%2Clanguagesettings%2Cpreferences%2Cwebfonts%7Cext.uls.webfonts.repository%7Cjquery.client%2Ccookie%2CdelayedBind%2Ci18n%2Cime%2CjStorage%2Cjson%2CmwExtension%2Ctipsy%2Culs%2Cwebfonts%7Cjquery.uls.data%2Cgrid%7Cmediawiki.Uri%2Capi%2Ccldr%2CjqueryMsg%2Clanguage%2Cnotify%2Cuser%2Cutil%7Cmediawiki.api.parse%7Cmediawiki.language.data%2Cinit%7Cmediawiki.legacy.ajax%2Cwikibits%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.startup%7Cmobile.head%2Cnearby%2Cstartup%7Cmobile.nearby.plumbing%2Cscripts%2Cstyles%7Cmobile.pagelist.styles%7Cmobile.stable.common%2Cplumbing%7Cmobile.toast.styles%7Cskins.vector.js%7Cwikibase.client.init&skin=vector&version=20130704T183545Z&*
self.fireWith	https://bits.wikimedia.org/pt.wikipedia.org/load.php?debug=false&lang=pt-br&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2CloadingSpinner%2CmwEmbedUtil%7Cmw.MwEmbedSupport&only=scripts&skin=vector&version=20130620T163512Z
jQuery.extend.ready	https://bits.wikimedia.org/pt.wikipedia.org/load.php?debug=false&lang=pt-br&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2CloadingSpinner%2CmwEmbedUtil%7Cmw.MwEmbedSupport&only=scripts&skin=vector&version=20130620T163512Z
(anonymous function)	https://bits.wikimedia.org/pt.wikipedia.org/load.php?debug=false&lang=pt-br&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2CloadingSpinner%2CmwEmbedUtil%7Cmw.MwEmbedSupport&only=scripts&skin=vector&version=20130620T163512Z

The line of the error seems to be this:
https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/e0c2cf2573a6603ea31dced342d2c2f4e70e571c/javascripts/common/mf-notification.js#L56
Comment 1 Helder 2013-07-04 18:55:44 UTC
In debug mode
https://pt.wikipedia.org/wiki/Especial:Nearby?debug=1
I confirm the error comes from this file:
https://bits.wikimedia.org/static-1.22wmf8/extensions/MobileFrontend/javascripts/common/mf-notification.js

According to
https://pt.wikipedia.org/wiki/Special:Version
we are running MW 1.22wmf8 (34da689)
Comment 2 Jon 2013-07-05 17:29:38 UTC
So this only effects desktop. A div is being appended to a non-existant element.

Easy fix, but I continue to worry about supporting nearby on desktop when our skin is so different...
Comment 3 Jon 2013-07-05 20:20:30 UTC
*** Bug 50825 has been marked as a duplicate of this bug. ***
Comment 4 Gerrit Notification Bot 2013-07-06 01:06:13 UTC
Change 72238 had a related patch set uploaded by Jdlrobson:
Fix nearby desktop view

https://gerrit.wikimedia.org/r/72238
Comment 5 Gerrit Notification Bot 2013-07-06 01:10:09 UTC
Change 72238 merged by jenkins-bot:
Fix nearby desktop view

https://gerrit.wikimedia.org/r/72238
Comment 6 Greg Grossmeier 2013-07-08 18:17:08 UTC
Accepting backport to WMF, do you need a LD before tomorrow's 1pm MobileFrontend deploy?
Comment 7 Max Semenik 2013-07-08 18:41:10 UTC
We will deploy it during our usual window tomorow.

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


Navigation
Links