Activation

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Added detailed description of how the activation model works)
m
 
(2 intermediate revisions not shown)
Line 4: Line 4:
=== Per URL (whitelist) ===
=== Per URL (whitelist) ===
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.
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] with the exception that [http://code.google.com/p/fbug/issues/detail?id=2202 subdomains are not treated differently].
+
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.)
-
Example:
+
''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.
+
Firebug is activated for https://getfirebug.com. When you go to https://getfirebug.com/wiki/index.php/Main_Page it will be activated as well. But if you go to https://blog.getfirebug.com or http://mozilla.org, it won't be activated.
-
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.
+
There's a [[Preferences|preference]] ''Activate Same Origin URLs'' to control whether the activation should follow the same origin policy. If this option is disabled, Firebug will disregard the origin when deciding to activate or not, i.e. Firebug can be activated for each URL path individually disregarding parameters and anchors.
-
Example:
+
''Example (with "Activate Same Origin URLs" unchecked):''
-
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.
+
Firebug is activated for https://getfirebug.com. When you go to https://getfirebug.com/wiki/index.php/Main_Page it won't be activated like when you go to https://blog.getfirebug.com.<br/>Though when you activate it for https://getfirebug.com/wiki/index.php/Main_Page, it will also be activated for https://getfirebug.com/wiki/index.php/Console_Panel, https://getfirebug.com/wiki/index.php/Firebug_Preferences#Main_preferences and https://getfirebug.com/wiki/index.php?title=Main_Page&action=edit.
=== Always enabled ===
=== Always enabled ===
Line 35: Line 35:
== See also ==
== See also ==
-
* [http://code.google.com/p/fbug/issues/detail?id=2202 Issue 2202]
+
* [http://code.google.com/p/fbug/issues/detail?id=2202 Issue 2202: Activate Same Origin URLs enhancements]
* [http://groups.google.com/group/firebug/browse_thread/thread/bae5e4921483e684 Newsgroup discussion]
* [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]])
* [[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]])

Latest revision as of 09:20, 29 October 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

[edit] Firebug Activation

[edit] 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 https://getfirebug.com. When you go to https://getfirebug.com/wiki/index.php/Main_Page it will be activated as well. But if you go to https://blog.getfirebug.com or http://mozilla.org, it won't be activated.

There's a preference Activate Same Origin URLs to control whether the activation should follow the same origin policy. If this option is disabled, Firebug will disregard the origin when deciding to activate or not, i.e. Firebug can be activated for each URL path individually disregarding parameters and anchors.

Example (with "Activate Same Origin URLs" unchecked):

Firebug is activated for https://getfirebug.com. When you go to https://getfirebug.com/wiki/index.php/Main_Page it won't be activated like when you go to https://blog.getfirebug.com.
Though when you activate it for https://getfirebug.com/wiki/index.php/Main_Page, it will also be activated for https://getfirebug.com/wiki/index.php/Console_Panel, https://getfirebug.com/wiki/index.php/Firebug_Preferences#Main_preferences and https://getfirebug.com/wiki/index.php?title=Main_Page&action=edit.

[edit] 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.

[edit] 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.

[edit] See also

Personal tools