Last modified: 2014-09-11 14:27: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 T72263, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70263 - SemanticForms does not work with MediaWiki 1.24
SemanticForms does not work with MediaWiki 1.24
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
master
All All
: Unprioritized blocker (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-01 17:50 UTC by Niklas Laxström
Modified: 2014-09-11 14:27 UTC (History)
2 users (show)

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


Attachments

Description Niklas Laxström 2014-09-01 17:50:19 UTC
SemanticForms uses at least $.browser and live multiple times. Those are no longer present without $wgIncludejQueryMigrate = true;

I also submitted patch for related issue: https://gerrit.wikimedia.org/r/#/c/157698/
Comment 1 Yaron Koren 2014-09-07 13:09:15 UTC
Hi Niklas,

I thought the jQuery.browser thing was already resolved in bug 65668. Is SF actually causing Javascript problems?

Similarly, I thought all usages of .live() were already removed here:

https://git.wikimedia.org/commitdiff/mediawiki%2Fextensions%2FSemanticForms.git/64ed2442f047921238599acc93f1119147cb1f15

Are you sure you're looking at the latest code?
Comment 2 Niklas Laxström 2014-09-07 15:16:22 UTC
Yaron: $.browser is still used in libs/jquery.fancybox.js.

For the rest, I stopped using the outdated Composer version in Ib02cd677a9855a18.
Comment 3 Yaron Koren 2014-09-07 17:05:30 UTC
Yes, I know .browser is still being called, but Stephan added code (copied from jquery-migrate.js) that manually defines it if it wasn't defined already. Is it causing JS problems with MW 1.24?

(Obviously, a better solution would be to just get rid of the .browser calls, but that's a little tricky because it's 3rd-party code.)

It's good to know that at least part of the problem was out-of-date code.
Comment 4 Niklas Laxström 2014-09-08 10:32:01 UTC
Looks like this was indeed a false alert. You can close this or keep it as reminder to update the development version of SF in composer.
Comment 5 Yaron Koren 2014-09-08 14:01:23 UTC
Okay, cool. I'll close the bug, but - what is it that I need to change to fix the Composer problem?
Comment 6 Nemo 2014-09-08 14:06:57 UTC
(In reply to Yaron Koren from comment #5)
> Okay, cool. I'll close the bug, but - what is it that I need to change to
> fix the Composer problem?

Update the package https://packagist.org/packages/mediawiki/semantic-forms
Comment 7 Yaron Koren 2014-09-08 14:19:27 UTC
Oh, I see - I didn't know anyone was using it. I'm cc-ing Jeroen De Dauw, who is responsible for that package; although it might be better to wait to update it until SF 2.8 comes out, which will hopefully be in the next few days.
Comment 8 Jeroen De Dauw 2014-09-09 22:23:08 UTC
I've updated it now. Not needing to fork the repo like this would be great for everyone involved
Comment 9 Yaron Koren 2014-09-09 22:36:09 UTC
Okay, great! I'm closing this bug now.
Comment 10 Niklas Laxström 2014-09-11 09:10:50 UTC
Can you elaborate what can be done to avoid forking?
Comment 11 Jeroen De Dauw 2014-09-11 14:27:56 UTC
Add the composer.json file to the main SF repo.

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


Navigation
Links