Steve Fink
8fedc44fe8
Bug 2031122 - Extra rooting for Console r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D293715
2026-04-12 18:13:05 +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
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
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
Gene Smith
11f4818934
Bug 1891962 - Avoid crash due to null pointer. r=mkmelin,emilio
...
console (or mConsole) pointer is sometimes null. Seen mostly
with thunderbird pop3 activity.
Differential Revision: https://phabricator.services.mozilla.com/D245145
2025-04-14 14:01:36 +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
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
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
Mark Banner
7d94c8db29
Bug 1891789 - Allow console.createInstance to work properly in workers. r=peterv
...
Also raise an error on the console if 'maxLogLevelPref' is used when it shouldn't be.
Differential Revision: https://phabricator.services.mozilla.com/D208000
2024-04-24 10:24:29 +00:00
Aron Cseh
f6aaa408e9
Backed out changeset fd7d96cffddb (bug 1891789) for causing xpcshell failures on test_worker.js CLOSED TREE
2024-04-24 12:05:07 +03:00
Mark Banner
76a4aa779d
Bug 1891789 - Allow console.createInstance to work properly in workers. r=peterv
...
Also raise an error on the console if 'maxLogLevelPref' is used when it shouldn't be.
Differential Revision: https://phabricator.services.mozilla.com/D208000
2024-04-24 07:53:36 +00:00
Peter Van der Beken
f34f7b70a2
Bug 1640839 - Provide helpers for converting a string to a WebIDL enum value. r=mccr8,media-playback-reviewers,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201338
2024-03-02 07:50:21 +00:00
Peter Van der Beken
eebaaa23dc
Bug 1640839 - Make WebIDL enum helper function to convert to string return an actual string. r=mccr8,media-playback-reviewers,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201337
2024-03-02 07:50:21 +00:00
Natalia Csoregi
10b9ceb789
Backed out 13 changesets (bug 1640839) for causing bustage on Element.cpp CLOSED TREE
...
Backed out changeset 179ceb82c9e5 (bug 1640839)
Backed out changeset 73f498a821f0 (bug 1640839)
Backed out changeset dc2d3d0e0365 (bug 1640839)
Backed out changeset ddc989ac0509 (bug 1640839)
Backed out changeset e595bb3feea8 (bug 1640839)
Backed out changeset c85aca04e27f (bug 1640839)
Backed out changeset 98e8e3a4047a (bug 1640839)
Backed out changeset 59ef180517db (bug 1640839)
Backed out changeset af2f5e293662 (bug 1640839)
Backed out changeset 89aa6d9dc598 (bug 1640839)
Backed out changeset 67b722a722f9 (bug 1640839)
Backed out changeset 24a9665c6ced (bug 1640839)
Backed out changeset d93f199385e9 (bug 1640839)
2024-03-01 18:23:08 +02:00
Peter Van der Beken
99f7740575
Bug 1640839 - Provide helpers for converting a string to a WebIDL enum value. r=mccr8,media-playback-reviewers,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201338
2024-03-01 14:31:12 +00:00
Peter Van der Beken
171fc86507
Bug 1640839 - Make WebIDL enum helper function to convert to string return an actual string. r=mccr8,media-playback-reviewers,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201337
2024-03-01 14:31:11 +00:00
Mark Banner
f0aad1d0d3
Bug 1876987 - Make ConsoleInstanceOptions.maxLogLevelPref a UTF8String to avoid string conversions. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D202618
2024-02-23 23:34:35 +00:00
Emilio Cobos Álvarez
526e74bd47
Bug 1880286 - Don't call SetLogLevel() after unlink. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D202014
2024-02-15 22:39:27 +00:00
Mark Banner
918ba4e46f
Bug 1874957 - Add a shouldLog function to ConsoleInstance. r=dom-core,webidl,saschanaz,peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D199796
2024-02-13 18:31:21 +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
74d4b7a98a
Bug 1874957 - Add a shouldLog function to ConsoleInstance. r=dom-core,webidl,saschanaz,peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D199796
2024-02-13 10:23:13 +00: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
Emilio Cobos Álvarez
7a9e682999
Bug 1780788 - Use abstract strings as in-arguments for ipdl. r=nika,necko-reviewers,media-playback-reviewers,alwu,dragana
...
This prevents copies and avoids the hack we have to avoid this, which
right now is using nsDependent{C,}String.
Non-virtual actors can still use `nsString` if they need to on the
receiving end.
Differential Revision: https://phabricator.services.mozilla.com/D152519
2022-07-25 20:19:48 +00:00
Ping Chen
cff951b27a
Bug 1683228 - Check maxLogLevelPref value each time and use it when available. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D100204
2021-01-06 01:11:24 +00:00
Ping Chen
dcab1fd29d
Bug 1683228 - Fallback to maxLogLevel when maxLogLevelPref doesn't exist. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D100074
2020-12-21 10:35:36 +00:00
Simon Giesecke
46908cfb51
Bug 1660470 - Add missing include directives/forward declarations. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Sylvestre Ledru
68b806d604
Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
...
Also add some missing namespace qualifications
Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')
Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 17:04:01 +00:00
Butkovits Atila
a6e7dcc53f
Backed out changeset c0adbf7522dc (bug 1674637) for bustage on GMPParent.cpp. CLOSED TREE
2020-11-04 10:54:36 +02:00
Sylvestre Ledru
8f709b39e8
Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
...
Also add some missing namespace qualifications
Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')
Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 08:29:00 +00:00
Andi-Bogdan Postelnicu
b1ff27898a
Bug 1671641 - Make dom/console buildable outside of unified-build environment. r=sg
...
Differential Revision: https://phabricator.services.mozilla.com/D93796
2020-10-21 08:00:16 +00:00
Simon Giesecke
f6c10f5ca9
Bug 1648010 - Fix uses of NS_LITERAL_STRING with C string literals. r=geckoview-reviewers,agi,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80861
2020-07-01 08:34:12 +00:00
Simon Giesecke
a69d79b6db
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Simon Giesecke
1f45d38ee8
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/console. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D63146
2020-02-20 16:18:07 +00:00
Boris Zbarsky
fef9d123c5
Bug 1582892. Expose the number of strings in a Web IDL enum in a nice way. r=edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D49536
2019-10-23 03:54:39 +00:00
Daniel Varga
1ba9dcd6bb
Backed out changeset f9a4c8d67be3 (bug 1582892) for build bustage at build/src/dom/console/ConsoleInstance. On a CLOSED TREE
2019-10-23 06:13:54 +03:00
Boris Zbarsky
06478c0c0d
Bug 1582892. Expose the number of strings in a Web IDL enum in a nice way. r=edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D49536
2019-10-18 03:26:43 +00:00
Eden Chuang
805df63f08
Bug 1442778 - Add "chromeContext" parameter to console API and console service messages. r=smaug
...
1. Adding a new attribute chromeContext in ConsoleEvent
2. Adding a new boolean attribute isFromChromeContext in nsIConsoleMessage
3. Sending IsFromChromeContext to the parent process
Differential Revision: https://phabricator.services.mozilla.com/D23330
2019-04-01 22:42:34 +00:00
Cosmin Sabou
de6f748a09
Backed out changeset 7fa7d6e6dedc (bug 1442778) for devtools failures on browser_webconsole_check_stubs_console_api.js CLOSED TREE
2019-03-26 20:27:55 +02:00
Eden Chuang
4427a101b6
Bug 1442778 - Add "chromeContext" parameter to console API and console service messages. r=smaug
...
1. Adding a new attribute chromeContext in ConsoleEvent
2. Adding a new boolean attribute isFromChromeContext in nsIConsoleMessage
3. Sending IsFromChromeContext to the parent process
Differential Revision: https://phabricator.services.mozilla.com/D23330
2019-03-26 15:18:20 +00:00
Boris Zbarsky
cc25bd1829
Bug 1535384 part 3. Eliminate MOZ_CAN_RUN_SCRIPT_BOUNDARY on console callbacks. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D23774
2019-03-19 04:33:32 +00:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Jeff Gilbert
70a22b2878
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Andrea Marchesini
f84a281945
Bug 1459279 - Console API: Implement console.countReset(), r=bgrins
2018-05-22 11:34:41 +02:00
Andrea Marchesini
2c6afcc4ec
Bug 1458466 - Implement Console.timeLog(optional DOMString label = "default"), r=bgrins
2018-05-15 13:00:49 +02:00
Andrea Marchesini
3f54b1d29e
Bug 1328964 - part 3 - Console API exposed to worklets r=baku
...
Initial version r=smaug.
Rebased to c616a6fd5e4b by Jan-Ivar Bruaroey <[email protected] > r=karlt.
Rebased to 83de58ddda20 by Karl Tomlinson <[email protected] > r=baku.
MozReview-Commit-ID: G5E5OXydj3a
2018-04-12 16:21:20 +12:00
Andrea Marchesini
75fc99f2c4
Bug 1447210 - Warning messages if console level pref doesn't exist, r=bgrins
2018-03-24 08:21:01 +01:00
Andrea Marchesini
c3783bdcce
Bug 1439686 - Console API should print logs on stdout when used by chrome code and if browser.dom.window.dump.enabled is true, r=bgrins
2018-02-22 08:49:51 +01:00
Andrea Marchesini
4080283bda
Bug 1433049 - ConsoleInstance must be QI-able as nsISupports interface, r=smaug
2018-01-25 15:55:51 +01:00