Commit Graph

380 Commits

Author SHA1 Message Date
Mark Banner
4670076692 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
f3ff709821 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
0f8e9f696e 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
Dave Townsend
6a99b2e0d4 Bug 1864896: Autofix unused function arguments (dom). r=emilio,media-playback-reviewers,dom-storage-reviewers,padenot,janv
Differential Revision: https://phabricator.services.mozilla.com/D202962
2024-03-04 15:44:59 +00:00
Peter Van der Beken
cc2209dab3 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
6d4c6fde36 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
8c2521e9d5 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
e0ed150b44 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
a1122e9bfc 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
47f3bed3c2 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
Mark Banner
cd8f1f907b Bug 1876987 - Move ConsoleInstance to dom/chrome-webidl. r=webidl,emilio
Differential Revision: https://phabricator.services.mozilla.com/D202617
2024-02-23 23:34:35 +00:00
Emilio Cobos Álvarez
9ef319a1b0 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
b9105c92ab 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
fbb22918a3 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
68329be1d3 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
13ffecde96 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
be3d23d88d 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
5f3bebe82a 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
Joel Maher
28be3ac6b4 Bug 1859890 - batch 14 convert xpcshell.ini -> .toml. r=aryx,dom-storage-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D194162
2023-11-28 01:02:01 +00:00
Alexandre Poirot
b093bf6667 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
b31ec67237 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
bd6e530d90 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
Mark Banner
21e52b9399 Bug 1860988 - Enable ESLint rule object-shorthand on remaining parts of dom/*. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D191849
2023-10-27 12:43:04 +00:00
Adam Brouwers-Harries
a26eafe5c3 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
Narcis Beleuzu
948c7279ee Backed out changeset 714aaf6484fb (bug 1421651) for causing Bug 1860719. CLOSED TREE 2023-10-24 17:31:02 +03:00
Adam Brouwers-Harries
4cdf967b4e 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-23 13:55:50 +00:00
Tom Marble
1ca03b1818 Bug 1855295 convert .ini manifests to .toml: batch 8 dom/[a-l]**/mochitest.ini r=jmaher,jgilbert,extension-reviewers,credential-management-reviewers,robwu,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D189381
2023-10-02 17:18:28 +00:00
Tom Marble
9e40a719f2 Bug 1850545 - convert .ini manifests to .toml: batch 3 chrome.ini (bis) r=jmaher,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,places-reviewers,profiler-reviewers,m_kato,mak,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D187597
2023-09-13 18:28:32 +00:00
Peter Van der Beken
9fba1d5220 Bug 1846277 - Remove nsGlobalWindow.h. r=dom-core,necko-reviewers,jesup,farre
Differential Revision: https://phabricator.services.mozilla.com/D184973
2023-08-02 20:41:48 +00:00
Karandeep
e5d005787c Bug 1829614 - Convert dom/console to ES modules. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D178060
2023-05-23 16:19:06 +00:00
Mark Banner
8219a5c503 Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
shisama
75ee2d516c Bug 1753682 - fix format specifier for BigInt. r=nchevobbe,smaug,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D173415
2023-04-04 16:29:22 +00:00
Gijs Kruitbosch
db773748bb Bug 1621675 - improve console method's dump logging for DOM elements, r=nchevobbe,smaug
Differential Revision: https://phabricator.services.mozilla.com/D171473
2023-03-07 16:22:59 +00:00
Mark Banner
3b7b6d19fc Bug 1806723 - Replace Cu.reportError with console.error in dom/console code. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D165204
2022-12-21 13:18:28 +00:00
Sandor Molnar
119b025cf4 Backed out changeset 146a11389a42 (bug 1806500) for causing mochitest failures in dom/console/tests/test_bug659625.html CLOSED TREE 2022-12-20 10:32:26 +02:00
Mark Banner
dfc3bdb42a Bug 1806500 - Automatically replace Cu.reportError with console.error (uriloader dom). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D165067
2022-12-20 07:43:44 +00:00
Mark Banner
42674415ed Bug 1795322 - Update toolkit modules references in dom code. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D160034
2022-10-26 08:06:37 +00:00
Csoregi Natalia
5f9da7b301 Backed out 12 changesets (bug 1795322) for causing multiple failures e.g. test_deletion_request_ping.py. CLOSED TREE
Backed out changeset aba25cbcda51 (bug 1795322)
Backed out changeset a4a35005ada9 (bug 1795322)
Backed out changeset 8e8d790eb0f4 (bug 1795322)
Backed out changeset db8903454bd3 (bug 1795322)
Backed out changeset 60cc71c61cad (bug 1795322)
Backed out changeset bc6a674994ad (bug 1795322)
Backed out changeset 6ac8a611f8c7 (bug 1795322)
Backed out changeset 9fb873ecfb31 (bug 1795322)
Backed out changeset c8a7a40c2a2f (bug 1795322)
Backed out changeset f2c118b6c6ce (bug 1795322)
Backed out changeset 38df43b4a70f (bug 1795322)
Backed out changeset 89aea8373411 (bug 1795322)
2022-10-25 23:47:58 +03:00
Mark Banner
a23bba4111 Bug 1795322 - Update toolkit modules references in dom code. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D160034
2022-10-25 19:49:27 +00:00
Olli Pettay
93acdfad59 Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
nchevobbe
96c3cea2ea Bug 1483662 - Add microSecondTimeStamp to nsConsoleMessage, nsScriptError and ConsoleEvent. r=edgar.
Those will be consumed by DevTools webconsole so we can order messages
emitted within the same millisecond more precisely (see next patch in queue)

Differential Revision: https://phabricator.services.mozilla.com/D155545
2022-09-02 04:58:28 +00:00
Fabrice Desré
c50cb528fc Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 16:39:41 +00:00
Andreea Pavel
3ccd75af8d Backed out changeset b9d2965591b9 (bug 1761040) for landing with wrong author CLOSED TREE DONTBUILD 2022-08-03 18:55:00 +03:00
Andreea Pavel
fdb7cb2ecd Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 15:27:43 +00:00
Mark Banner
7428be4a86 Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D152736
2022-08-03 11:16:20 +00:00
Andreea Pavel
89d63c91e6 Backed out changeset a907159a482f (bug 1761040) for causing build bustages on a CLOSED TREE 2022-08-02 04:59:08 +03:00
Fabrice Desré
0f4ac7ad97 Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-02 00:49:41 +00:00
Emilio Cobos Álvarez
42b7f1a58c 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
Tooru Fujisawa
52c95734e7 Bug 1667455 - Part 9: Stop importing Services.jsm from chrome-priv HTML code, single-line cases. r=kmag,necko-reviewers,geckoview-reviewers,extension-reviewers,m_kato,dragana
Differential Revision: https://phabricator.services.mozilla.com/D150898
2022-07-11 12:41:52 +00:00
Tooru Fujisawa
bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00