Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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