Commit Graph
175 Commits
Author SHA1 Message Date
Tom Schuster 3fec848f3e Bug 2039903 - Use nsIWidget::NativeModifiers for SynthesizeNativeMouseScrollEvent. r=masayuki,win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D301261
2026-06-01 14:01:36 +00:00
Tom Schuster 86424bc2fa Bug 2039903 - Change from nsIWidget::Modifiers to nsIWidget::NativeModifiers. r=masayuki,geckoview-reviewers,win-reviewers,m_kato,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D300802
2026-06-01 14:01:29 +00:00
rperta 700e284d7c Revert "Bug 2039903 - Use nsIWidget::NativeModifiers for SynthesizeNativeMouseScrollEvent. r=masayuki,win-reviewers,gstoll" for causing build bustages
This reverts commit 312ba34b1e.

Revert "Bug 2039903 - Use nsIWidget::NativeModifiers for SynthesizeNativeKeyEvent. r=masayuki,win-reviewers,gstoll"

This reverts commit cdcd922a07.

Revert "Bug 2039903 - Use proper types for PBrowser::SynthesizeNativeMouseEvent. r=masayuki"

This reverts commit 45369938ed.

Revert "Bug 2039903 - Change from nsIWidget::Modifiers to nsIWidget::NativeModifiers. r=masayuki,geckoview-reviewers,win-reviewers,m_kato,gstoll"

This reverts commit 479f174ddb.
2026-06-01 11:32:48 +00:00
Tom Schuster 312ba34b1e Bug 2039903 - Use nsIWidget::NativeModifiers for SynthesizeNativeMouseScrollEvent. r=masayuki,win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D301261
2026-06-01 10:06:07 +00:00
Tom Schuster 479f174ddb Bug 2039903 - Change from nsIWidget::Modifiers to nsIWidget::NativeModifiers. r=masayuki,geckoview-reviewers,win-reviewers,m_kato,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D300802
2026-06-01 10:06:01 +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
Masayuki Nakano 49cd614ea8 Bug 1983375 - part 2: Get rid of GetBoolName r=win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D261347
2025-08-20 10:41:01 +00:00
Alexandru Marc d683b2b2ed Revert "Bug 1983375 - part 2: Get rid of GetBoolName r=win-reviewers,gstoll" for causing non-unified build bustages @ nsNativeDragSource.cpp
This reverts commit 0062ee7423.

Revert "Bug 1983375 - part 1: Define `MOZ_LOG_ONLY_DEBUG` and variants in `Logging.h` and sort it out `GetBoolName` for making it more generic r=emilio,padenot"

This reverts commit b61fa4819b.
2025-08-20 07:45:10 +00:00
Masayuki Nakano 0062ee7423 Bug 1983375 - part 2: Get rid of GetBoolName r=win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D261347
2025-08-20 04:24:49 +00:00
Masayuki Nakano 6d04f12953 Bug 1976089 - Fix the opposite flag handling in MouseScrollHandler::SynthesizeNativeMouseScrollEvent() r=emilio
Additionally, this makes the test aware of Hi-DPI environment.

Differential Revision: https://phabricator.services.mozilla.com/D256561
2025-07-10 04:49:26 +00:00
David P 67cb51e0d5 Bug 1969993: Move various definitions of GetBoolName to Logging.h r=mccr8
Makes it easier to avoid unified build issues.

Differential Revision: https://phabricator.services.mozilla.com/D252240
2025-06-17 03:16:35 +00:00
Alexandru Marc 12647675a7 Revert "Bug 1969993: Add logging for DND operations on Windows r=win-reviewers,gstoll" for causing build bustages @ nsBaseDragService.cpp
This reverts commit aabd452dcf.

Revert "Bug 1969993: Move various definitions of GetBoolName to Logging.h r=mccr8"

This reverts commit b611c5a7f0.
2025-06-06 01:31:42 +00:00
David P b611c5a7f0 Bug 1969993: Move various definitions of GetBoolName to Logging.h r=mccr8
Makes it easier to avoid unified build issues.

Differential Revision: https://phabricator.services.mozilla.com/D252240
2025-06-05 23:08:30 +00:00
Ray Kraesig 509f0e54b7 Bug 1945257 - [7/7] Add check for failed window resolution in ProcessMouseMessage r=masayuki
During the initial preference-gating of the message-laundering hack, the
check around transitioning to the NATIVE_MESSAGE_RECEIVED wait-state was
removed from the hackless code path (along with the wait-state itself).

Reimplement the check in question, albeit without the additional wait-
state.

No functional changes when not using synthesized messages.

Differential Revision: https://phabricator.services.mozilla.com/D237091
2025-02-19 18:32:16 +00:00
Ray Kraesig d782ef021e Bug 1945257 - [6/7] Remove MOZ_WM_* mouse messages, phase 3 of 3 r=masayuki,win-reviewers,gstoll
Remove all of MOZ_WM_MOUSE{V,H}WHEEL and MOZ_WM_{V,H}SCROLL. Document
their removal and reserve their former values.

Concomitantly, rename and redocument several private member functions of
MouseScrollHandler, and remove a now-almost-certainly-superfluous check
for unintended recursion.

No functional changes, unless I'm wrong about the recursion check.

Differential Revision: https://phabricator.services.mozilla.com/D236596
2025-02-19 18:32:15 +00:00
Ray Kraesig abb542d615 Bug 1945257 - [5/7] Remove MOZ_WM_* mouse messages, phase 2 of 3 r=masayuki,win-reviewers,gstoll
Remove `WinUtils::GetNativeMessage()`, which is now effectively always
the identity function.

Also, remove `MouseScrollHandler::NeedsMessage()` as dead code.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236595
2025-02-19 18:32:15 +00:00
Ray Kraesig dc59f26faf Bug 1945257 - [4/7] Remove MOZ_WM_* mouse messages, phase 1 of 3 r=masayuki,win-reviewers,gstoll
In the previous patches, we removed the only use of PostMessage which
could ever post a MOZ_WM_* message to our message queue. That means we
can get started on removing those messages entirely.

To begin with, remove them from the dispatching switch-statement in
MouseScrollHandler::ProcessMessage(). Since this means that MOZ_WM_*
will never be fed into either HandleMouseWheelMessage() or
HandleScrollMessageAsMouseWheelMessage(), rewrite those to not mutate
the function parameter into an internal message.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236594
2025-02-19 18:32:14 +00:00
Ray Kraesig 6820549d76 Bug 1945257 - [3/7] Remove some SynthesizingEvent methods r=masayuki,win-reviewers,gstoll
Remove dead code from MouseScrollHandler::SynthesizingEvent:
  - NativeMessageReceived()
  - NotifyNativeMessageHandlingFinished()
  - Status::NATIVE_MESSAGE_RECEIVED
  - Status::INTERNAL_MESSAGE_POSTED

Additionally, rename NotifyInternalMessageHandlingFinished to just
NotifyMessageHandlingFinished, since there is no "internal" message
handling anymore.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236593
2025-02-19 18:32:14 +00:00
Ray Kraesig 3d638889bf Bug 1945257 - [2/7] Remove ProcessNative*Message() as dead code r=masayuki,win-reviewers,gstoll
Remove the MouseScrollHandler::ProcessNative{MouseWheel,Scroll}Message()
functions as dead code.

Similarly, remove the now-unused mIsWaitingInternalMessage flag, its
getter, and all associated conditionals.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236592
2025-02-19 18:32:13 +00:00
Ray Kraesig 348ba0bb61 Bug 1945257 - [1/7] Remove SkipScrollWheelMessageHack() r=masayuki,win-reviewers,gstoll
Remove MouseScrollHandler::SkipScrollWheelMessageHack() and the
associated pref, as part of removing the eponymous hack entirely.

In the case where this pref is off (which it is by default), no
functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236591
2025-02-19 18:32:13 +00:00
Butkovits Atila c89afbb999 Backed out 7 changesets (bug 1945257) for causing failures at test_mouse_scroll.xhtml. CLOSED TREE
Backed out changeset 52108bc91d78 (bug 1945257)
Backed out changeset 78d8555e2920 (bug 1945257)
Backed out changeset e5bb427aea9d (bug 1945257)
Backed out changeset 3fe71d666e05 (bug 1945257)
Backed out changeset c8de5bb2daf1 (bug 1945257)
Backed out changeset 9337cb798f25 (bug 1945257)
Backed out changeset a5d3925c71b1 (bug 1945257)
2025-02-17 00:49:48 +02:00
Ray Kraesig 1542e27868 Bug 1945257 - [7/7] Add check for failed window resolution in ProcessMouseMessage r=masayuki
During the initial preference-gating of the message-laundering hack, the
check around transitioning to the NATIVE_MESSAGE_RECEIVED wait-state was
removed from the hackless code path (along with the wait-state itself).

Reimplement the check in question, albeit without the additional wait-
state.

No functional changes when not using synthesized messages.

Differential Revision: https://phabricator.services.mozilla.com/D237091
2025-02-16 20:53:54 +00:00
Ray Kraesig f0bdfc9f99 Bug 1945257 - [6/7] Remove MOZ_WM_* mouse messages, phase 3 of 3 r=masayuki,win-reviewers,gstoll
Remove all of MOZ_WM_MOUSE{V,H}WHEEL and MOZ_WM_{V,H}SCROLL. Document
their removal and reserve their former values.

Concomitantly, rename and redocument several private member functions of
MouseScrollHandler, and remove a now-almost-certainly-superfluous check
for unintended recursion.

No functional changes, unless I'm wrong about the recursion check.

Differential Revision: https://phabricator.services.mozilla.com/D236596
2025-02-16 20:53:54 +00:00
Ray Kraesig 65fb500880 Bug 1945257 - [5/7] Remove MOZ_WM_* mouse messages, phase 2 of 3 r=masayuki,win-reviewers,gstoll
Remove `WinUtils::GetNativeMessage()`, which is now effectively always
the identity function.

Also, remove `MouseScrollHandler::NeedsMessage()` as dead code.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236595
2025-02-16 20:53:53 +00:00
Ray Kraesig d14f6bb845 Bug 1945257 - [4/7] Remove MOZ_WM_* mouse messages, phase 1 of 3 r=masayuki,win-reviewers,gstoll
In the previous patches, we removed the only use of PostMessage which
could ever post a MOZ_WM_* message to our message queue. That means we
can get started on removing those messages entirely.

To begin with, remove them from the dispatching switch-statement in
MouseScrollHandler::ProcessMessage(). Since this means that MOZ_WM_*
will never be fed into either HandleMouseWheelMessage() or
HandleScrollMessageAsMouseWheelMessage(), rewrite those to not mutate
the function parameter into an internal message.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236594
2025-02-16 20:53:53 +00:00
Ray Kraesig d1517097f4 Bug 1945257 - [3/7] Remove some SynthesizingEvent methods r=masayuki,win-reviewers,gstoll
Remove dead code from MouseScrollHandler::SynthesizingEvent:
  - NativeMessageReceived()
  - NotifyNativeMessageHandlingFinished()
  - Status::NATIVE_MESSAGE_RECEIVED
  - Status::INTERNAL_MESSAGE_POSTED

Additionally, rename NotifyInternalMessageHandlingFinished to just
NotifyMessageHandlingFinished, since there is no "internal" message
handling anymore.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236593
2025-02-16 20:53:53 +00:00
Ray Kraesig d92aa9295e Bug 1945257 - [2/7] Remove ProcessNative*Message() as dead code r=masayuki,win-reviewers,gstoll
Remove the MouseScrollHandler::ProcessNative{MouseWheel,Scroll}Message()
functions as dead code.

Similarly, remove the now-unused mIsWaitingInternalMessage flag, its
getter, and all associated conditionals.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236592
2025-02-16 20:53:52 +00:00
Ray Kraesig ba9bad84da Bug 1945257 - [1/7] Remove SkipScrollWheelMessageHack() r=masayuki,win-reviewers,gstoll
Remove MouseScrollHandler::SkipScrollWheelMessageHack() and the
associated pref, as part of removing the eponymous hack entirely.

In the case where this pref is off (which it is by default), no
functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236591
2025-02-16 20:53:52 +00:00
Stanca Serban 6419b96716 Backed out 7 changesets (bug 1945257) for causing mochitests failures in test_mouse_scroll.xhtml. CLOSED TREE
Backed out changeset 6ae8f390be84 (bug 1945257)
Backed out changeset 2d084241efe2 (bug 1945257)
Backed out changeset 3fd5a363ffcf (bug 1945257)
Backed out changeset f4e07c41993e (bug 1945257)
Backed out changeset 535dad00024c (bug 1945257)
Backed out changeset 5331173141da (bug 1945257)
Backed out changeset 847d20d64c1e (bug 1945257)
2025-02-12 23:20:25 +02:00
Ray Kraesig 120ac03ca5 Bug 1945257 - [7/7] Add check for failed window resolution in ProcessMouseMessage r=masayuki
During the initial preference-gating of the message-laundering hack, the
check around transitioning to the NATIVE_MESSAGE_RECEIVED wait-state was
removed from the hackless code path (along with the wait-state itself).

Reimplement the check in question, albeit without the additional state.

No functional changes when not using synthesized messages.

Differential Revision: https://phabricator.services.mozilla.com/D237091
2025-02-12 16:29:43 +00:00
Ray Kraesig 558d4af691 Bug 1945257 - [6/7] Remove MOZ_WM_* mouse messages, phase 3 of 3 r=masayuki,win-reviewers,gstoll
Remove all of MOZ_WM_MOUSE{V,H}WHEEL and MOZ_WM_{V,H}SCROLL. Document
their removal and reserve their former values.

Concomitantly, rename and redocument several private member functions of
MouseScrollHandler, and remove a now-almost-certainly-superfluous check
for unintended recursion.

No functional changes, unless I'm wrong about the recursion check.

Differential Revision: https://phabricator.services.mozilla.com/D236596
2025-02-12 16:29:43 +00:00
Ray Kraesig 821f19fe60 Bug 1945257 - [5/7] Remove MOZ_WM_* mouse messages, phase 2 of 3 r=masayuki,win-reviewers,gstoll
Remove `WinUtils::GetNativeMessage()`, which is now effectively always
the identity function.

Also, remove `MouseScrollHandler::NeedsMessage()` as dead code.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236595
2025-02-12 16:29:42 +00:00
Ray Kraesig 4d30721137 Bug 1945257 - [4/7] Remove MOZ_WM_* mouse messages, phase 1 of 3 r=masayuki,win-reviewers,gstoll
In the previous patches, we removed the only use of PostMessage which
could ever post a MOZ_WM_* message to our message queue. That means we
can get started on removing those messages entirely.

To begin with, remove them from the dispatching switch-statement in
MouseScrollHandler::ProcessMessage(). Since this means that MOZ_WM_*
will never be fed into either HandleMouseWheelMessage() or
HandleScrollMessageAsMouseWheelMessage(), rewrite those to not mutate
the function parameter into an internal message.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236594
2025-02-12 16:29:42 +00:00
Ray Kraesig bfd2f1901e Bug 1945257 - [3/7] Remove some SynthesizingEvent methods r=masayuki,win-reviewers,gstoll
Remove dead code from MouseScrollHandler::SynthesizingEvent:
  - NativeMessageReceived()
  - NotifyNativeMessageHandlingFinished()
  - Status::NATIVE_MESSAGE_RECEIVED
  - Status::INTERNAL_MESSAGE_POSTED

Additionally, rename NotifyInternalMessageHandlingFinished to just
NotifyMessageHandlingFinished, since there is no "internal" message
handling anymore.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236593
2025-02-12 16:29:41 +00:00
Ray Kraesig cfb6913eb5 Bug 1945257 - [2/7] Remove ProcessNative*Message() as dead code r=masayuki,win-reviewers,gstoll
Remove the MouseScrollHandler::ProcessNative{MouseWheel,Scroll}Message()
functions as dead code.

Similarly, remove the now-unused mIsWaitingInternalMessage flag, its
getter, and all associated conditionals.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236592
2025-02-12 16:29:41 +00:00
Ray Kraesig d5932da798 Bug 1945257 - [1/7] Remove SkipScrollWheelMessageHack() r=masayuki,win-reviewers,gstoll
Remove MouseScrollHandler::SkipScrollWheelMessageHack() and the
associated pref, as part of removing the eponymous hack entirely.

In the case where this pref is off (which it is by default), no
functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236591
2025-02-12 16:29:41 +00:00
Ray Kraesig 51748c45f0 Bug 1924247 - [5/5] Disable scrollwheel-message hack via new pref r=masayuki
Bug 658194 introduced a hack wherein scroll messages would be extracted
from the thread's message queue early, posted back to the queue under a
different message-ID, and then immediately reextracted for processing by
the target nsWindow.

This was intended to avoid deadlocks induced by some NPAPI plugins
running in the plugin-container process.  However, we don't support
NPAPI plugins at all anymore, so this should no longer be necessary.

The key word in that sentence is, of course, "should". Instead of
outright removing the hack, for now we just introduce an alternate
processing path avoiding it, and make its use dependent on a pref
(defaulted to use the new path).

Differential Revision: https://phabricator.services.mozilla.com/D226268
2024-11-06 19:14:45 +00:00
Ray Kraesig 047dbf2e0b Bug 1924247 - [4/5] Factor window-identification out of ProcessNativeMouseWheelMessage r=masayuki
Extract the component of `ProcessNativeMouseWheelMessage` which identifies
the adjusted target window, for use in the alternative event flow in the
next commit.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D226732
2024-11-06 19:14:45 +00:00
Ray Kraesig 56a820e267 Bug 1924247 - [3/5] Remove plugin-window case from mousewheel handler r=masayuki
We no longer have any plugins that accept mouse inputs. Remove the
plugin-handling case from ProcessNativeMouseWheelMessage, in preparation
for a refactor.

Differential Revision: https://phabricator.services.mozilla.com/D226860
2024-11-06 19:14:44 +00:00
Ray Kraesig 06ae8e3c2b Bug 1924247 - [2/5] Tidy up SynthesizedEvent, &c. r=masayuki
Clean up MouseScrollHandler::SynthesizedEvent:
  - Since this is a private local class, move it into the .cpp file, to
    minimize the number of compilation units that need to parse it.
  - Explicitly check `mSynthesizingEvent` for validity BEFORE calling
    nonstatic member functions. (Previously this code would call through
    `nullptr` as part of normal operation!)
  - Use `UniquePtr` in preference to explicit `new` and `delete`.

Additionally:
  - At the end of the file, undo the #define-poisoning of
    `GetMessagePos` to allow WinMouseScrollHandler.cpp to be used in
    unified builds. Adjust `moz.build` accordingly.
  - Remove a now-unnecessary kungFuDeathGrip. (The event-object
    immediately afterwards also holds a strong reference.)

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D226267
2024-11-06 19:14:44 +00:00
Ray Kraesig 102dd612db Bug 1924247 - [1/5] Fix WM_MOUSEHWHEEL return code r=masayuki
The semantics of the old technically-third-party MSH_MOUSEWHEEL message
were different from that of the modern WM_MOUSEWHEEL. [1] Unfortunately,
when we updated the scroll-wheel code back in Firefox 1.8/2.0, we copied
the MSH_MOUSEWHEEL semantics over into the WM_MOUSEWHEEL code. (See bug
347875.)

This has probably never caused issues, but we might as well fix it.

[1] https://devblogs.microsoft.com/oldnewthing/20080806-00/?p=21353

Differential Revision: https://phabricator.services.mozilla.com/D226266
2024-11-06 19:14:43 +00:00
Stanca Serban 7e813c2874 Backed out 5 changesets (bug 1924247) for causing mochitests failures in test_mouse_scroll.xhtml. CLOSED TREE
Backed out changeset 15bc99dbb8fe (bug 1924247)
Backed out changeset 391ca08dfb0c (bug 1924247)
Backed out changeset 9725b80b10fe (bug 1924247)
Backed out changeset 2734ab6d67f7 (bug 1924247)
Backed out changeset 50fd2e921a94 (bug 1924247)
2024-10-30 21:27:08 +02:00
Ray Kraesig aa0521c1b0 Bug 1924247 - [5/5] Disable scrollwheel-message hack via new pref r=masayuki
Bug 658194 introduced a hack wherein scroll messages would be extracted
from the thread's message queue early, posted back to the queue under a
different message-ID, and then immediately reextracted for processing by
the target nsWindow.

This was intended to avoid deadlocks induced by some NPAPI plugins
running in the plugin-container process.  However, we don't support
NPAPI plugins at all anymore, so this should no longer be necessary.

The key word in that sentence is, of course, "should". Instead of
outright removing the hack, for now we just make its use dependent on a
pref (defaulted to off).

Differential Revision: https://phabricator.services.mozilla.com/D226268
2024-10-30 16:25:32 +00:00
Ray Kraesig 5ec151ba73 Bug 1924247 - [4/5] Factor window-identification out of ProcessNativeMouseWheelMessage r=masayuki
Extract the component of `ProcessNativeMouseWheelMessage` which identifies
the adjusted target window, for use in the alternative event flow in the
next commit.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D226732
2024-10-30 16:25:32 +00:00
Ray Kraesig 59db333a10 Bug 1924247 - [3/5] Remove plugin-window case from mousewheel handler r=masayuki
We no longer have any plugins that accept mouse inputs. Remove the
plugin-handling case from ProcessNativeMouseWheelMessage, in preparation
for a refactor.

Differential Revision: https://phabricator.services.mozilla.com/D226860
2024-10-30 16:25:31 +00:00
Ray Kraesig c4427297e2 Bug 1924247 - [2/5] Tidy up SynthesizedEvent, &c. r=masayuki
Clean up MouseScrollHandler::SynthesizedEvent:
  - Since this is a private local class, move it into the .cpp file, to
    minimize the number of compilation units that need to parse it.
  - Explicitly check `mSynthesizingEvent` for validity BEFORE calling
    nonstatic member functions. (Previously this code would call through
    `nullptr` as part of normal operation!)
  - Use `UniquePtr` in preference to explicit `new` and `delete`.

Additionally:
  - At the end of the file, undo the #define-poisoning of
    `GetMessagePos` to allow WinMouseScrollHandler.cpp to be used in
    unified builds. Adjust `moz.build` accordingly.
  - Remove a now-unnecessary kungFuDeathGrip. (The event-object
    immediately afterwards also holds a strong reference.)

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D226267
2024-10-30 16:25:31 +00:00
Ray Kraesig 3ffd877c38 Bug 1924247 - [1/5] Fix WM_MOUSEHWHEEL return code r=masayuki
The semantics of the old technically-third-party MSH_MOUSEWHEEL message
were different from that of the modern WM_MOUSEWHEEL. [1] Unfortunately,
when we updated the scroll-wheel code back in Firefox 1.8/2.0, we copied
the MSH_MOUSEWHEEL semantics over into the WM_MOUSEWHEEL code. (See bug
347875.)

This has probably never caused issues, but we might as well fix it.

[1] https://devblogs.microsoft.com/oldnewthing/20080806-00/?p=21353

Differential Revision: https://phabricator.services.mozilla.com/D226266
2024-10-30 16:25:31 +00:00
serge-sans-paille 262f78c07f Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-28 08:21:19 +00:00
Alexandru Marc a5eb905bf4 Backed out changeset d92f391b3b0c (bug 1922838) for backing out bug 1915351 2024-10-25 16:42:33 +03:00
serge-sans-paille 07101ac24d Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 09:06:01 +00:00