Bug 151646
| Summary: | [GTK] Webkit2.WebView() deletes files from ~/.cache/<executable_name> | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Aleksandr Gornostal <sanya.gornostal> |
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bugs-noreply, sanya.gornostal |
| Priority: | P2 | ||
| Version: | Other | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Aleksandr Gornostal
Environment where bug reproduces:
Ubuntu 14.04 (or Elementary OS Freya)
Python v2.7.6
Gtk v3.10.8
gir1.2-webkit2-3.0 v2.4.8
If I run the following script, all files will be deleted from ~/.cache/<file_name>/ directory
```
#!/usr/bin/python
from gi.repository import Gtk, WebKit2
WebKit2.WebView()
Gtk.main()
```
Steps to reproduce:
1. Save that to `whatevername`
2. Do `chmod +x whatevername`
3. `mkdir -p ~/.cache/whatevername && touch ~/.cache/whatevername/check`
4. Run `./whatevername`
Observe file ~/.cache/whatevername/check being removed.
Bug reproduces 100% of the time.
If I just run WebKi2t.WebView() from REPL, or if I use WebKit instead of WebKit2 it doesn't delete anything.
If you confirm the bug is valid, is there any workaround to use before a fixed version is available via apt-get?
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |