Closed Bug 1467554 Opened 2 years ago Closed 2 years ago
[wpt-sync] Sync PR 11382 - Fix the Temporary
File mode to prevent crashing .
Sync web-platform-tests PR 11382 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/web-platform-tests/wpt/pull/11382 Details from upstream follow. David Heiberg <email@example.com> wrote: > Fix the TemporaryFile mode to prevent crashing. > > In `request.py`, if a remote file is bigger than the given `max_buffer_size`, it will use a [TemporaryFile](https://docs.python.org/3/library/tempfile.html#tempfile.TemporaryFile). The mode for this tempfile caused an error `IOError: [Errno 9] Bad file descriptor` to happen on line 84. Removing this mode and using the default `w+b` fixes this.
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/5d5fed1922dd [wpt PR 11382] - Fix the TemporaryFile mode to prevent crashing., a=testonly
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/73b0e112fdfc [wpt PR 11382] - Fix the TemporaryFile mode to prevent crashing., a=testonly
Result changes from PR not available.
You need to log in before you can comment on or make changes to this bug.