On Wednesday, November 30, 2011 8:49:07 PM UTC+1, Jhonte wrote:
>
> Hello!
>
> I don't know if this is specific to 1.8.4 but since I almost never
> change my code in the FireBug extension I maybe have missed some
> migration guidelines.
>
> The problem is that I get two tabs in FireBug (and two initialize and
> so on).
> When I set an alert in the first line in my js:
>
> alert("Loaded extension!");
> Components.utils.import("resource://firebug/firebug-trace-
> service.js");
> var FBTrace = traceConsoleService.getTracer("extensions.firebug");
> FBL.ns(function() { with (FBL) {
>
> Then the alert box is showing up twice when starting FireFox.
>
The problem are following two rows in your chrome.manifest file:
> overlay chrome://firebug/content/firebugOverlay.xul
> chrome://cssUpdater/content/ff-overlay.xul
> overlay chrome://browser/content/browser.xul
> chrome://cssUpdater/content/ff-overlay.xul
>
You are using the same file (ff-overlay.xul, which is including
ff-overlay.js) to overlay two things (firebugOverlay.xul and browser.xul),
that's why it's executed twice.
You should:
- use firebugOverlay.xul if you want to overlay Firebug UI
- use browser.xul if you want to overlay browser window UI
Honza
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug