tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

helper_bug1170484.js (501B)


      1 /* eslint-env mozilla/chrome-script */
      2 
      3 // Chrome scripts are run with synchronous messages, so make sure we're completely
      4 // decoupled from the content process before doing this work.
      5 Cu.dispatch(function () {
      6  let chromeWin = Services.ww.activeWindow;
      7  let contextMenu = chromeWin.document.getElementById("contentAreaContextMenu");
      8  var suggestion = contextMenu.querySelector(".spell-suggestion");
      9  suggestion.doCommand();
     10  contextMenu.hidePopup();
     11  sendAsyncMessage("spellingCorrected");
     12 });