Activation

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{stub}} The discussions on this newsgroup helped me realize that another way of explaining the user interface in 1.4 may help people familiar with the 1.3 mechanism. In 1.4 yo…')
(Treating of subdomains was changed in 1.11)
(3 intermediate revisions not shown)
Line 1: Line 1:
-
{{stub}}
+
Activation in [[Firebug Terminology]] means enabling its modules, so they start processing the data of a specific website. Firebug supports different activation models. These models were improved over time. The biggest change happened in [[Firebug 1.4 Release Notes|Firebug 1.4]].
-
The discussions on this newsgroup helped me realize that another way
+
== Firebug Activation ==
-
of explaining the user interface in 1.4 may help people familiar with
+
=== Per URL (whitelist) ===
-
the 1.3 mechanism.
+
The default behavior is to enable Firebug per URL. This means that if you open Firebug via <code class="key">F12</code> or by clicking its [[Start Button]] being at a website, the next time you visit the same website the Firebug window will be opened again.
 +
It thereby follows the [http://en.wikipedia.org/wiki/Same_origin_policy same origin policy]. (Note that there was one exception in regard of [http://code.google.com/p/fbug/issues/detail?id=2202 subdomains not being treated differently]. This was fixed in Firebug 1.11.)
-
In 1.4 you add a domain to the whitelist by opening Firebug on a page
+
''Example:''
-
in that domain. So for example if you open the URL http://getfirebug.com,
+
-
then open Firebug, the domain getfirebug.com is added to the
+
-
whitelist. If you subsequently open http://blog.getfirebug.com,
+
-
Firebug will be opened because getfirebug.com is on the whitelist.
+
-
In 1.4 you add a domain to the blacklist by clicking [X] in the upper
+
Firebug is activated for http://getfirebug.com. When you go to http://getfirebug.com/wiki/index.php/Main_Page it will be activated as well. Also if you go to http://blog.getfirebug.com the Firebug window will be opened. But if you go to http://mozilla.org, it won't be activated.
-
right corner of Firebug when Firebug is open on a page in that domain.
+
-
Continuing the example above, while on http://blog.getfirebug.com, if
+
-
you click the [X] button Firebug closes. When you go back to
+
-
http://getfirebug.com, Firebug is still closed because getfirebug.com
+
-
is on the blacklist.
+
-
A few details:
+
There's a [[Preferences|preference]] ''Activate Same Origin URLs'' to control if the activation should follow the same origin policy. If this option is disabled, Firebug will disregard the origin when deciding to activate or not.
-
First the mechanism used for the tests is closer to the same-origin
+
''Example:''
-
policy of Firefox than simple domain comparison. The case that will
+
-
probably confuse people is http vs https: Firebug like Firefox
+
-
considers http://getfirebug.com to be different than https://getfirebug.com.
+
-
Second, this description assumes you have 1.4b5 or later and that you
+
Firebug is activated for http://getfirebug.com. When you go to http://getfirebug.com/wiki/index.php/Main_Page it won't be activated as well as when you go to http://blog.getfirebug.com.
-
leave the default option Activate Same Origin checked.
+
 
 +
=== Always enabled ===
 +
Firebug will always be activated. This means Firebug will be activated regardless of which page you visit. This behavior can be enabled via ''[[Start Button#Options|Firebug Start Button Menu]] > On for All Web Pages''.
 +
 
 +
Having this option enabled also hides options to deactivate Firebug.
 +
 
 +
== Panel Activation ==
 +
Besides the general activation of Firebug there are also some panels, which allow to enable/disable them. The reason for disabling single panels is to avoid wasting system resources for things you don't need. E.g. as a web designer you probably won't need the [[Net Panel]] functionality.
 +
 
 +
The panel activation model currently only supports an on/off state. I.e. if you enable the [[Script Panel]], it will subsequently be enabled for all sites Firebug is activated for.
 +
 
 +
Currently Firebug has three panels that support activation:
 +
 
 +
* [[Console Panel]]
 +
* [[Script Panel]]
 +
* [[Net Panel]]
 +
 
 +
Also there are some [[Firebug Extensions|extensions]], which allow disabling their panels.
 +
 
 +
== See also ==
 +
* [http://code.google.com/p/fbug/issues/detail?id=2202 Issue 2202]
 +
* [http://groups.google.com/group/firebug/browse_thread/thread/bae5e4921483e684 Newsgroup discussion]
 +
* [[Firebug Extensions#FireStarter|FireStarter]]: Extends Firebug's activation model (development currently on ice; see how you can [[How to become a contributor#Creating extensions|help]])

Revision as of 22:22, 18 August 2013

Activation in Firebug Terminology means enabling its modules, so they start processing the data of a specific website. Firebug supports different activation models. These models were improved over time. The biggest change happened in Firebug 1.4.

Contents

Firebug Activation

Per URL (whitelist)

The default behavior is to enable Firebug per URL. This means that if you open Firebug via F12 or by clicking its Start Button being at a website, the next time you visit the same website the Firebug window will be opened again. It thereby follows the same origin policy. (Note that there was one exception in regard of subdomains not being treated differently. This was fixed in Firebug 1.11.)

Example:

Firebug is activated for http://getfirebug.com. When you go to http://getfirebug.com/wiki/index.php/Main_Page it will be activated as well. Also if you go to http://blog.getfirebug.com the Firebug window will be opened. But if you go to http://mozilla.org, it won't be activated.

There's a preference Activate Same Origin URLs to control if the activation should follow the same origin policy. If this option is disabled, Firebug will disregard the origin when deciding to activate or not.

Example:

Firebug is activated for http://getfirebug.com. When you go to http://getfirebug.com/wiki/index.php/Main_Page it won't be activated as well as when you go to http://blog.getfirebug.com.

Always enabled

Firebug will always be activated. This means Firebug will be activated regardless of which page you visit. This behavior can be enabled via Firebug Start Button Menu > On for All Web Pages.

Having this option enabled also hides options to deactivate Firebug.

Panel Activation

Besides the general activation of Firebug there are also some panels, which allow to enable/disable them. The reason for disabling single panels is to avoid wasting system resources for things you don't need. E.g. as a web designer you probably won't need the Net Panel functionality.

The panel activation model currently only supports an on/off state. I.e. if you enable the Script Panel, it will subsequently be enabled for all sites Firebug is activated for.

Currently Firebug has three panels that support activation:

Also there are some extensions, which allow disabling their panels.

See also

Personal tools