File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ function stitch_context_menu() {
4141 menu . appendChild ( popup . cloneNode ( true ) ) ;
4242 }
4343}
44+ function stitch_context_menu2 ( ) {
45+ // the same menu appears both under Tools and via the toolbar button:
46+ var menu = document . getElementById ( "https-everywhere-menu2" ) ;
47+ if ( ! menu . firstChild ) {
48+ var popup = document . getElementById ( "https-everywhere-context" ) ;
49+ menu . appendChild ( popup . cloneNode ( true ) ) ;
50+ }
51+ }
4452
4553function show_applicable_list ( menupopup ) {
4654 var domWin = content . document . defaultView . top ;
Original file line number Diff line number Diff line change 1616 </menu >
1717 </menupopup >
1818
19+ <menupopup id =" toolsPopup" onpopupshowing =" stitch_context_menu2()" >
20+ <menu id =" https-everywhere-menu2" label =" &https-everywhere.about.ext_name; " >
21+ <!-- "https-everywhere-context" below gets .cloneNode()ed in here -->
22+ </menu >
23+ </menupopup >
24+
1925 <toolbarpalette id =" BrowserToolbarPalette" >
2026 <toolbarbutton
2127 id =" https-everywhere-button"
You can’t perform that action at this time.
0 commit comments