Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upwrite cookie_jar, hsts_list, auth_cache to file if profile_dir option is present #10661
Conversation
highfive
commented
Apr 17, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Apr 17, 2016
|
Good start! Reviewed 3 of 3 files at r1. components/net/cookie_storage.rs, line 16 [r1] (raw file): components/net/cookie_storage.rs, line 19 [r1] (raw file): components/net/resource_thread.rs, line 222 [r1] (raw file): fn write_json_to_file<T: Encodable>(data: &T, profile_dir: &str, filename: &str) {
...
}components/net/resource_thread.rs, line 223 [r1] (raw file): {
"version": 1,
"entries": {
...
},
}components/net/resource_thread.rs, line 230 [r1] (raw file): components/net/resource_thread.rs, line 364 [r1] (raw file): Comments from Reviewable |
|
Should I change the auth_cache type in ResourceManager from
|
|
Sure, that seems like a useful change. |
|
Almost there! Reviewed 5 of 5 files at r2. components/net/cookie.rs, line 207 [r2] (raw file): components/net/resource_thread.rs, line 210 [r2] (raw file): components/net/resource_thread.rs, line 211 [r2] (raw file): components/net/resource_thread.rs, line 214 [r2] (raw file): components/net/resource_thread.rs, line 215 [r2] (raw file): components/net/resource_thread.rs, line 219 [r2] (raw file): components/net/resource_thread.rs, line 234 [r2] (raw file): components/net/resource_thread.rs, line 330 [r2] (raw file): Comments from Reviewable |
|
Went ahead and added the part to serialize local data as well for the next step |
|
@bors-servo: r+ Reviewed 3 of 3 files at r3. Comments from Reviewable |
|
|
|
|
…ofile_dir option is present
|
@bors-servo: r+ |
|
|
write cookie_jar, hsts_list, auth_cache to file if profile_dir option is present For Persistent sessions student project "if the profile directory command-line option is present when the ResourceThread is instructed to exit, serialize the data contained in cookie_storage, hsts_list, and the new HTTP authorization cache, and write the serialized data in separate files inside the profile directory." and "perform the same serialization on shutdown for local_data in storage_thread.rs, which represents the LocalStorage API." <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10661) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
|
|
|
|
DDEFISHER commentedApr 17, 2016
•
edited
For Persistent sessions student project
"if the profile directory command-line option is present when the ResourceThread is instructed to exit, serialize the data contained in cookie_storage, hsts_list, and the new HTTP authorization cache, and write the serialized data in separate files inside the profile directory."
and
"perform the same serialization on shutdown for local_data in storage_thread.rs, which represents the LocalStorage API."
This change is