-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser profile directories (Chrome and Firefox) are not deleted after web-ext disconnects #2205
Comments
...
"webExt": {
"sourceDir": "distribution",
"run": {
"keepProfileChanges": true,
"firefoxProfile": "./test/web-ext-profile",
"chromiumProfile": "./test/web-ext-profile",
"startUrl": [
"github.com"
]
}
}
} Can you run |
Thank you for clarifying! Here (using Chrome Canary) :
|
It looks like the @darkred If you change To resolve this bug, I guess that we can canonicalize the relative path (turn it into an absolute path before use). It is a bad idea to use a subdirectory of the current directory as the profile directory though... The extension will probably reload repeatedly, because changes are detected in the current directory. |
This comment has been minimized.
This comment has been minimized.
Correction: After web-ext disconnects, the small directory gets removed, My modified |
@Rob--W Based on my previous comment, shouldn't the large folder in %temp% also be deleted after web-ext disconnects? |
Is this a feature request or a bug?
Bug
(related: #1981)
What is the current behavior?
I use web-ext to build and test an extension, Refined GitHub. It's located in
C:\refined-github
.Inside the above directory (cd
C:\refined-github
),I use
npm run start:firefox
(web-ext run
) which launches Firefox.or
npm run start
(web-ext run --target=chromium
) which launches Chrome stable/canary .While the Firefox/Chrome browser instance is running,
I've noticed that a
mozilla-temp-files
/tmp-web-ext
directory is created in%temp%
.Additionally, a new temporary profile in created in :
C:\refined-github\test\web-ext-profile
C:\refined-github\test\web-ext-profile\Default
C:\Users\Kostas\AppData\Local\Google\Chrome SxS\Application\test\web-ext-profile\Default
i.e. the 1st and 2rd are created inside the current directory
C:\refined-github
,while the 3nd is created inside Canary installation path.
Now, when web-ext disconnects (either because I press Ctrl+C in console, or just close the browser window),
then the
mozilla-temp-files
/tmp-web-ext
directory in%temp%
is indeed removed,but the profile directory (mentioned above) and its contents all remain,
and if I re-launch
npm run start
it re-uses the profile from before.What is the expected or desired behavior?**
Is this the expected behavior?
Shouldn't these new temporary profile directories be removed when web-ext disconnects?
I'd expect the temporary profile to be removed on disconnect. This would justify its "temporary" name, right?
Especially about the Canary temporary profile: it's created inside the Canary installation directory (see path above),
but it's not listed in Canary's 'Manage profiles' list, so the user has to remove it manually.
Version information (for bug reports)
The text was updated successfully, but these errors were encountered: