-
Notifications
You must be signed in to change notification settings - Fork 307
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
Add support for signons.txt format #36
Conversation
My primary target was signons3.txt but I also implemented the other versions since they are not much different. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All else looks good to merge.
file_id = '#2' + chr(ord('b') + self._version) | ||
assert lines[0] == file_id | ||
|
||
record_size = 3 + self._version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here detailing that with a new version of signons.txt one additional line with data was added to every record.
Also please add comments with links to http://kb.mozillazine.org/Signons.txt http://kb.mozillazine.org/Signons2.txt and http://kb.mozillazine.org/Signons3.txt for future reference.
@@ -382,6 +413,9 @@ def load_libnss(self): | |||
# If this succeeds libnss was loaded | |||
self.NSS = self.find_nss(locations, nssname) | |||
|
|||
if os.name == 'nt' and not (hasattr(self.NSS, "PR_ErrorToName") and hasattr(self.NSS, "PR_ErrorToString")): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is NSPR only needed on Windows. Do we need workarounds on other platforms too?
engines = [ | ||
(JsonCredentials, {}), | ||
(SqliteCredentials, {}), | ||
(TextCredentials, {'version': 1}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The order goes from newer to older (JSON is Firefox 32+), minor thing but should we try version 3 before 1 and 2?
f15c99d
to
6a0c69b
Compare
As Firefox 3 is almost 10 years old I'm closing this as it adds unnecessary dependencies and workarounds. |
No description provided.