Bug Tracker

Opened 14 years ago

Closed 13 years ago

#4794 closed bug (duplicate)

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 .

Change History (4)

comment:1 Changed 14 years ago by gprec

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'); }

comment:2 Changed 13 years ago by dmethvin

Component: unfiledcore

comment:3 Changed 13 years ago by dmethvin

Component: coresupport

comment:4 Changed 13 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Grouping these under #5776.

Note: See TracTickets for help on using tickets.