-
Notifications
You must be signed in to change notification settings - Fork 314
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
XPI files not deleted from /tmp #1090
Comments
Hey, this sounds like smt that should be done in the shutdown code of the browser manager. Please file a pull request |
I haven't been able to find anything in the Selenium docs that would let me get the name of the temporary file that is created by This issue seems likely related to SeleniumHQ/selenium#10841, and in the comments therein, one of the posters relates it to mozilla/geckodriver#299. |
Thanks for pointing out the issue with the FF version; I'll be sure to take that into account. |
Just to be sure that this isn't caused by something I'm doing in my crawl script, here is what I think is a pretty minimal crawl script that demonstrates the undesired behavior:
After running it, there is an XPI file leftover in /tmp/. Here is the result of running the script, with some of the OpenWPM logging elided:
|
So right now my workaround, which seems to do the job, is to:
|
Right now I create the temporary directory in |
Hey, OpenWPM/openwpm/browser_manager.py Lines 732 to 742 in 566d03b
and then do the deletion in the finally blockOpenWPM/openwpm/browser_manager.py Lines 824 to 827 in 566d03b
|
OK, I will do as you suggest. One thing that I also have to do is to modify |
There is no problem with that except that you will need to pass the name of the temp dir back up to the BrowserManager store that information until it is time to clean up |
Yes, I am already doing that. |
Also, why not do the configuration in Similarly, |
I was puzzled by this comment. Aren't there updates to the Firefox version in OpenWPM commits? I thought I'd seen them before. When you say severely out of date is that because there haven't been updates in a while (say, a few months)? |
@palmeida as you can see at the bottom of this page about 70% of users upgrade within 4 weeks of a new firefox release happening. I can't find statistics about the breakdown of n-1 to n-4 but you are not representing the typical user if you are using a version of the browser that is 4 releases out of date (currently 123 vs 127)
By my definition not updating within 2 weeks of a new Firefox release happening is being out of date. But doing that every four weeks on a project that is a hobby for me during a time where I'm very busy is just not sustainable. |
@vringar Thank you for the information, I wasn't aware of that statistic. Manually updating is absolutely fine, I just hadn't seen the need before. |
@palmeida if you have done this, could you please also open a PR, so that the commons remain maintained. |
@vringar I haven't done this, but maybe we can discuss it in a GH discussion, as you suggested. I might be able to maintain it. I'm bit hesitant because I've offered to help before and ended up not having time, but if you share the update process I can look into it. |
Preface: I don't think this is an OpenWPM bug, but I'm wondering if anybody has suggestions on how to work around it.
Platform: OpenWPM v0.28, Selenium 4.21.0, Geckodriver 0.34.0.
When the extension is added to a deployed Firefox instance in
deploy_firefox.py
, line 161, a copy of the XPI file is made in/tmp
, presumably by either Selenium orgeckodriver
. The problem is that it is not deleted.That's a problem, since when I was crawling a large number of sites, I ended up with enough copies of the XPI file in
/tmp
that it filled up.As I said, I don't think this is the fault of OpenWPM. My understanding is that Selenium's
WebDriver.quit()
is supposed to delete temporary files. It does appear to delete profile directories, just not XPI files.Has anyone else seen this? And if so, any suggested workarounds?
The text was updated successfully, but these errors were encountered: