Skip to content

Commit

Permalink
Bug 1902341 - Increase screenshots fallback filename length for Windo…
Browse files Browse the repository at this point in the history
…ws. r=sfoster

Differential Revision: https://phabricator.services.mozilla.com/D213609

UltraBlame original commit: cadbd1d64feb46499084bde1362c1b43904e9958
  • Loading branch information
marco-c committed Jun 16, 2024
1 parent f0424a9 commit 4b1b1b8
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions browser/components/screenshots/fileHelpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,16 @@ MAX_PATH_LENGTH_WINDOWS
;
/
/
Windows
allows
255
character
filenames
in
the
filepicker
/
/
macOS
has
a
Expand All @@ -163,12 +173,6 @@ MAX_FILENAME_LENGTH
=
255
;
export
const
FALLBACK_MAX_FILENAME_LENGTH
=
64
;
ChromeUtils
.
defineESModuleGetters
Expand Down Expand Up @@ -302,14 +306,15 @@ directory
exists
.
Otherwise
we
just
return
a
Windows
allows
*
fallback
filename
length
255
character
filenames
in
the
filepicker
.
*
*
Expand Down Expand Up @@ -346,6 +351,10 @@ null
{
if
(
!
downloadDir
|
|
AppConstants
.
platform
Expand All @@ -361,11 +370,6 @@ return
MAX_FILENAME_LENGTH
;
}
if
(
downloadDir
)
{
return
MAX_PATH_LENGTH_WINDOWS
-
Expand All @@ -376,10 +380,6 @@ length
1
;
}
return
FALLBACK_MAX_FILENAME_LENGTH
;
}
/
*
*
Expand Down

0 comments on commit 4b1b1b8

Please sign in to comment.