No default panel / tab selected / display when first activated

119 views
Skip to first unread message

pd

unread,
Sep 19, 2012, 11:14:53 PM9/19/12
to fir...@googlegroups.com
Hi

This is probably an Add-on conflict but perhaps not.

Windows 7 build 7601
Aurora 17.0a2 (2012-09-19)

1) Restart Aurora
2) Hover "Firebug" in the status bar:

"Firebug 1.10.3 Deactivated"

3) Left click Firebug in the status bar:

fbug_open-and-activate-on-loaded-page.png

4) Disable all Add-ons manually except Firebug
5) Restart Aurora:

fbug_open-and-activate-on-loaded-page[noaddons].png

I'll investigate which Add-on it is.

pd
fbug_open-and-activate-on-loaded-page.png
fbug_open-and-activate-on-loaded-page[noaddons].png

pd

unread,
Sep 19, 2012, 11:29:48 PM9/19/12
to fir...@googlegroups.com
Guys this makes sense: It's the CSS Usage 0.2.9 addon.

I disable CSS Usage 0.2.9 and I get the normal expected behaviour when left-clicking Firebug in the status bar to 'activate' it: the Console tab is selected / displays by default.

I enable CSS Usage 0.2.9 and I get fbug_open-and-activate-on-loaded-page.png (no tab displayed / selected by default)

Since CSS Usage 0.2.9 has UI that creates a new tab in Firebug, I'd suggest there's something wrong with Firebug's tab strip code.

Hope this helps.

Love the work you guys do.

pd

Jan Honza Odvarko

unread,
Sep 20, 2012, 5:51:34 AM9/20/12
to Firebug
Thanks pd!
I can reproduce the issue and I am seeing the following error (in
FBTrace) when CSS Usage 0.2.9 is installed.

EXCEPTION in Events.dispatch TabWatchListener.showContext: TypeError:
ssm.getCodebasePrincipal is not a function in chrome://cssusage/content/CssUsage.js:367

I'll ping the author of the plugin.

Honza

Jan Honza Odvarko

unread,
Sep 20, 2012, 7:45:33 AM9/20/12
to Firebug
What about nsILocalFile...?
https://developer.mozilla.org/en-US/docs/Code_snippets/File_I_O

Honza

On Sep 20, 1:34 pm, Jaap V <eijs...@gmail.com> wrote:
> This is in the localStorage section of the code.
> localStorage has the tendency to change in Fx which is really annoying.
> Previously i used
>
> Application.getExtensions(function(extensions) { storage =
> extensions.get("csscover...@spaghetticoder.org").storage; }
>
> that stopped working.
> Now i use
>
> Components.classes["@mozilla.org/scriptsecuritymanager;1"].getService(Components.interfaces.nsIScriptSecurityManager).getCodebasePrincipal(uri);
>
> which has also stopped working?
>
> Time to look into a 3rd way.
>
> Jaap

Jaap V

unread,
Sep 20, 2012, 7:48:27 AM9/20/12
to fir...@googlegroups.com
On Thursday, September 20, 2012 1:45:40 PM UTC+2, Jan Honza Odvarko wrote:
What about nsILocalFile...?
https://developer.mozilla.org/en-US/docs/Code_snippets/File_I_O

Honza

Interesting approach.
If all else fails, i might do that.

Jaap

Sebastian Zartner

unread,
Sep 20, 2012, 8:10:09 AM9/20/12
to fir...@googlegroups.com
 
Note that Firebug already has a storage service, which you could probably reuse.
Furthermore you could use the SQLite API.

Sebastian

Jaap V

unread,
Sep 20, 2012, 10:52:45 AM9/20/12
to fir...@googlegroups.com
Thanks to Sebastian it now uses Firebug's StorageService.

The new version is 0.3.0 and it can be found here (unreviewed by AMO at the moment):
 
https://addons.mozilla.org/en-US/firefox/addon/css-usage/versions/

Jaap 

Sebastian Zartner

unread,
Sep 23, 2012, 5:54:34 PM9/23/12
to fir...@googlegroups.com

Great. Works fine for me using FF 15.0.1 + FB 1.10.3 on WinXP.

When we're already here. I found another little bug. Everytime you enable or disable a Firebug panel, the CSS Usage panel prints another line Press the 'Scan' button to (re)scan the page..

Sebastian
Reply all
Reply to author
Forward
Message has been deleted
0 new messages