Permalink
Browse files

FIX: fixed start/stop application observing on firefox4 and updated i…

…nstall.rdf
  • Loading branch information...
1 parent 52ea51f commit 01006b6d56517c4a23e0a4964ba860dd7fb32c82 @rpl committed Nov 21, 2010
Showing with 13 additions and 7 deletions.
  1. +3 −4 chrome/content/server.js
  2. +10 −3 install.rdf
View
@@ -165,11 +165,8 @@ function isActive() {
function observe(subject, topic, data) {
switch(topic) {
- case 'app-startup':
+ case 'profile-after-change':
srvObserver.addObserver(this, 'network:offline-status-changed', false);
- srvObserver.addObserver(this, 'final-ui-startup', false);
- break;
- case 'final-ui-startup':
if(srvPref.getBranch('network.').getBoolPref('online') &&
pref.getBoolPref('autoStart'))
this.start(pref.getIntPref('port'));
@@ -187,6 +184,8 @@ function observe(subject, topic, data) {
break;
}
break;
+ case 'quit-application-granted':
+ this.stop();
}
}
View
@@ -9,17 +9,24 @@
<em:type>2</em:type>
<!-- firefox -->
-
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>3.0</em:minVersion>
- <em:maxVersion>3.6.*</em:maxVersion>
+ <em:maxVersion>4.0b8</em:maxVersion>
</Description>
</em:targetApplication>
- <!-- toolkit -->
+ <!-- Fennec -->
+ <em:targetApplication>
+ <Description>
+ <em:id>{a23983c0-fd0e-11dc-95ff-0800200c9a66}</em:id>
+ <em:minVersion>0.1</em:minVersion>
+ <em:maxVersion>4.0b2</em:maxVersion>
+ </Description>
+ </em:targetApplication>
+ <!-- toolkit -->
<em:targetApplication>
<Description>
<em:id>toolkit@mozilla.org</em:id>

0 comments on commit 01006b6

Please sign in to comment.