Commit Graph
6096 Commits
Author SHA1 Message Date
Alexandre Poirot 5b05cf4097 Bug 1916533 - [devtools] Always use native codepath when recording JS traces to the profiler output. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D220936
2024-09-04 11:49:41 +00:00
Boris Chiou febd7b261f Bug 1911216 - Part 1: Add CSS selector parsing support for view transition pseudo-elements. r=layout-reviewers,firefox-style-system-reviewers,emilio,devtools-reviewers,nchevobbe
This adds the pasring support for:
1. `::view-transition`
2. `::view-transition-group(name)`
3. `::view-transition-image-pair(name)`
4. `::view-transition-old(name)`
5. `::view-transition-new(name)`

The `name` here is a `<custom-ident>` or `*`.

Differential Revision: https://phabricator.services.mozilla.com/D219713
2024-09-03 19:29:32 +00:00
Andrea Marchesini 77c26f16b7 Bug 1913161 - Implement a max-age cap for cookies, r=devtools-reviewers,cookie-reviewers,timhuang,webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D219216
2024-09-02 07:57:30 +00:00
Julian Descottes 530ba0fd27 Bug 1915423 - [devtools] Update MDN compat data (131) r=devtools-reviewers,nchevobbe
Regular update + 1 test adjustment

Differential Revision: https://phabricator.services.mozilla.com/D220436
2024-08-29 11:45:26 +00:00
Gregory Pappas 68146534c6 Bug 1915014 - Remove fallback to hidden window in ParentProcessTargetActor._getInitialDocShell r=ochameau,firefox-desktop-core-reviewers
This was added in bug 1275942, which added the --wait-for-jsdebugger option.
I think it's not necessary because BrowserGlue.sys.mjs is loaded before
"command-line-handler" category runs[1], so the early blank window will
have already opened before DevToolsStartup.handleDebuggerFlag spins the
event loop[2].

Currently, the early blank window is not enabled on all platforms and
can be disabled by pref. To make it reliable for DevTools use, we will
forcefully create the early blank window regardless of OS or pref when
--wait-for-jsdebugger is passed to the application. I tested this patch
on macOS (where the early blank window is not enabled) and it works well.


[1] https://searchfox.org/mozilla-central/rev/3f193a8bb0759058c2f9a9d7761ad73bc6ffd4b1/toolkit/xre/nsAppRunner.cpp#5571-5573,5734-5737
[2] https://searchfox.org/mozilla-central/rev/1d4c27f9f166ce6e967fb0e8c8d6e0795dbbd12e/devtools/startup/DevToolsStartup.sys.mjs#1011,1037-1043

Differential Revision: https://phabricator.services.mozilla.com/D220171
2024-08-29 08:18:48 +00:00
Stanca Serban 70d11b2cc5 Backed out changeset e04c427060e1 (bug 1915014) for causing OS X mochitests failures in browser_startup.js. 2024-08-29 09:54:16 +03:00
Tamas Szentpeteri 5738bda40d Backed out 2 changesets (bug 1909980, bug 1913161) for causing mochitest and wd failures related to cookies. CLOSED TREE
Backed out changeset 606b39b7dbfe (bug 1909980)
Backed out changeset 2ce372d2cff0 (bug 1913161)
2024-08-28 21:31:55 +03:00
Gregory Pappas d9ef635fd7 Bug 1915014 - Remove fallback to hidden window in ParentProcessTargetActor._getInitialDocShell r=ochameau,firefox-desktop-core-reviewers
This was added in bug 1275942, which added the --wait-for-jsdebugger option.
I think it's not necessary because BrowserGlue.sys.mjs is loaded before
"command-line-handler" category runs[1], so the early blank window will
have already opened before DevToolsStartup.handleDebuggerFlag spins the
event loop[2].

Currently, the early blank window is not enabled on all platforms and
can be disabled by pref. To make it reliable for DevTools use, we will
forcefully create the early blank window regardless of OS or pref when
--wait-for-jsdebugger is passed to the application. I tested this patch
on macOS (where the early blank window is not enabled) and it works well.


[1] https://searchfox.org/mozilla-central/rev/3f193a8bb0759058c2f9a9d7761ad73bc6ffd4b1/toolkit/xre/nsAppRunner.cpp#5571-5573,5734-5737
[2] https://searchfox.org/mozilla-central/rev/1d4c27f9f166ce6e967fb0e8c8d6e0795dbbd12e/devtools/startup/DevToolsStartup.sys.mjs#1011,1037-1043

Differential Revision: https://phabricator.services.mozilla.com/D220171
2024-08-28 17:42:15 +00:00
Andrea Marchesini 45de281573 Bug 1913161 - Implement a max-age cap for cookies, r=devtools-reviewers,cookie-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D219216
2024-08-28 15:16:57 +00:00
Butkovits Atila 48282434ec Backed out 2 changesets (bug 1913161, bug 1909980) for causing xpcshell failures at test_bug1321912.js. CLOSED TREE
Backed out changeset 0a3cd5d9f229 (bug 1909980)
Backed out changeset 8118def08de0 (bug 1913161)
2024-08-28 15:37:12 +03:00
Andrea Marchesini b578003e92 Bug 1913161 - Implement a max-age cap for cookies, r=devtools-reviewers,cookie-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D219216
2024-08-28 11:35:22 +00:00
Julian Descottes 9c0bde6b45 Bug 1913263 - [devtools] Handle generic keydown events in nodePicker even if no currentNode available r=devtools-reviewers,ochameau
Depends on D219804

Differential Revision: https://phabricator.services.mozilla.com/D219973
2024-08-27 13:16:48 +00:00
Julian Descottes 562caf3c68 Bug 1913263 - [devtools] Also prevent mozSystemGroup events while using the node picker r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D219804
2024-08-27 13:16:48 +00:00
pstanciu fbb266b306 Backed out changeset f89c9403564e (bug 1913161) for causing multiple failures. CLOSED TREE 2024-08-27 15:13:00 +03:00
Andrea Marchesini a170a65684 Bug 1913161 - Implement a max-age cap for cookies, r=devtools-reviewers,cookie-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D219216
2024-08-27 11:02:18 +00:00
Henrik Skupin 3a548b37ef Bug 1912237 - [devtools] Remove backward compatibility code for Firefox 131 release. r=devtools-backward-compat-reviewers,devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D219877
2024-08-23 17:22:32 +00:00
Boris Chiou 8095281d3b Bug 1823901 - Add view-transition-name longhand in style system. r=layout-reviewers,firefox-style-system-reviewers,emilio
Add `view-transition-name` into style system, behind the preference,
"dom.viewTransitions.enabled".

We will use `view-transition-name` somewhere when we create the pseudo
elements. This patch only add this atom into style system for future
usage.

Differential Revision: https://phabricator.services.mozilla.com/D218120
2024-08-22 07:21:09 +00:00
Jonathan Kew 34a39b9f68 Bug 1913536 - Expose the special shorthands in the SpecifiedValueInfo for the CSS white-space shorthand. r=firefox-style-system-reviewers,devtools-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D219426
2024-08-21 14:48:25 +00:00
Jonathan Watt 17dfe4673b Bug 1909358. Rename inset-area to position-area. r=dshin
Differential Revision: https://phabricator.services.mozilla.com/D219225
2024-08-15 11:30:12 +00:00
Nicolas Chevobbe b3a64b958a Bug 1626234 - [devtools] Display the computed value of custom property in var() tooltip. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D218403
2024-08-07 14:55:24 +00:00
Julian Descottes 2f670b84dd Bug 1908095 - [devtools] removeSessionDataEntry for webextension toolboxes and watcher targets r=ochameau,devtools-reviewers
Fix removing breakpoints in webextension toolboxes and watcher targets, add tests to cover both scenarios

Differential Revision: https://phabricator.services.mozilla.com/D218084
2024-08-07 11:58:36 +00:00
Norisz Fay 4f9b612d31 Backed out 4 changesets (bug 1911525, bug 1911510, bug 1626234, bug 1911524) for causing dt failures on browser_rules_variables_autocomplete.js CLOSED TREE
Backed out changeset 1d693bec567a (bug 1911525)
Backed out changeset 44eade30f582 (bug 1911524)
Backed out changeset 12f9b7ee50d2 (bug 1626234)
Backed out changeset f8794323217a (bug 1911510)
2024-08-07 15:11:58 +03:00
Nicolas Chevobbe 83a3bc4b57 Bug 1626234 - [devtools] Display the computed value of custom property in var() tooltip. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D218403
2024-08-07 10:36:11 +00:00
Daniel Minor 33f8aa3859 Bug 1896390 - Add getter for Iterator.constructor to eager-ecma-allowlist.js; r=nchevobbe,devtools-reviewers,arai
Differential Revision: https://phabricator.services.mozilla.com/D218124
2024-08-07 03:47:53 +00:00
Julian Descottes 24db7b4175 Bug 1856481 - [devtools] Stop destroying webextension descriptor on actor destroy r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216533
2024-08-06 15:05:13 +00:00
alexical a0fa98ad19 Bug 1906719 - Output native JS trace to the profiler r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D215933
2024-08-05 15:44:21 +00:00
Nicolas Chevobbe 30cbadfca7 Bug 1909170 - [devtools] Don't trigger reflow in grid and flex highlighter update. r=devtools-reviewers,jdescottes.
The update function can be called a lot when scrolling/resizing the window.
The line where we were forcing the reflow were added in Bug 1312103, as a way
to fix a lag during scrolling.
Removing the reflow, I don't see any lag anymore (it might be because the
anonymous content implementation changed).
We take this as an opportunity to refactor things a bit, directly manipulating
the element we need to handle instead of going through the anonymous content API
(e.g. `setAttribute`, which was showing in profiles).

Differential Revision: https://phabricator.services.mozilla.com/D218395
2024-08-05 15:41:07 +00:00
Nicolas Chevobbe cf58ecac94 Bug 1857006 - [devtools] Strike through unused light-dark parameter in Rules view. r=devtools-reviewers,ochameau.
This exposes `darkColorScheme` on rule entries as the color scheme depends on the
node to which the rule applies, and we might get inherited rules.
We also make sure to update the property editor if the color scheme changes,
for example if the user triggers color scheme simulation.

A test is added to ensure we cover the different cases.

Differential Revision: https://phabricator.services.mozilla.com/D211845
2024-08-05 15:40:49 +00:00
Christoph Kerschbaumer b4320331f1 Bug 1911258: Improve HTTPS Telemetry: Annotate top-level re-send loads from the web console. r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218398
2024-08-02 11:41:06 +00:00
Alexandre Poirot 37b729fea9 Bug 1871500 - [devtools] Display tracer function call arguments as inline previews. r=devtools-reviewers,nchevobbe
When selecting a trace in the debugger sidebar, we are opening the location
in CodeMirror, but compared to the Web Console input, we were missing the recorded JS values.
Let's try to display them similarly to inline previews.

Differential Revision: https://phabricator.services.mozilla.com/D197118
2024-08-02 06:56:06 +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
Alexandre Poirot a441733f0e Bug 1866818 - [devtools] Enable the JS tracer on remote debugging. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Display a warning message in the tracer sidebar when there could be a backward compat issue.

Differential Revision: https://phabricator.services.mozilla.com/D217745
2024-07-31 12:48:21 +00:00
Alexandre Poirot 34e0e44a23 Bug 1907977 - [devtools] Fix source text content of worker ESM loaded via ChromeUtils methods. r=devtools-reviewers,nchevobbe
Spidermonkey fails returning source text content via `Source.text` attribute.
It returns "[no source]" and the urlContents fallback was trying to keep using this instead
of the text content fetched via a request.

Differential Revision: https://phabricator.services.mozilla.com/D218003
2024-07-30 15:43:12 +00:00
Masayuki Nakano 528d09c312 Bug 1904279 - Get rid of dom.w3c_pointer_events.dispatch_click_as_pointer_event pref r=smaug,pip-reviewers,search-reviewers,devtools-reviewers,urlbar-reviewers,nchevobbe,dao,jteow,mconley
Keep supporting the pref makes a lot of `click`, `auxclick` and `contextmenu`
event creators complicated (and look messy).  So, let's delete it as soon as
possible.

Differential Revision: https://phabricator.services.mozilla.com/D217225
2024-07-30 06:49:42 +00:00
Nicolas Chevobbe 843ab01105 Bug 1909307 - [devtools] Always show the same label in Debugger paused overlay. r=devtools-reviewers,ochameau,fluent-reviewers.
This way the overlay doesn't jump around when stepping.

Differential Revision: https://phabricator.services.mozilla.com/D217799
2024-07-29 21:39:47 +00:00
Iulian Moraru de2e453ec4 Backed out changeset 23621642a445 (bug 1856481) for causing dt failures on browser_aboutdebugging_addons_remote_runtime_close_reopen.js. CLOSED TREE 2024-07-27 01:35:51 +03:00
Julian Descottes 2b230531c0 Bug 1856481 - [devtools] Stop destroying webextension descriptor on actor destroy r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216533
2024-07-26 21:51:29 +00:00
Alexandre Poirot 466ce7ae5f Bug 1909544 - [devtools] Enable jstracer in the browser toolbox. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D217494
2024-07-26 14:19:48 +00:00
Alexandre Poirot 0dc5b2938e Bug 1909544 - [devtools] Fix duplicated session data updates in the browser toolbox. r=devtools-reviewers,nchevobbe
The workers array on watcher data object is shared between all worker types.
We should be careful to only consider the entries matching the current worker watcher class.

Differential Revision: https://phabricator.services.mozilla.com/D217493
2024-07-26 14:19:47 +00:00
Tamas Szentpeteri 7122ed4562 Backed out changeset 6f51dab4589d (bug 1856481) for causing mochitest failures on browser_aboutdebugging_addons_remote_runtime_close_reopen.js. CLOSED TREE. 2024-07-26 17:44:12 +03:00
Julian Descottes b8734f71b8 Bug 1856481 - [devtools] Stop destroying webextension descriptor on actor destroy r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216533
2024-07-26 13:23:50 +00:00
Julian Descottes d6660f2905 Bug 1901504 - [devtools] Remove support for earlyEvents=false in NetworkObserver r=devtools-reviewers,webdriver-reviewers,bomsy,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D217026
2024-07-26 12:33:12 +00:00
artem manushenkov 5c673a5672 Bug 1826409 - [devtools] Show dimension overlay by default while window is resizing. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D203924
2024-07-26 08:09:27 +00:00
Nicolas Chevobbe 110489843c Bug 1909819 - [devtools] Use Highlighter types constant. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D217692
2024-07-26 08:09:26 +00:00
Nicolas Chevobbe 013f686156 Bug 1909819 - [devtools] Register highlighter with type from shared module. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D217691
2024-07-26 08:09:26 +00:00
Nicolas Chevobbe 1b0667d1cf Bug 1713545 - [devtools] Remove deprecated (and unecessary?) setCapture call in touch simulator. r=devtools-reviewers,ochameau.
evt.target.setCapture is deprecated and displays a message to the console.
it was used to make sure events are not dispatched to something else, for
example a different window.
We could replace this with evt.target.setPointerCapture,
but there is no test covering this, and trying to make appear an overlapping
element still only dispatch the element to the original target, so we can
probably remove this just fine.

Differential Revision: https://phabricator.services.mozilla.com/D217115
2024-07-25 06:09:04 +00:00
Tamas Szentpeteri 89ce356df0 Backed out 2 changesets (bug 1909544) for causing leaks. CLOSED TREE
Backed out changeset 9970146a7696 (bug 1909544)
Backed out changeset c5e28887e098 (bug 1909544)
2024-07-24 23:02:04 +03:00
Nicolas Chevobbe 81602b8d92 Bug 1909405 - [devtools] Expose cookies unique key indexes in constant. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D217364
2024-07-24 18:15:18 +00:00
Nicolas Chevobbe e5a12a391b Bug 1909405 - [devtools] Add CookiesStorageActor#getCookieUniqueKey. r=devtools-reviewers,ochameau.
The unique key was computed in a few different places,
let's have a small helper function to compute the key
and call it when we need it.

Differential Revision: https://phabricator.services.mozilla.com/D217363
2024-07-24 18:15:17 +00:00
Alexandre Poirot 6d9da3049f Bug 1909544 - [devtools] Enable jstracer in the browser toolbox. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D217494
2024-07-24 17:00:32 +00:00