File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ HTTPSEverywhere.prototype = {
547547 }
548548 if ( was_stable && ! shown ) {
549549 this . prefs . setBoolPref ( "dev_popup_shown" , true ) ;
550- this . chrome_opener ( "https ://eff.org ") ;
550+ this . tab_opener ( "chrome ://https-everywhere/content/observatory-popup.xul ") ;
551551 }
552552 } ,
553553
@@ -698,6 +698,14 @@ HTTPSEverywhere.prototype = {
698698 . open ( uri , '' , args ) ;
699699 } ,
700700
701+ tab_opener : function ( uri ) {
702+ var gb = CC [ '@mozilla.org/appshell/window-mediator;1' ]
703+ . getService ( CI . nsIWindowMediator )
704+ . getMostRecentWindow ( 'navigator:browser' )
705+ . gBrowser ;
706+ gb . selectedTab = gb . addTab ( uri ) ;
707+ } ,
708+
701709 toggleEnabledState : function ( ) {
702710 if ( this . prefs . getBoolPref ( "globalEnabled" ) ) {
703711 try {
You can’t perform that action at this time.
0 commit comments