On Mar 22, 7:24 pm, JD <[email protected]> wrote:
> First one - I think firebug is not loaded yet, and that's why installPath
> is undefined.
> second one gives me correct behavior and no issue with that.
>
> After that I tried again with this but getting only second result all the
> time.
I think you can repro again if you install your extension before
installing
Firebug.
> Now, First Initialization of Module/Panel doesn't give trace messages. I
> always need to swap tab to get those messages.
I am not sure if I understand this correctly, but when I open Firebug
(F12) the first time I can see the following logs in the tracing
console:
- myPanel.js stylesheet registered
- MyModule.initialize
- HelloBootAMD extension initialize
- MyPanel.initialize
Note that I have HELLOBOTAMD option on (+ fixed the return value
see below).
> function isFirebugLoaded()
> {
> try
> {
> // Import Firebug modules into this scope. It fails if Firebug
> isn't loaded yet.
> Cu.import("resource://firebug/loader.js");
> Cu.import("resource://firebug/prefLoader.js");
>
> return true;
> }
> catch (e)
> {
> }
>
> return true; *// Why this shouldn't be `return false *`
>
> }
Yep, the return value is wrong and I think it was the reason why you
saw the exception.
Fixed at:
https://github.com/firebug/extension-examples/commit/58fca1b86c4d2b6d89f1629c2ad3200d07c4be98
My test case:
1) Install the HelloBootAMD extension before Firebug
2) Restart and check about:config
3) I can see the extensions.firebug.DBG_HELLOBOOTAMD pref registered
by HelloBootAMD.
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
---
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.