Commit Graph
194 Commits
Author SHA1 Message Date
Daniel Holbert 3073bdc4ca Bug 2043345: Use MakeRefPtr to do allocation for various RefPtr variables in widget/windows. r=win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D302956
2026-05-29 03:43:03 +00:00
David Parks 74daff444a Bug 2038868: Set Zone.Identifier for dragged URLs r=win-reviewers,gstoll
An (AFAICT undocumented) long-standing feature in Windows is the ability to
set the Zone.Identifier ADS on a file by writing to a file named
"${filename}:Zone.Identifier".  In DND, this patch exports this alongside
the ${filename} that will be used for the shortcut, so explorer writes both.
This causes the UAC to kick in when the shortcut is launched.

Differential Revision: https://phabricator.services.mozilla.com/D301935
2026-05-27 23:13:43 +00:00
Atila Butkovits 767f423839 Revert "Bug 2038868: Set Zone.Identifier for dragged URLs r=win-reviewers,gstoll" for causing failures at nsDataObj.cpp.
This reverts commit 4a3476df14.
2026-05-22 21:16:48 +00:00
David Parks 4a3476df14 Bug 2038868: Set Zone.Identifier for dragged URLs r=win-reviewers,gstoll
An (AFAICT undocumented) long-standing feature in Windows is the ability to
set the Zone.Identifier ADS on a file by writing to a file named
"${filename}:Zone.Identifier".  In DND, this patch exports this alongside
the ${filename} that will be used for the shortcut, so explorer writes both.
This causes the UAC to kick in when the shortcut is launched.

Differential Revision: https://phabricator.services.mozilla.com/D301935
2026-05-22 19:33:59 +00:00
Nika Layzell 5f0f9dd22a Bug 2020817 - Part 4: Annotate & clean up nsACString callers of BeginReading/Data, r=xpcom-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,toolkit-telemetry-reviewers-rotation,layout-reviewers,dom-worker-reviewers,gfx-reviewers,webgpu-reviewers,necko-reviewers,dom-core,smaug,handyman,emilio,pehrsons,kershaw,timhuang,edenchuang,padenot,bradwerth
This is a large number of largely mechanical changes. When possible, the code
was called to directly call `.get()` instead, performing the assertions
manually. In many places PromiseFlatCString() calls were added to dynamically
copy the strings into null terminated buffers if the string was not null
terminated.

Differential Revision: https://phabricator.services.mozilla.com/D286158
2026-03-25 08:23:04 +00:00
Sylvestre Ledru 4f6b8b516d Bug 2023419 - Remove Emacs/Vim modelines from widget/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287877
2026-03-16 17:22:02 +00:00
Emilio Cobos Álvarez 6a9374258b Bug 2014945 - Avoid \n in NS_WARNING. r=stransky,necko-reviewers,webrtc-reviewers,dbaker
It is not needed and makes the warning filename and so on show up in a
different line.

Differential Revision: https://phabricator.services.mozilla.com/D282098
2026-02-06 08:45:22 +00:00
serge-sans-paille 1667ec582b Bug 1995723 - Remove unused inclusion of mozilla/ArrayUtils.h r=necko-reviewers,application-update-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,firefox-svg-reviewers,layout-reviewers,gstoll,canaltinova,bytesized,alwu,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D269573
2025-10-23 07:30:37 +00:00
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +00:00
Greg Stoll 18c86f8432 Bug 1958096 - Prefer files over images for CF_HDROP drag and drop on Windows r=cmartin,win-reviewers
When dropping an image over Total Commander, we first offer a .png file
regardless of the source image type, which requires converting to .png
and losing the original file name. Instead, if an application requests
CF_HDROP (which represents an existing file), prefer a file or file promise
if the nsDataObj has one, and only fall back to a native image if it does
not.

Differential Revision: https://phabricator.services.mozilla.com/D253035
2025-06-10 16:25:00 +00:00
Malte Jürgens 2fa5b90986 Bug 1909051 - Disable HTTPS-Only for drag-and-drop requests r=tschuster,win-reviewers,gstoll
HTTPS-Only should be disabled for any repeated request caused by a file
drag-and-drop, as HTTPS-Only may block the repeated request if it is insecure,
even if the original request was exempt from HTTPS-Only. Disabling HTTPS-Only
completely is fine in this case, because if we are dragging from an insecure
source, that source must already be exempt from HTTPS-Only, as it otherwise
would have been upgraded already by HTTPS-Only.

The changes in nsContentAreaDragDrop and nsWebBrowserPersist fix this problem on
macOS, the changes in widget/windows/nsDataObj fix it in Windows.

Differential Revision: https://phabricator.services.mozilla.com/D244905
2025-04-28 15:31:41 +00:00
Ray Kraesig 8e3b08baff Bug 1942424 - [5/5] Clean up nsDataObj::GetFile() helpers r=win-reviewers,gstoll
Factor out the essentially-identical fragments of the helper functions
called by nsDataObj::GetFile() into a single less-messy auxiliary
function.

No functional changes, beyond better failure return value reporting.

Differential Revision: https://phabricator.services.mozilla.com/D236081
2025-02-06 15:35:11 +00:00
Ray Kraesig 5788bad01a Bug 1942424 - [4/5] Rewrite nsDataObj::GetText() r=win-reviewers,gstoll
Again, convert C-style explicit allocations to use RAII.

No functional changes -- not even to fix questionable return values.

Differential Revision: https://phabricator.services.mozilla.com/D236080
2025-02-06 15:35:10 +00:00
Ray Kraesig 6441b5b4ae Bug 1942424 - [0/5] Add ScopedOLELock and ScopedOLEMemory r=win-reviewers,gstoll
Add new RAII types for managing and working with the Win32 API functions
Global{Alloc,Free,Lock,Unlock}.

As examples of their use, convert a small collection of uninteresting
uses of these functions to use the RAII types. (More interesting uses
will follow in later commits.)

No functional changes, unless unconditionally zeroing freshly-allocated
memory is somehow a functional change.

Differential Revision: https://phabricator.services.mozilla.com/D236075
2025-02-06 15:35:08 +00:00
Butkovits Atila d20ff409d6 Backed out 7 changesets (bug 1942424) for causing frequent crashes. a=backout
Backed out changeset 2ef94d05cb19 (bug 1942424)
Backed out changeset 6267decdcb0a (bug 1942424)
Backed out changeset e0e5bd85840e (bug 1942424)
Backed out changeset 1c68d753246c (bug 1942424)
Backed out changeset 99b7423c200d (bug 1942424)
Backed out changeset ded2ac00ad2d (bug 1942424)
Backed out changeset 85d4951610a7 (bug 1942424)
2025-02-04 16:55:07 +02:00
Ray Kraesig 08308c28a2 Bug 1942424 - [5/5] Clean up nsDataObj::GetFile() helpers r=win-reviewers,gstoll
Factor out the essentially-identical fragments of the helper functions
called by nsDataObj::GetFile() into a single less-messy auxiliary
function.

No functional changes, beyond better failure return value reporting.

Differential Revision: https://phabricator.services.mozilla.com/D236081
2025-02-03 17:22:19 +00:00
Ray Kraesig 7cbbe17cfa Bug 1942424 - [4/5] Rewrite nsDataObj::GetText() r=win-reviewers,gstoll
Again, convert C-style explicit allocations to use RAII.

No functional changes -- not even to fix questionable return values.

Differential Revision: https://phabricator.services.mozilla.com/D236080
2025-02-03 17:22:19 +00:00
Ray Kraesig a657acf935 Bug 1942424 - [0/5] Add ScopedOLELock and ScopedOLEMemory r=win-reviewers,gstoll
Add new RAII types for managing and working with the Win32 API functions
Global{Alloc,Free,Lock,Unlock}.

As examples of their use, convert a small collection of uninteresting
uses of these functions to use the RAII types. (More interesting uses
will follow in later commits.)

No functional changes, unless unconditionally zeroing freshly-allocated
memory is somehow a functional change.

Differential Revision: https://phabricator.services.mozilla.com/D236075
2025-02-03 17:22:17 +00:00
Ray Kraesig 2be5480281 Bug 1832396 - offer PNG for outbound copy/paste of images on Windows r=win-reviewers,ahale,gstoll
While we really should fix our BMP alpha-channel handling, this is good
enough for most purposes.

This doesn't affect pasting images _into_ Firefox, nor drag-and-drop (in
either direction); these will have to be dealt with in a later patch.

Differential Revision: https://phabricator.services.mozilla.com/D177868
2025-01-17 19:42:43 +00:00
Ray Kraesig 496ebbaeae Bug 1598915 - [1/2] Drive-by cleanup: replace manual pointer-fiddling with RefPtr r=win-reviewers,handyman
`nsDataObj::mTransferable`'s lifecycle and ownership semantics are
trivially that of `RefPtr`. Use it.

(We do not presently extend this to `m_enumFE`, below; according to
comments in IEnumFE.h, that one's less trivial.)

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D216624
2024-07-16 22:09:38 +00:00
Tamas Szentpeteri 68012aa965 Backed out 2 changesets (bug 1598915) for causing build bustages on nsDragService.cpp. CLOSED TREE
Backed out changeset 340e2d1b2d23 (bug 1598915)
Backed out changeset 415be9b49528 (bug 1598915)
2024-07-17 00:53:21 +03:00
Ray Kraesig b3fe11866a Bug 1598915 - [1/2] Drive-by cleanup: replace manual pointer-fiddling with RefPtr r=win-reviewers,handyman
`nsDataObj::mTransferable`'s lifecycle and ownership semantics are
trivially that of `RefPtr`. Use it.

(We do not presently extend this to `m_enumFE`, below; according to
comments in IEnumFE.h, that one's less trivial.)

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D216624
2024-07-16 17:49:30 +00:00
Edgar Chen 546880ae4d Bug 1867636 - Rename nsITransferable::requestingPrincipal; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D207272
2024-04-18 10:06:07 +00:00
Tom Schuster 30930ea2b7 Bug 1808146 - When creating a file promise for images, remember the referrer. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D172920
2023-03-22 21:55:08 +00:00
Ray Kraesig 6fbd73be75 Bug 1815987 - Rewrite data-read loop in OnDataAvailable r=yjuglaret
The read-loop in OnDataAvailable is needlessly baroque and uses a very
strange dialect of Hungarian notation. Factor out the zero-element case
for simplicity (of explication, if nothing else), and add justificatory
comments as appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D171001
2023-03-14 19:54:26 +00:00
Neil Deakin 5195217e8b Bug 1819760, don't modify extensions when trying to create a desktop shortcut, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D171639
2023-03-07 14:01:04 +00:00
Nika Layzell 1582a62a38 Bug 1542802 - Part 1: Replace LazyIdleThread with a thin wrapper around nsThreadPool, r=jesup,gstoll
This does not reduce the number of threads we end up using in these
cases, but simplifies the complex implementation substantially by
relying on the idle thread lifetime management logic from nsThreadPool.

The nsISerialEventTarget implementation is maintained by wrapping the
nsThreadPool with a TaskQueue.

As a result of using these more reliable backing implementations, the
type is now also safe to use from any thread, rather than requiring
dispatches to all occur from the creator thread.

Unfortunately, this required some changes to the
UntrustedModulesProcessor, which was relying on the ability to fetch the
PRThread* (and from that the HANDLE) from the lazy thread in order to
perform priority changes on it. This was fixed by using a
nsIThreadPoolListener to watch the thread being created and destroyed,
and manually record a HANDLE to the thread which can be used for these
priority changes.

Differential Revision: https://phabricator.services.mozilla.com/D168017
2023-03-02 15:52:32 +00:00
Csoregi Natalia d542110f53 Backed out changeset eafcabbf729b (bug 1542802) for causing Gtest crashes. CLOSED TREE 2023-02-03 00:03:53 +02:00
Nika Layzell b735298e12 Bug 1542802 - Replace LazyIdleThread with a thin wrapper around nsThreadPool, r=jesup,gstoll
This does not reduce the number of threads we end up using in these
cases, but simplifies the complex implementation substantially by
relying on the idle thread lifetime management logic from nsThreadPool.

The nsISerialEventTarget implementation is maintained by wrapping the
nsThreadPool with a TaskQueue.

As a result of using these more reliable backing implementations, the
type is now also safe to use from any thread, rather than requiring
dispatches to all occur from the creator thread.

Unfortunately, this required some changes to the
UntrustedModulesProcessor, which was relying on the ability to fetch the
PRThread* (and from that the HANDLE) from the lazy thread in order to
perform priority changes on it. This was fixed by using a
nsIThreadPoolListener to watch the thread being created and destroyed,
and manually record a HANDLE to the thread which can be used for these
priority changes.

Differential Revision: https://phabricator.services.mozilla.com/D168017
2023-02-02 19:43:31 +00:00
Neil Deakin 21426e24f4 Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato
Most usage is a straight replacement but gtk needs extra changes as it transfers plain text in UTF8 natively and needs to be converted into UTF16, and Windows uses single-byte characters for RTF and CF_HTML formats so we preserve this.

Differential Revision: https://phabricator.services.mozilla.com/D158587
2023-02-01 23:30:55 +00:00
Neil Deakin 0d5fd6af29 Bug 1806730, remove the redundant filename length checking that ValidateFileNameForSaving already does, r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D165477
2023-01-16 18:15:02 +00:00
Tyler Paplham 37ea6c5ac0 Bug 1335111 - Changed shortcut link extensions to '.url' instead of '.URL'. r=rkraesig
Differential Revision: https://phabricator.services.mozilla.com/D166250
2023-01-09 16:50:15 +00:00
Nicolai Kasper 3b62dfb454 Bug 1746139 - Keeping filename ending intact when using windows with events like drag and drop. r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D141941
2022-11-05 03:21:35 +00:00
Ray Kraesig 598d90fb75 Bug 1754803 - expand size-field to 16 digits if 8 won't suffice r=handyman
... while retaining the existing 8-wide padding for backward
compatibility with existing consumers.

Differential Revision: https://phabricator.services.mozilla.com/D154705
2022-08-17 22:46:57 +00:00
Neil Deakin 408281a805 Bug 1774683, use ValidateFilenameForSaving to validate dropped links on Windows, r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D149746
2022-06-22 08:27:07 +00:00
Neil Deakin fea26084bc Bug 1746052, don't allow Windows reserved filenames when sanitizing filenames. Move MangleTextToValidFileName to nsLocalFileWin and rename it to CheckForReservedFileName, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D138737
2022-05-06 10:00:55 +00:00
Noemi Erli 7690ca54a5 Backed out 14 changesets (bug 1746052) for causing build bustages in nsExternalHelperAppService.cpp CLOSED TREE
Backed out changeset bf46b0add531 (bug 1746052)
Backed out changeset 684b2aca10bb (bug 1746052)
Backed out changeset d4796eeeaf64 (bug 1746052)
Backed out changeset 5cf2378f6eb4 (bug 1746052)
Backed out changeset 2055ec1e9a57 (bug 1746052)
Backed out changeset 1398fc0669d2 (bug 1746052)
Backed out changeset 1f979899c843 (bug 1746052)
Backed out changeset 561a24801d4d (bug 1746052)
Backed out changeset 73e4689120f0 (bug 1746052)
Backed out changeset 9891f3b0229b (bug 1746052)
Backed out changeset 4c1ab30de0bd (bug 1746052)
Backed out changeset 108e14122e53 (bug 1746052)
Backed out changeset 1ee59c52578a (bug 1746052)
Backed out changeset 41fe77c5f4b2 (bug 1746052)
2022-05-05 23:13:33 +03:00
Neil Deakin 24d9bdd9c8 Bug 1746052, don't allow Windows reserved filenames when sanitizing filenames. Move MangleTextToValidFileName to nsLocalFileWin and rename it to CheckForReservedFileName, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D138737
2022-05-05 19:46:48 +00:00
Csoregi Natalia cc401bfc0c Backed out 13 changesets (bug 1746052) for causing failures on uriloader/exthandler/tests/. CLOSED TREE
Backed out changeset d19cc58e3cab (bug 1746052)
Backed out changeset 229edc158a2b (bug 1746052)
Backed out changeset b0ef7c68abcf (bug 1746052)
Backed out changeset 30de4b77f242 (bug 1746052)
Backed out changeset ebc6720fdab3 (bug 1746052)
Backed out changeset daccb796a093 (bug 1746052)
Backed out changeset 5b76d8d76b2b (bug 1746052)
Backed out changeset a698068d078f (bug 1746052)
Backed out changeset 73d17535d8d1 (bug 1746052)
Backed out changeset 94c95f004221 (bug 1746052)
Backed out changeset 1a389759585a (bug 1746052)
Backed out changeset c91230a8ea90 (bug 1746052)
Backed out changeset 7665f02c114e (bug 1746052)
2022-05-04 01:15:12 +03:00
Mike Hommey 30f26f1da0 Bug 1766561 - Add missing z modifier for size_t formatting. r=gfx-reviewers,necko-reviewers,keeler,rkraesig,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D144918
2022-05-03 20:49:09 +00:00
Neil Deakin 13b7395aa0 Bug 1746052, don't allow Windows reserved filenames when sanitizing filenames. Move MangleTextToValidFileName to nsLocalFileWin and rename it to CheckForReservedFileName, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D138737
2022-05-03 19:44:27 +00:00
Ray Kraesig fc32add347 Bug 302092 - Perform various minor modernizations r=handyman
Perform some cleanup to bring the code in this function closer to modern
standards. (This includes, but is not limited to, the simple
variable-name change requested by the Bugzilla bug.)

This commit should have no effective functional changes.

Tested via `browser/base/content/test/general/browser_clipboard.js`,
which was confirmed to complain if changes were made to this function's
output (and, specifically, to the values in the start- and
end-positions).

Differential Revision: https://phabricator.services.mozilla.com/D138087
2022-02-11 22:53:12 +00:00
Bob Owen 5ce42caace Bug 1664149: Hold a self reference in nsDataObj. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D133099
2021-12-20 17:32:48 +00:00
Cristian Tuns d90f7adfe9 Backed out changeset 08324a167e6b (bug 1664149) for causing mochitest failures on test_bug1123480.xhtml CLOSED TREE 2021-12-20 06:14:25 -05:00