Skip to content
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

[py] property strict_timestamp was added #14168

Merged
merged 7 commits into from
Jun 22, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions py/selenium/webdriver/firefox/firefox_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(self, profile_directory=None):
This defaults to None and will create a new
directory when object is created.
"""

titusfortner marked this conversation as resolved.
Show resolved Hide resolved
self._desired_preferences = {}
if profile_directory:
newprof = os.path.join(tempfile.mkdtemp(), "webdriver-py-profilecopy")
Expand Down Expand Up @@ -93,7 +94,6 @@ def update_preferences(self):
f.write(f'user_pref("{key}", {json.dumps(value)});\n')

# Properties

@property
titusfortner marked this conversation as resolved.
Show resolved Hide resolved
def path(self):
"""Gets the profile directory that is currently being used."""
Expand Down 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
Loading