SeaMonkey:Toolkit Transition:PrefwindowPanes:HowTo: Difference between revisions

Line 6: Line 6:
This change in behaviour has some important consequences:
This change in behaviour has some important consequences:
* Any pref panel is loaded only once, hence its potential Startup() method doesn't need to care for reentrancy or persisting data over panel changes.
* Any pref panel is loaded only once, hence its potential Startup() method doesn't need to care for reentrancy or persisting data over panel changes.
* In v6, ''nsWidgetStateManager.js'' and ''nsPrefWindow.js'' are obsolete and replaced by several bindings in ''preferences.xml''.
* Any <script>s in a panel's XUL will be loaded into the main preference window (not into the panel!), hence their globals and methods are likely to clash!
* Any <script>s in a panel's XUL will be loaded into the main preference window (not into the panel!), hence their globals and methods are likely to clash!
And preference panels are called "panes" in v6.


== How to migrate a preference panel ==
== How to migrate a preference panel ==
235

edits