Skip to content

Commit

Permalink
- wip, preparing for "smart addon reload" that keeps addon pages open…
Browse files Browse the repository at this point in the history
…ed (including dev console!):

mozilla#2965
  • Loading branch information
Juraj-Masiar committed Jan 5, 2024
1 parent 3063a77 commit 789d7b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ dist/*
artifacts/*
coverage/*
lib/

# IDE
/.idea/*
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-ext",
"version": "7.6.0",
"version": "7.7.0",
"description": "A command line tool to help build, run, and test web extensions",
"type": "module",
"main": "index.js",
Expand Down
4 changes: 3 additions & 1 deletion src/firefox/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ export class RemoteFirefox {
async reloadAddon(addonId) {
const addon = await this.getInstalledAddon(addonId);
await this.checkForAddonReloading(addon);
await this.addonRequest(addon, 'reload');
// todo: query opened tabs, filter those with "moz-extension://" URLs, each of them navigate to "about:blank", then reload the addon and then for each of them again call "goBack"
const response = await this.addonRequest(addon, 'reload');
log.debug('Firefox response:', response);
process.stdout.write(
`\rLast extension reload: ${new Date().toTimeString()}`,
);
Expand Down

0 comments on commit 789d7b4

Please sign in to comment.