Closed
Bug 1193712
Opened 10 years ago
Closed 10 years ago
Clearing Private Data does not log user out of sites
Categories
(Firefox for iOS :: General, defect)
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| fxios | + | --- |
People
(Reporter: aaronmt, Assigned: st3fan)
Details
(Keywords: reproducible)
Attachments
(1 file)
https://groups.google.com/a/mozilla.com/d/msgid/ios-feedback/1439372146.460776474%40f10.my.com?utm_medium=email&utm_source=footer
Visit Twitter, sign-in, clear private-data, visit Twitter -> signed-in
https://github.com/mozilla/firefox-ios/blob/master/Client/Frontend/Settings/Clearables.swift
| Reporter | ||
Comment 1•10 years ago
|
||
different workarounds http://stackoverflow.com/questions/31289838/how-to-delete-wkwebview-cookies
| Reporter | ||
Comment 2•10 years ago
|
||
also found http://www.openradar.me/20417093
| Reporter | ||
Comment 3•10 years ago
|
||
After clearing private data my container does not contain a Cookies.binarycookies file, where prior it was available and parsing it shows a large number of Twitter and related auth cookies
Updated•10 years ago
|
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → sarentz
| Assignee | ||
Comment 4•10 years ago
|
||
We do everything we need can do:
* Close all WKWebViews
* Remove persistent data stores (verified they are gone)
Opening up a new tab shows that the backend content process still had this data cached.
When the app is quit, the backend process seems to sync its data back and the persistent data stores reappear.
| Assignee | ||
Comment 5•10 years ago
|
||
This is not awesome but it seems to be the only way. We will have actual data clearing APIs in iOS9. I am going to suggest that we use this until then.
The problem is as follows: we close all webviews and we remove all persistent stores (include the cookie database) from disk. However, the content process, to which we have no access, still has this data cached. And it simply writes it back to disk.
Exiting our app right after clearing these persistent stores also terminates or disconnects the content processes. So they cannot write the cached private data back to disk.
Attachment #8647014 -
Flags: review?(rnewman)
| Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 6•10 years ago
|
||
Also disabling CPD tests because they always fail with no way to recover from the exit(0)
| Assignee | ||
Comment 7•10 years ago
|
||
Updated the patch with a new approach thanks to :sleroux
"As part of clearing private data we now also create a new WKProcessPool. This prevents the content processes to write back cached data to the main process. (The data that we just deleted)"
| Assignee | ||
Updated•10 years ago
|
Attachment #8647014 -
Flags: review?(rnewman) → review?(sleroux)
Comment 8•10 years ago
|
||
Comment on attachment 8647014 [details] [review]
PR: https://github.com/mozilla/firefox-ios/pull/912
I logged into news.ycombinator/facebook/twitter, hit clear data, and everything was gone! Can't believe this works!
Attachment #8647014 -
Flags: review?(sleroux) → review+
| Reporter | ||
Comment 9•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•