Bug Tracker

Ticket #4794 (closed bug: duplicate)

Opened 5 years ago

Last modified 4 years ago

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

comment:1 Changed 5 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 4 years ago by dmethvin

  • Component changed from unfiled to core

comment:3 Changed 4 years ago by dmethvin

  • Component changed from core to support

comment:4 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

Grouping these under #5776.

Note: See TracTickets for help on using tickets.