I’m wondering what the equivalent call to the Chrome API Would be for this line?
var browser = gBrowser.getBrowserForDocument(doc);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There isn’t an equivalent. The APIs are different. If you want the history, for example, you’d need to use the
chrome.historymodule. If you want to control what pages are loaded in what tabs, you’d need to use thechrome.tabsmodule, and so on.The various extension capabilities are covered in the developer’s guide.