Skip to content

Instantly share code, notes, and snippets.

@abhinavsharma
Created July 13, 2011 23:24
Show Gist options
  • Save abhinavsharma/1081570 to your computer and use it in GitHub Desktop.
Save abhinavsharma/1081570 to your computer and use it in GitHub Desktop.
Getting search engines for a browser tab in Firefox
Components.utils.import("resource://gre/modules/Services.jsm");
win=Services.wm.getMostRecentWindow("navigator:browser");
gB=win.gBrowser;
t=gB.visibleTabs[0];
tb=gB.getBrowserForTab(t);
Object.keys(tb.engines[0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment