feat: add support for chrome.tabs.query
(#39330)
* feat: add support for tabs.query * fix: scope to webContents in current session * test: add test for session behavior
This commit is contained in:
parent
0425454687
commit
d9329042e2
9 changed files with 336 additions and 2 deletions
|
@ -55,6 +55,14 @@ class TabsReloadFunction : public ExtensionFunction {
|
|||
DECLARE_EXTENSION_FUNCTION("tabs.reload", TABS_RELOAD)
|
||||
};
|
||||
|
||||
class TabsQueryFunction : public ExtensionFunction {
|
||||
~TabsQueryFunction() override {}
|
||||
|
||||
ResponseAction Run() override;
|
||||
|
||||
DECLARE_EXTENSION_FUNCTION("tabs.query", TABS_QUERY)
|
||||
};
|
||||
|
||||
class TabsGetFunction : public ExtensionFunction {
|
||||
~TabsGetFunction() override {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue