File tree 2 files changed +37
-0
lines changed
ide/main/src/content/health
2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ if ( HealthService && HealthService . addDiagnostic ) {
3
+ HealthService . addDiagnostic ( 'Browser' , {
4
+ runDiagnostic : function ( ) {
5
+ var appinfo = Services . appinfo ;
6
+ return {
7
+ os : appinfo . OS ,
8
+ name : appinfo . name ,
9
+ version : appinfo . version ,
10
+ ID : appinfo . ID ,
11
+ vendor : appinfo . vendor ,
12
+ platformBuildID : appinfo . platformBuildID ,
13
+ platformVersion : appinfo . platformVersion ,
14
+ userAgent : window . navigator . userAgent
15
+ } ;
16
+ }
17
+ } ) ;
18
+ } else {
19
+ alert ( "Cannot add Browser diagnostic provider to HealthService" ) ;
20
+ }
Original file line number Diff line number Diff line change
1
+
2
+ if ( HealthService && HealthService . addDiagnostic ) {
3
+ HealthService . addDiagnostic ( 'SeleniumIDE' , {
4
+ runDiagnostic : function ( ) {
5
+ var version = Components . classes [ "@mozilla.org/intl/stringbundle;1" ]
6
+ . getService ( Components . interfaces . nsIStringBundleService )
7
+ . createBundle ( "chrome://selenium-ide/locale/selenium-ide.properties" ) . GetStringFromName ( 'selenium-ide.version' ) ;
8
+ var isSidebar = document . getElementById ( "selenium-ide-sidebar" ) ? true : false ;
9
+ return {
10
+ version : version ,
11
+ sidebar : isSidebar
12
+ } ;
13
+ }
14
+ } ) ;
15
+ } else {
16
+ alert ( "Cannot add SeleniumIDE diagnostic provider to HealthService" ) ;
17
+ }
You can’t perform that action at this time.
0 commit comments