Tuesday, December 25, 2012

getcurrent()

getCurrent() should not be used at all from non tab context, ex: popup or background page, it should be used only when the current call is made from a tab context.

getCurrent should be used only inside extension's own pages that have a tab associated with them (options.html for example), you can't use it from a background or popup page

No comments: