Skip to main content

Bug Tracker

Side navigation

#4794 closed bug (duplicate)

Opened June 20, 2009 12:54PM UTC

Closed June 26, 2010 03:50AM UTC

When used in a Firefox extension jQuery 1.3.2 blocks any custom arrangement of toolbars and icons

Reported by: gprec Owned by:
Priority: major Milestone: 1.4
Component: support Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

When used in a Firefox extension jQuery 1.3.2 blocks any custom arrangement of toolbars and icons.

For example if you try to drag history button inside menu toolbar this is possibile, but only in current session.

After restarting the initial arrangement is restored.

I know that jquery is not designed to work in xul documents but these problems were not present in version 1.2.6.

I used a fresh version of Firefox and only one extension (any extension) installed .

Attachments (0)
Change History (4)

Changed July 17, 2009 11:33AM UTC by gprec comment:1

Well, there is a solution. It seems that the usual way of introducing jquery in an extension is not appropriate for latest versions, so instead

''<overlay id='autosaveOverlay' xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'>''

''<script type='application/x-javascript' src='chrome://yourExtension/content/jquery-1.3.2.js'/>''

do something as

''window.addEventListener('load', function() { yourExtension.init(); }, false);''

''var yourExtension = {

''init: function() { injectjquery();}''

''}''

''function injectjquery(){

var jsLoader = Components.classes['@mozilla.org/moz/jssubscript-loader;1'].getService(Components.interfaces.mozIJSSubScriptLoader);

jsLoader.loadSubScript('chrome://yourExtension/content/jquery-1.3.2.js');

}''

Changed June 13, 2010 01:14PM UTC by dmethvin comment:2

component: unfiledcore

Changed June 13, 2010 11:49PM UTC by dmethvin comment:3

component: coresupport

Changed June 26, 2010 03:50AM UTC by dmethvin comment:4

resolution: → duplicate
status: newclosed

Grouping these under #5776.