Last modified: 2014-06-09 11:21:30 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 T46740, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44740 - Upgrade jQuery from 1.8.x to 1.11.x
Upgrade jQuery from 1.8.x to 1.11.x
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.22.0
All All
: High enhancement with 2 votes (vote)
: 1.24.0 release
Assigned To: Krinkle
:
: 48895 64433 (view as bug list)
Depends on: jqmigrate
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-07 10:03 UTC by Sam Reed (reedy)
Modified: 2014-06-09 11:21 UTC (History)
9 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-02-07 10:03:11 UTC
There were a lot of changes in 1.9, so upgrading broke a lot of stuff..

Now 1.10 is out (hey, they're following our number sequencing), it sounds like it's going to get even worse: "Several APIs were deprecated in 1.9.0 and have now been removed."

I'm not sure if we should upgrade to 1.9 as an intermediatary, or just jump straight to 1.10, or something else.


Upgrade to jQuery 1.9.1 and the addition of jQuery Migrate are in https://gerrit.wikimedia.org/r/#/c/47844/
Comment 1 Krinkle 2013-04-08 06:57:46 UTC
Change-Id: Ia087bdbc7c120dd07134afcd9fc99a0accab7ab5

When I tried this locally I got several uncaught exceptions.

One of them highlighted here (consider this a blocker for upgrading to jquery 1.9):

Uncaught TypeError: Cannot read property 'style' of undefined
 load.php:6946| curCSS
 load.php:6895| jQuery.extend.css
 load.php:7152| actualDisplay
 load.php:7123| css_defaultDisplay
 load.php:6704| showHide
 load.php:6757| jQuery.fn.extend.show
 load.php:9116| jQuery.each.jQuery.fn.(anonymous function)
 jquery.ui.dialog.js:117| $.widget._create
 jquery.ui.widget.js:168| $.Widget._createWidget
 jquery.ui.widget.js:65 | $.(anonymous function).(anonymous function)
 jquery.ui.widget.js:131| (anonymous function)
 load.php:650| jQuery.extend.each
 load.php:270| jQuery.fn.jQuery.each
 jquery.ui.widget.js:126  | $.fn.(anonymous function)
 mediawiki.feedback.js:138| mw.Feedback.setup
 mediawiki.feedback.js:66 | mw.Feedback

Stack:
- http://cl.ly/image/2S263t3x1P2D
- http://cl.ly/image/0N1q3w1x1J2k
- http://cl.ly/image/3p362o1g173i
- http://cl.ly/image/1J0Z0t2g061S

Looks like actualDisplay incorrectly assumes that .body is already initialised, as a result of the silently failed .appendTo() action the jquery collection is emptied and elem[0] is undefined and elem[0].style is illegal.
Comment 2 Andre Klapper 2013-05-29 12:11:18 UTC
*** Bug 48895 has been marked as a duplicate of this bug. ***
Comment 3 Sam Reed (reedy) 2013-07-26 01:01:16 UTC
1.10.2 is the current older stable release.

We can't really go to 2.0.3 for a while due to "but does not support Internet Explorer 6, 7, or 8" - we'd need to get that support dropped from core MW.

Should be getting this upgrade done be a higher priority? At least with a mix of 1.10 and jQuery Migrate...
Comment 4 Krinkle 2013-07-26 01:16:34 UTC
Even with Migrate, there are breaking changes between our current version and the version that migrate patches to.

Nothing we can't handle, but we need to:
* Fix core and all extensions (at least the wmf-deployed ones, and leave release notes for others)
* Announce on wikitech-ambassadors (and elsewhere) about these changes and give them a bit of time to check their stuff and fixup where needed.

I'd like to take that on, but if someone else can be assigned that's fine to (I can consult where needed). 'til now I've been too busy elsewhere.
Comment 5 Krinkle 2014-04-25 17:13:22 UTC
1.10 to 1.11 is minor. No need for a separate bug.
Comment 6 Krinkle 2014-04-25 17:13:30 UTC
*** Bug 64433 has been marked as a duplicate of this bug. ***
Comment 8 Gerrit Notification Bot 2014-05-08 23:52:00 UTC
Change 131494 had a related patch set uploaded by Krinkle:
Add jQuery Migrate

https://gerrit.wikimedia.org/r/131494
Comment 9 Gerrit Notification Bot 2014-05-09 09:13:18 UTC
Change 131494 merged by jenkins-bot:
Add jQuery Migrate

https://gerrit.wikimedia.org/r/131494
Comment 10 Gerrit Notification Bot 2014-05-13 15:38:52 UTC
Change 133084 had a related patch set uploaded by Krinkle:
Add jQuery Migrate

https://gerrit.wikimedia.org/r/133084
Comment 11 Gerrit Notification Bot 2014-05-13 15:48:35 UTC
Change 133084 merged by jenkins-bot:
Add jQuery Migrate

https://gerrit.wikimedia.org/r/133084
Comment 12 Krinkle 2014-05-16 09:54:16 UTC
(O Gerrit Bot, Where Art Thou?)

Changed merged by jenkins-bot:
 Upgrade jQuery to 1.11.1
 Change-Id: I097c9639e366eb394dcf2f3c3c62edfcc974155c
Comment 13 Andre Klapper 2014-05-16 10:26:15 UTC
(In reply to Krinkle from comment #12)
> (O Gerrit Bot, Where Art Thou?)

bug 65370
Comment 14 James Forrester 2014-05-16 15:10:08 UTC
Related patch-set:

Remove jQuery.Migrate from default, moving to an optional module

https://gerrit.wikimedia.org/r/133719
Comment 15 Andre Klapper 2014-05-16 21:29:13 UTC
I'm confused. 
https://gerrit.wikimedia.org/r/#/c/133477/ "Upgrade jQuery to 1.11.1"
Comment 16 Andre Klapper 2014-05-16 21:29:42 UTC
Garr, please ignore the last comment. Was already covered in comment 12.
Comment 17 Gerrit Notification Bot 2014-05-21 14:27:51 UTC
Change 134607 had a related patch set uploaded by Krinkle:
Remove jQuery Migrate

https://gerrit.wikimedia.org/r/134607
Comment 18 Gerrit Notification Bot 2014-05-24 01:39:29 UTC
Change 134607 abandoned by Krinkle:
Remove jQuery Migrate

Reason:
Closing in favour of If1c9ab722c7ce.

https://gerrit.wikimedia.org/r/134607
Comment 19 Gerrit Notification Bot 2014-06-03 17:47:26 UTC
Change 137053 had a related patch set uploaded by Krinkle:
Set $wgIncludejQueryMigrate = true; for all wikis

https://gerrit.wikimedia.org/r/137053
Comment 20 Gerrit Notification Bot 2014-06-03 20:41:38 UTC
Change 133719 merged by jenkins-bot:
Disable jQuery Migrate by default (enable via $wgIncludejQueryMigrate)

https://gerrit.wikimedia.org/r/133719
Comment 21 Gerrit Notification Bot 2014-06-03 23:05:24 UTC
Change 137053 merged by jenkins-bot:
Set $wgIncludejQueryMigrate = true; for all wikis

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

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


Navigation
Links