Commit Graph
265 Commits
Author SHA1 Message Date
Eden Chuang dea174a9b6 Bug 2024418 - Make Console::StoreCallData() and Console::UnstoreCallData be not re-entrant during RetrievingConsoleEvents. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D296675
2026-04-28 08:36:27 +00:00
Florian Quèze 73760782af Bug 2030481 - Derive console storage key from stack and argument globals for system module messages, r=dom-core,smaug.
ConsoleAPIStorage stores messages from system modules (.sys.mjs) under
filename-based keys. inner-window-destroyed only clears numeric window
ID keys, so these entries persist and can leak chrome windows.

When mInnerID is 0 (non-window realm), derive the storage key from the
first window found in three places:
- The captured stack's SavedFrame globals (for chrome windows with their
  own compartment, e.g. aiWindow.html).
- The message argument globals (for objects created in a window realm).
- Sandbox argument globals whose prototype is a window (for errors
  created in DevTools sandboxes).

Differential Revision: https://phabricator.services.mozilla.com/D292956
2026-04-17 12:21:33 +00:00
Andrew McCreight 2e62f4f88a Bug 2026310 - Add a SequenceRooter in ProcessProfileData. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D290289
2026-03-30 19:36:04 +00:00
Paul Adenot e01fe3f6ca Bug 2023228 - Remove explicit pass-through StreamJSONMarkerData from BaseMarkerType-derived markers. r=canaltinova,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D287193
2026-03-30 15:11:48 +00:00
Sylvestre Ledru 9eb1a31a98 Bug 2023419 - Remove Emacs/Vim modelines from dom/ r=emilio,media-playback-reviewers,webidl,padenot
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287843
2026-03-16 21:02:32 +00:00
Julian Descottes ac85f12daf Bug 2015711 - [devtools-logger] Fix inconsistent Assert log levels r=devtools-reviewers,nchevobbe
In `ConsoleMethodNameToMozLog`, `console.assert` is assigned to `LogLevel::Error`, same as `console.error` or `console.exception`.
But in `ConsoleMethodNameToInteger`, `console.assert` is assigned to the level `3`, which translates to `LogLevel::Info`.

We keep duplicated maps because those methods are on console hot paths, but we should make sure the levels set are consistent.

Differential Revision: https://phabricator.services.mozilla.com/D284032
2026-02-20 14:05:45 +00:00
Julian Descottes 464f5410c2 Bug 2015711 - [devtools-logger] Clarify console level mappings in console.cpp r=devtools-reviewers,nchevobbe
Regrouped case to make the mapping methods easier to read.
Renamed the methods top clearly mention "method name" when this is what we are mapping.
Added a small comment to clarify the logic.

Differential Revision: https://phabricator.services.mozilla.com/D284031
2026-02-20 14:05:42 +00:00
Julian Descottes d21160eeb0 Bug 2015711 - [devtools-logger] Reduce console trace method level r=devtools-reviewers,nchevobbe
Decreases the console trace log level for MOZ_LOG to `Verbose` (5).
This makes it the lowest logger method available, but note that console.trace() most likely triggers generating a stacktrace, so it should still be used sparingly.

Differential Revision: https://phabricator.services.mozilla.com/D283939
2026-02-20 14:05:39 +00:00
Julian Descottes 1abcea7ef3 Bug 2015714 - [devtools] Check if console instance should log to MOZ_LOG in shouldLog r=devtools-reviewers,ochameau
This commit introduces a new `ConsoleLevelIntegerToMozLog` which translates a console level (as a numeric value) to a mozlog log level.
The new method is used to simplify `InternalLogLevelToMozLog` as well as to provide a new Console::ShouldLogToMozLog(ConsoleLogLevel aLevel)

Finally ConsoleInstance shouldLog is expanded to also check if the mozlog level is matched.

Tests are added to cover this.

Differential Revision: https://phabricator.services.mozilla.com/D282618
2026-02-12 23:00:58 +00:00
Nika Layzell 0c69e1ec9e Bug 2013389 - Part 4: Avoid depending on mErrorMessage when deserializing StructuredCloneHolder, r=asuth,dom-worker-reviewers
This is the last member of StructuredCloneHolder which is mutated when reading
a StructuredCloneHolder which does not support transfers.

This does change behaviour, as the Read functions no longer clobber every
exception thrown by the StructuredClone implementation with a DataCloneError
exception, instead stealing the exceptions as they are thrown. The behaviour of
the Write function has been changed less substantially, as it already avoided
clobbering existing exceptions.

This change in behaviour is not a complete shift. Our Structured Clone custom
callbacks have historically not reliably thrown exceptions on failure, so
uncatchable exceptions are replaced with generic exceptions before being
returned to the JS engine to avoid throwing uncatchable exceptions in error
cases where we did not previously.

It's worth noting that this change assumes that the JS implementation of
structured clone reliably throws exceptions itself. In general SpiderMonkey
code is better about this (due to better-established patterns), than Gecko code
using SpiderMonkey calling conventions.

The new implementations of Read/Write use StealExceptionFromJSContext over
NoteJSContextException, as SuppressExceptions/IgnoreErrors/IgnoredErrorResult
are frequently used with StructuredCloneHolder, and JSContext exceptions are
not suppressed when SuppressExceptions is called.

Differential Revision: https://phabricator.services.mozilla.com/D281113
2026-02-12 02:43:30 +00:00
Cristina Horotan 3e788840d2 Revert "Bug 2013389 - Part 12: Restore eager serialization of InputStream, r=asuth" for causing Hazard failure on StructuredCloneHolder.cpp
This reverts commit 72c32e25bf.

Revert "Bug 2013389 - Part 11: Make attachment arrays more consistent in StructuredCloneHolder, r=asuth"

This reverts commit c0912428c7.

Revert "Bug 2013389 - Part 10: Fix version tracking in nsStructuredCloneContainer, r=asuth,extension-reviewers,spidermonkey-reviewers,sfink,robwu"

This reverts commit f2e9691831.

Revert "Bug 2013389 - Part 9: Remove the now-unused ReadFromBuffer method, r=asuth"

This reverts commit 6eb034458e.

Revert "Bug 2013389 - Part 8: Avoid the unnecessary ClonedMessageData intermediate, r=asuth,mccr8,extension-reviewers,dom-worker-reviewers,robwu"

This reverts commit 4dd6f1d6ea.

Revert "Bug 2013389 - Part 7: Only deserialize once in nsFrameMessageManager, r=asuth"

This reverts commit 65d16af619.

Revert "Bug 2013389 - Part 6: Remove weak listener support from MessageManager, r=smaug"

This reverts commit 66f4b308a0.

Revert "Bug 2013389 - Part 5: Broadcasting MessageManagers cannot support transferrables, r=asuth"

This reverts commit e95e1a5a6c.

Revert "Bug 2013389 - Part 4: Avoid depending on mErrorMessage when deserializing StructuredCloneHolder, r=asuth,dom-worker-reviewers"

This reverts commit ae78c69357.

Revert "Bug 2013389 - Part 3: Remove aGlobal argument from StructuredCloneHolder::Read, r=asuth,dom-worker-reviewers"

This reverts commit 066bd37bfd.

Revert "Bug 2013389 - Part 2: Stop tracking mGlobal within StructuredCloneHolder::Read, r=asuth"

This reverts commit 6b4f3a43c0.

Revert "Bug 2013389 - Part 1: Add an Adopt API to StructuredCloneHolder, r=asuth"

This reverts commit 8624db71c2.
2026-02-10 20:11:41 +00:00
Nika Layzell ae78c69357 Bug 2013389 - Part 4: Avoid depending on mErrorMessage when deserializing StructuredCloneHolder, r=asuth,dom-worker-reviewers
This is the last member of StructuredCloneHolder which is mutated when reading
a StructuredCloneHolder which does not support transfers.

This does change behaviour, as the Read functions no longer clobber every
exception thrown by the StructuredClone implementation with a DataCloneError
exception, instead stealing the exceptions as they are thrown. The behaviour of
the Write function has been changed less substantially, as it already avoided
clobbering existing exceptions.

This change in behaviour is not a complete shift. Our Structured Clone custom
callbacks have historically not reliably thrown exceptions on failure, so
uncatchable exceptions are replaced with generic exceptions before being
returned to the JS engine to avoid throwing uncatchable exceptions in error
cases where we did not previously.

It's worth noting that this change assumes that the JS implementation of
structured clone reliably throws exceptions itself. In general SpiderMonkey
code is better about this (due to better-established patterns), than Gecko code
using SpiderMonkey calling conventions.

The new implementations of Read/Write use StealExceptionFromJSContext over
NoteJSContextException, as SuppressExceptions/IgnoreErrors/IgnoredErrorResult
are frequently used with StructuredCloneHolder, and JSContext exceptions are
not suppressed when SuppressExceptions is called.

Differential Revision: https://phabricator.services.mozilla.com/D281113
2026-02-09 21:23:25 +00:00
Alexandre Poirot e4c7ba4b1b Bug 1923985 - Prevent logging stacks from console messages logged via MOZ_LOG. r=Standard8
These logs can be very noisy if you are logging raw data to stdout.

Differential Revision: https://phabricator.services.mozilla.com/D280069
2026-02-06 10:55:47 +00:00
Alexandre Poirot bbd0c2d600 Bug 1923985 - Control console message logging via MOZ_LOG only via MOZ_LOG level. r=Standard8
That, instead of being only driven by console default level (hardcoded or via a specific pref).
The console messages won't be logged to MOZ_LOG if the they aren't enabled in MOZ_LOG.
This may lead to duplicated messages if console still logs to stdout.

Differential Revision: https://phabricator.services.mozilla.com/D280068
2026-02-06 10:55:44 +00:00
Cristina Horotan c262421c6d Revert "Bug 2013389 - Part 11: Make attachment arrays more consistent in StructuredCloneHolder, r=asuth" for causing build bustages at MessageManagerFuzzer.cpp
This reverts commit 5c5cf7465b.

Revert "Bug 2013389 - Part 10: Fix version tracking in nsStructuredCloneContainer, r=asuth,extension-reviewers,spidermonkey-reviewers,sfink,robwu"

This reverts commit c87a327d86.

Revert "Bug 2013389 - Part 9: Remove the now-unused ReadFromBuffer method, r=asuth"

This reverts commit 5adf49e5d8.

Revert "Bug 2013389 - Part 8: Avoid the unnecessary ClonedMessageData intermediate, r=asuth,mccr8,extension-reviewers,dom-worker-reviewers,robwu"

This reverts commit f6d12563fe.

Revert "Bug 2013389 - Part 7: Only deserialize once in nsFrameMessageManager, r=asuth"

This reverts commit 44c1325d76.

Revert "Bug 2013389 - Part 6: Remove weak listener support from MessageManager, r=smaug"

This reverts commit 1d1b495c91.

Revert "Bug 2013389 - Part 5: Broadcasting MessageManagers cannot support transferrables, r=asuth"

This reverts commit e2eb75ff8f.

Revert "Bug 2013389 - Part 4: Avoid depending on mErrorMessage when deserializing StructuredCloneHolder, r=asuth,dom-worker-reviewers"

This reverts commit d9a234ad7b.

Revert "Bug 2013389 - Part 3: Remove aGlobal argument from StructuredCloneHolder::Read, r=asuth,dom-worker-reviewers"

This reverts commit 48279cea50.

Revert "Bug 2013389 - Part 2: Stop tracking mGlobal within StructuredCloneHolder::Read, r=asuth"

This reverts commit 27162e5046.

Revert "Bug 2013389 - Part 1: Add an Adopt API to StructuredCloneHolder, r=asuth"

This reverts commit e3a9f32716.
2026-02-05 22:11:47 +00:00
Nika Layzell d9a234ad7b Bug 2013389 - Part 4: Avoid depending on mErrorMessage when deserializing StructuredCloneHolder, r=asuth,dom-worker-reviewers
This is the last member of StructuredCloneHolder which is mutated when reading
a StructuredCloneHolder which does not support transfers.

This does change behaviour, as the Read functions no longer clobber every
exception thrown by the StructuredClone implementation with a DataCloneError
exception, instead stealing the exceptions as they are thrown. The behaviour of
the Write function has been changed less substantially, as it already avoided
clobbering existing exceptions.

This change in behaviour is not a complete shift. Our Structured Clone custom
callbacks have historically not reliably thrown exceptions on failure, so
uncatchable exceptions are replaced with generic exceptions before being
returned to the JS engine to avoid throwing uncatchable exceptions in error
cases where we did not previously.

It's worth noting that this change assumes that the JS implementation of
structured clone reliably throws exceptions itself. In general SpiderMonkey
code is better about this (due to better-established patterns), than Gecko code
using SpiderMonkey calling conventions.

The new implementations of Read/Write use StealExceptionFromJSContext over
NoteJSContextException, as SuppressExceptions/IgnoreErrors/IgnoredErrorResult
are frequently used with StructuredCloneHolder, and JSContext exceptions are
not suppressed when SuppressExceptions is called.

Differential Revision: https://phabricator.services.mozilla.com/D281113
2026-02-05 21:25:39 +00:00
Nazım Can Altınova 19212ac33b Bug 1387528 - Add profiler markers for console.time{,End} pair and console.timeStamp r=dcarver
Before we switched to the Firefox Profiler in the DevTools, we had
timeline markers for these console methods. But apparently, since we did
the switch, we never added markers for them.

From our conversations with Chrome folks, they mentioned that some JS
frameworks started using these instead of performance.mark/measure
combinations especially the console.timeStamp one since it's just an
instant marker, stating that they are higher overhead. Even though I
don't completely understand their rationale, I think it makes sense to
add markers for these methods. It essentially adds 2 different subtypes
that uses the same ConsoleTimingMarker.

1. console.time and console.timeEnd when combined create a duration
   marker with a label, similar to performance.mark and measure.
2. console.timeStamp creates an instant marker with a label.

One edge case is that, console.timeEnd doesn't create any markers when
it doesn't have a console.time with the same title, and vice versa.

Differential Revision: https://phabricator.services.mozilla.com/D281521
2026-02-05 14:53:00 +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
Emilio Cobos Álvarez 791917d8af Bug 1976665 - Sort headers in dom/. r=dom-core,media-playback-reviewers,webrtc-reviewers,dom-storage-reviewers,padenot,janv,smaug,jesup,jib
Most changes are automated. Relevant bit is dom/.clang-format. I had to
manually disable clang-format in a few places where importing external
files and so on that aren't self-contained, and fix a couple includes /
forward declarations.

Differential Revision: https://phabricator.services.mozilla.com/D256800
2025-08-05 11:47:34 +00:00
Rob Wu ff6702389c Bug 1902241 - Improve dump() serialization of XPCNativeWrapper (Components.Exception) r=mccr8,devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D240774
2025-03-12 23:46:12 +00:00
Nicolas Chevobbe ff34f67aa7 Bug 1941380 - Cap console log string substitution precision for floating point numbers. r=baku,devtools-reviewers,jdescottes.
Test cases are added to check we're handling things correctly.

Differential Revision: https://phabricator.services.mozilla.com/D236109
2025-02-05 13:00:40 +00:00
Stanca Serban 5ffef93a6b Backed out changeset 94171e91d5e5 (bug 1941380) for causing build bustages. CLOSED TREE 2025-01-31 10:09:18 +02:00
Nicolas Chevobbe 17d16c361c Bug 1941380 - Cap console log string substitution precision for floating point numbers. r=baku,devtools-reviewers,jdescottes.
Test cases are added to check we're handling things correctly.

Differential Revision: https://phabricator.services.mozilla.com/D236109
2025-01-31 06:02:06 +00:00
Eden Chuang 4e7ea4b2f0 Bug 1910021 - Using Mutex to protect ConsoleCallData. r=dom-worker-reviewers,smaug
Disabled dom/console/tests/xpcshell/test_failing_console_listener for tsan build.
Since the failing console mechanism causes too many additional deadlock checking then time out the test.

Differential Revision: https://phabricator.services.mozilla.com/D224922
2024-10-30 12:42:08 +00:00
Alexandre Poirot 65369191dc Bug 1828100 - Integrate console.createInstance with MOZ_LOG based on prefix. r=padenot,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D224104
2024-10-14 16:28:15 +00:00
Alexandre Poirot 720967c6eb Bug 1828100 - Use a single method to log all console API calls to stdout. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D224904
2024-10-14 16:28:14 +00:00
Iulian Moraru 87ccec7519 Backed out changeset 1f925bbee0c8 (bug 1910021) for causing xpcshell failures on test_failing_console_listener.js. 2024-10-11 20:42:47 +03:00
Eden Chuang e6bf80fece Bug 1910021 - Using Mutex to protect ConsoleCallData. r=dom-worker-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D224922
2024-10-11 12:44:05 +00:00
Tamas Szentpeteri 83c05574c5 Backed out 2 changesets (bug 1828100) for casuing mochitest failures on Console.cpp. CLOSED TREE
Backed out changeset 86f30e3a63c3 (bug 1828100)
Backed out changeset 32a5be517c83 (bug 1828100)
2024-10-11 16:48:46 +03:00
Alexandre Poirot b8a9470554 Bug 1828100 - Integrate console.createInstance with MOZ_LOG based on prefix. r=padenot,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D224104
2024-10-11 12:16:29 +00:00
Alexandre Poirot 01237cf7b1 Bug 1828100 - Use a single method to log all console API calls to stdout. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D224904
2024-10-11 12:16:29 +00:00
Andrew McCreight e38551bb59 Bug 1919809 - Always clear mArgumentStorage in Console's Unlink. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D222803
2024-09-19 14:58:20 +00:00
Emilio Cobos Álvarez 77c40caac6 Bug 1910698 - Remove nsIScriptError.sourceLine. r=smaug,devtools-reviewers,webdriver-reviewers,necko-reviewers,nchevobbe,kershaw,jdescottes,credential-management-reviewers,dimi
Afaict the source lines are not exposed anywhere in the UI.

Differential Revision: https://phabricator.services.mozilla.com/D218115
2024-08-01 17:12:48 +00:00
Emilio Cobos Álvarez a44b49af0b Bug 1910698 - Add a struct to represent JS caller location and more general warning source location. r=smaug,necko-reviewers,anti-tracking-reviewers,dom-storage-reviewers,pbz,kershaw,janv
Use it liberally across the tree. This could be cleaned up even more in the future.

Differential Revision: https://phabricator.services.mozilla.com/D218114
2024-08-01 17:12:48 +00:00
Kagami Sascha Rosylight 4573d3fb90 Bug 1908947 - Add WorkerPrivate::GetTopLevelWorker() r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D217139
2024-07-23 13:46:45 +00:00
Tom Schuster feaa0c77a1 Bug 1904004 - Use OriginAttributes::IsPrivateBrowsing instead of open coding PBM checks. r=timhuang,cookie-reviewers,anti-tracking-reviewers,profiler-reviewers,necko-reviewers,kershaw,dom-storage-reviewers,janv,canaltinova,dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D214532
2024-06-24 11:06:18 +00:00
Mark Banner f6531afb62 Bug 1876589 - Avoid getting and processing preferences for each logging call to ConsoleInstance. r=emilio
This moves handling of the preferences and log value setting into ConsoleInstance, which is where the preferences
are received. It also makes ConsoleInstance add a listener on the preferences service so that updates are triggered.

The functionality is already covered by dom/console/tests/test_jsm.xhtml

Differential Revision: https://phabricator.services.mozilla.com/D199657
2024-02-13 18:31:21 +00:00
Sandor Molnar e73c604906 Backed out 2 changesets (bug 1876589, bug 1874957) for causing bc failures @ browser/base/content/test/performance/browser_preferences_usage.js CLOSED TREE
Backed out changeset dc082de0e841 (bug 1874957)
Backed out changeset 57e273e7ab57 (bug 1876589)
2024-02-13 17:07:47 +02:00
Mark Banner 26a8e45a27 Bug 1876589 - Avoid getting and processing preferences for each logging call to ConsoleInstance. r=emilio
This moves handling of the preferences and log value setting into ConsoleInstance, which is where the preferences
are received. It also makes ConsoleInstance add a listener on the preferences service so that updates are triggered.

The functionality is already covered by dom/console/tests/test_jsm.xhtml

Differential Revision: https://phabricator.services.mozilla.com/D199657
2024-02-13 10:23:12 +00:00
Redfire 32fa1b7896 Bug 1879991 - Update Example in Comment on ProcessArguments. r=devtools-reviewers,nchevobbe DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D201663
2024-02-13 09:30:43 +00:00
Alexandre Poirot dbc1747b07 Bug 1860888 - [devtools] Fix logging SharedArrayBuffer from Worklet/Workers. r=devtools-reviewers,smaug
This custom CloneDataPolicy was already using while writing the structured clone,
but not when reading it.

Differential Revision: https://phabricator.services.mozilla.com/D191783
2023-11-06 14:42:52 +00:00
Stanca Serban 9c3f5b4c85 Backed out changeset 4492a1a7f6e7 (bug 1860888) for causing mochitests failures in test_console_serviceworker_cached.html. CLOSED TREE 2023-11-03 12:46:25 +02:00
Alexandre Poirot 0385bcb81d Bug 1860888 - [devtools] Fix logging SharedArrayBuffer from Worklet/Workers. r=devtools-reviewers,smaug
This custom CloneDataPolicy was already using while writing the structured clone,
but not when reading it.

Differential Revision: https://phabricator.services.mozilla.com/D191783
2023-11-03 09:39:41 +00:00
Adam Brouwers-Harries 4a2ba69cbc Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau
This patch removes the old docshell timeline and timeline markers codebase and replaces them with equivalent Gecko profiler marker. This patch also fixes Bug 1834143, which is a subset of 1421651.

Differential Revision: https://phabricator.services.mozilla.com/D184217
2023-10-24 15:18:12 +00:00