Skip to content

Commit

Permalink
[py] disable strict time stamps in Firefox profile (#14168)
Browse files Browse the repository at this point in the history
* allow zipping profiles with files and directories stamped earlier than 1980

---------

Co-authored-by: Titus Fortner <titusfortner@users.noreply.github.com>
  • Loading branch information
iampopovich and titusfortner authored Jun 22, 2024
1 parent 84828cd commit cd96b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/firefox/firefox_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def encoded(self) -> str:
if self._desired_preferences:
self.update_preferences()
fp = BytesIO()
with zipfile.ZipFile(fp, "w", zipfile.ZIP_DEFLATED) as zipped:
with zipfile.ZipFile(fp, "w", zipfile.ZIP_DEFLATED, strict_timestamps=False) as zipped:
path_root = len(self.path) + 1 # account for trailing slash
for base, _, files in os.walk(self.path):
for fyle in files:
Expand Down

0 comments on commit cd96b62

Please sign in to comment.