Skip to content

Commit cebd184

Browse files
committed
Open dev downgrade prompt in tab instead of window
1 parent ecac1ab commit cebd184

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/https-everywhere.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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{

0 commit comments

Comments
 (0)