Граф коммитов

22118 Коммитов

Автор SHA1 Сообщение Дата
Hubert Boma Manilla 3a5a44e982 Bug 1683121 - [devtools] Disable blocking CSP test for fission r=ochameau
Disabling browser_net_block-csp.js as it fails with fission enabled.
Bug 1682153 details the issue, and the test would be enabled when this
bug is fixed.

Differential Revision: https://phabricator.services.mozilla.com/D99626
2020-12-17 15:34:04 +00:00
Hubert Boma Manilla 32735f86aa Bug 1683119 - [devtools] Stop setting the targetFront on _onResourcUpdated and _onResourceDestroyed r=ochameau
Fixes browser_preloaded_newtab.js test
Fixes browser_aboutdebugging_devtoolstoolbox_target_destroyed.js test

Differential Revision: https://phabricator.services.mozilla.com/D99624
2020-12-17 15:29:17 +00:00
Hubert Boma Manilla ae44ae4664 Bug 1683107 - [devtools] Query the nsIHttpChannel to make sure we get the sourceMapURL r=ochameau
This fixes browser_dbg-gc-sources.js test

Differential Revision: https://phabricator.services.mozilla.com/D99620
2020-12-17 14:55:54 +00:00
Nicolas Chevobbe d15f816596 Bug 1682848 - [devtools] Fix error when pausing in a content process script in the Browser Toolbox. r=bomsy.
When pausing in a content process script in the Browser Toolbox (e.g. somewhere
in devtools/server), we tried to display the PausedDebuggerOverlay, which was
causing an error to be displayed in the CanvasFrameAnonymousContentHelper, as
we didn't have access to a documentElement property it needed.

This happens because the _canShowOverlay method in the thread actor was only
checking for the presence of a window property on the target actor.
Unfortunately, the ContentProcessTargetActor does expose a window getter, which
is a Sandbox, and thus doesn't have a document.

This patch modifies the _canShowOverlay function to check that we do have access
to a documentElement.

Differential Revision: https://phabricator.services.mozilla.com/D99899
2020-12-17 08:02:40 +00:00
Nicolas Chevobbe 90b3bafd50 Bug 1682754 - [devtools] Use setPointerCapture in Draggable.js . r=rcaliman.
We used to set the `mousemove` event listener on the document once the drag
started, so we could track mouse movement outside of the drag element.
This can now be done another way, using `setPointerCapture`, so we can have the
event listener directly on the element, and not on the document anymore.

A few tests that were dispatching mousemove events from the document are updated.

Differential Revision: https://phabricator.services.mozilla.com/D99863
2020-12-16 10:01:56 +00:00
Kartik Gautam f7ffcd09fb Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-15 10:34:54 +00:00
Nicolas Chevobbe 51d30788b3 Bug 1681055 - [devtools] Add test case to check pretty-printing works on async function in console editor. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D99321
2020-12-15 08:44:55 +00:00
Nicolas Chevobbe 36ec5c6448 Bug 1681055 - [devtools] Update beautify-js to 1.13.0. r=ochameau.
This fix pretty-printing of async functions in console. A test case is added
to make sure we don't regress.

We used to copy the library tests and run them in xpcshell. The tests changed
a lot, and I don't think we get much value running tests that are already ran on
the project CI (we do have a few tests that checks that we get the output we want)
, so this patch remove the xpcshell test and the associated files.

The upgrade documentation is updated to remove some unecessary steps:
- no need to rename the exported module for each file
- no need to replace the acorn module, since what's in the file is just a subset
  of the library (~100 lines)
- no need to update the test file, which doesn't seem to exist anymore

Differential Revision: https://phabricator.services.mozilla.com/D99320
2020-12-15 08:48:19 +00:00
Emilio Cobos Álvarez 93ac2de55b Bug 1682295 - Update property dbs.
Differential Revision: https://phabricator.services.mozilla.com/D99706
2020-12-14 18:27:54 +00:00
Alexandre Poirot 44062da776 Bug 1573327 - [devtools] Pass breakpoints via the Watcher actor. r=jdescottes,devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88850
2020-12-14 08:54:25 +00:00
Razvan Caliman bd1ef62248 Bug 1572654 - [devtools] Hide flexbox highlighter when its nodeFront is dead r=ochameau
Depends on D97660

Hide highlighters when the node they highlight is removed from the DOM tree as a result of a mutation.

There is already a test covering this behavior for flexbox highlighters in: https://searchfox.org/mozilla-central/source/devtools/client/inspector/rules/test/browser_rules_flexbox-highlighter-on-mutation.js

Differential Revision: https://phabricator.services.mozilla.com/D98019
2020-12-13 16:38:51 +00:00
Razvan Caliman 195a4f97bd Bug 1572654 - [devtools] Restore active flexbox highlighter on page refresh r=jdescottes
Depends on D96730

This patch refactors slightly the way flexbox highlighters are restored when the page is refreshed while a highlighter is active.
To account for Fission, we store the `browsingContextID` of the target in addition to the node's unique selector, in order to match again the node after refresh and show a flexbox highlighter for it.

The events emitted are renamed to more generic versions "highlighter-restored" and "highlighter-discarded". They contain the highlighter type in the event data payload. Tests are updated accordingly.

Also made slight changes to the grid highlighter restore logic and corresponding tests in order to use the new generic events and test helpers. The bulk of the refactoring for grid highlighters will happen in [Bug 1572652](https://bugzilla.mozilla.org/show_bug.cgi?id=1572652)

Differential Revision: https://phabricator.services.mozilla.com/D97660
2020-12-13 17:25:23 +00:00
Razvan Caliman 96a20e675f Bug 1572654 - [devtools] Refactor telemetry logging for flexbox highlighter. r=jdescottes
Depends on D96449

Introduced two generic callbacks to `HighlightersOverlay`:

- `_afterShowHighlighterTypeForNode()` called after a highlighter is shown, but before emitting the "highlighter-shown" event that listeners react to
- `_beforeHideHighlighterType()` - called before an existing highlighter is hidden.

This allows us to move the telemetry logging methods for the Flexbox highlighter into these generic callbacks. The Grid highlighter will benefit from this too since it uses similar telemetry logging.
In an upcoming patch I will also move the logic to save metadata about the highlighter state in order to be able to restore it after page refresh.

Differential Revision: https://phabricator.services.mozilla.com/D96730
2020-12-13 16:47:31 +00:00
Razvan Caliman ae132c603e Bug 1572654 - [devtools] Refactor Layout Flexbox panel to use generic highlighter events and accessors & update tests r=ochameau
Depends on D96081

This patch builds upon the generalization in D96080 to update the Flexbox sidebar panel from the Inspector Layout panel to:
- listen to the generic highlighter events, "highlighter-shown" and "highlighter-hidden" and check for the flexbox highlighter type;
- use generic getter to get the node highlighted by the flexbox highlighter.

The corresponding tests are updated to use the generic highlighter events and test helpers.

Differential Revision: https://phabricator.services.mozilla.com/D96449
2020-12-10 14:13:42 +00:00
Razvan Caliman 8acb3c4cc7 Bug 1572654 - [devtools] Delegate event handling for flexbox and grid highlighters to the Markup view r=jdescottes
Depends on D96225

This patch removes event listeners for flexbox and grid highlighter events from individual nodes in the Markup view in favor of a delegated event handler at the panel level. It is similar to the approach introduced in D90247 for the selector highlighter in the Rules view (which will also be leveraged for the flexbox highlighter swatches in the Rule view).

This removes substantial duplication and a bit of ping-pong to enable/disable event listeners. It can also have a mild positive performance impact on documents with many flexbox & grid badges.

I updated both flex and grid badges in this patch for clarity and uniformity. To do that, I had to introduce emitting generic highlighter events for the grid highlighter as well. The bulk of the work for the grid highlighter will happen in [Bug 1572652](https://bugzilla.mozilla.org/show_bug.cgi?id=1572652).

Differential Revision: https://phabricator.services.mozilla.com/D96081
2020-12-10 14:13:40 +00:00
Razvan Caliman 69cc4c1599 Bug 1572654 - [devtools] Delegate toggling flexbox highlighter from CSS property swatches up to Rules view & update tests r=jdescottes
Depends on D96080

This patch leverages work done in D90247 for the `SelectorHighlighter`. Here, we delegate event handling of clicks on flexbox swatches next to "flex" and "inline-flex" CSS properties up to the Rules view. This will toggle the Flexbox highlighter from a single place in the Rules view.

When the Flexbox highlighter is shown/hidden, the swatches are marked "active" accordingly. We don't differentiate which swatch to mark if there are multiple "flex" properties. Only properties matching the selected node are shown. `display` is not an inheritable property so there will be only one winning `display: flex` declaration for the selected node. Even if there are duplicates, they will be marked overwritten. Swatches are hidden for overwritten properties. This eases the work when toggling some of the duplicates, the winning one will already show an "active" swatch.

This patch looks more scary than it is. The changes in tests are mass-renames to a new CSS class name and to use the same helpers.

It's easier if you start reviewing `highlighters-overlay.js`, then `text-property-editor.js`, then `rules.js`.

Differential Revision: https://phabricator.services.mozilla.com/D96225
2020-12-10 14:13:35 +00:00
Razvan Caliman 97e9ee02db Bug 1572654 - [devtools] Consolidate logic to show/hide flexbox highlighter r=jdescottes
Depends on D96079

This patch begins the work to make invoking the Flexbox highlighter process-agnostic. It replaces the direct-access methods that use the top-level inspector front with methods to show/hide highlighters corresponding to the nodes' respective inspector fronts.

There are other patches in this series which incrementally refactor the logic.

Known broken here, but updated in patches down the line:
- restoring active flexbox highlighters on refresh
- hiding highlighters when their target node or display type changes in remoted frames use cases

Differential Revision: https://phabricator.services.mozilla.com/D96080
2020-12-10 14:13:33 +00:00
Razvan Caliman 2661594be1 Bug 1572654 - [devtools] Dispatch thunk to toggle flexbox highlighter from Flexbox panel r=jdescottes
Depends on D96078

Following the technique introduced in [Bug 1623906](https://bugzilla.mozilla.org/show_bug.cgi?id=1623906), remove the prop-drilled method to toggle the flexbox highlighter with a thunk dispatched from a deeply nested React component.

In a follow-up bug, I will also migrate the `onSetFlexboxOverlayColor` method and remove the awkward indirection in this flow: `flexbox.js` -> `layout.js` -> `LayoutApp` -> `Flexbox`.

Differential Revision: https://phabricator.services.mozilla.com/D96079
2020-12-10 14:11:58 +00:00
Razvan Caliman e258dd23a9 Bug 1572654 - [devtools] Do not hide Flexbox / Grid highlighters from TextPropertyEditor when display value changes r=jdescottes
This behavior is duplicated with existing logic in `HighlightersOverlay`: https://searchfox.org/mozilla-central/rev/e75e8e5b980ef18f4596a783fbc8a36621de7d1e/devtools/client/inspector/shared/highlighters-overlay.js#1503-1543

That logic needs to be updated to listen to the `WalkerFront` corresponding to the frames where highlighters are visible, but that will happen in a patch later in this queue. This is just cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D96078
2020-12-10 14:11:51 +00:00
Nicolas Chevobbe 9583f26576 Bug 1680893 - [devtools] Fix copy rule when the user ended the selection over the rule checkbox. r=rcaliman.
When selecting something in the rule view, if the user
moused up right onto the enable/disable rule checkbox,
and then tried to copy the selection, the clipboard was empty.
This is due to copySelection checking the target of the copy
event and doing something special if it is an input or a textarea.

To fix this, we add an extra check to test if the input isn't
a checkbox.

A test case, failing without the fix, is added to ensure we don't
regress this.

Differential Revision: https://phabricator.services.mozilla.com/D99425
2020-12-13 23:43:14 +00:00
Dorel Luca 7320ae982a Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
Kartik Gautam caf549c200 Bug 1679758 - Remove trailing empty lines r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-13 13:28:30 +00:00
Hubert Boma Manilla ce646bb5ee Bug 1674653 - [devtools] Resend requests with fission r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95474
2020-12-12 16:01:44 +00:00
Steve Fink dad68c3ddf Bug 1662254 - Rename CC_WAITING -> CC_FINISHED r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D94792
2020-12-11 19:04:31 +00:00
Emilio Cobos Álvarez 3987c781d0 Bug 1635914 - Move active flag handling explicitly to BrowsingContext. r=nika
And have it mirror in the parent process more automatically.

The docShellIsActive setter in the browser-custom-element side needs to
be there rather than in the usual DidSet() calls because the
AsyncTabSwitcher code relies on getting an exact amount of notifications
as response to that specific setter. Not pretty, but...

BrowserChild no longer sets IsActive() on the docshell itself for OOP
iframes. This fixes bug 1679521. PresShell activeness is used to
throttle rAF as well, which handles OOP iframes nicely as well.

Differential Revision: https://phabricator.services.mozilla.com/D96072
2020-12-11 15:43:19 +00:00
Nicolas Chevobbe 9cd6389ce8 Bug 1680440 - [devtools] Remove backward compatibility comments for descriptor watcher traits. r=jdescottes.
The watcher trait might not be set on other descriptors, so
we want to keep them until we can get rid of the generic client
code that is handling them. This can probably be done as part of Bug 1680280.

Differential Revision: https://phabricator.services.mozilla.com/D98737
2020-12-11 14:20:16 +00:00
Nicolas Chevobbe 6d5ae59617 Bug 1680440 - [devtools] Cleanup backward compatibility comments in target-mixin. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D98735
2020-12-11 14:20:15 +00:00
Nicolas Chevobbe 9ebc9135be Bug 1680440 - [devtools] Remove try/catch block around getPushSubscription. r=jdescottes.
The block was here to accomodate for older servers. We shouldn't
have that case anymore.

Differential Revision: https://phabricator.services.mozilla.com/D98734
2020-12-11 13:55:21 +00:00
Nicolas Chevobbe 464d3947cb Bug 1680440 - [devtools] Remove erroneous backward compatibility comments for goForward/goBack methods. r=ladybenko.
Those methods are used in the client, so we don't want to remove them.
The original comment was only here to indicate when it was added.

Differential Revision: https://phabricator.services.mozilla.com/D98733
2020-12-11 13:55:14 +00:00
Nicolas Chevobbe cba90d934e Bug 1680440 - [devtools] Remove backward compatibility comment around code for deprecated tools in the Toolbox. r=jdescottes.
The code might still be used in the future for the storage inspector, so we can
remove the backward compat comment, and add more context around those lines.

Differential Revision: https://phabricator.services.mozilla.com/D98732
2020-12-11 13:55:01 +00:00
Nicolas Chevobbe fc88e75e67 Bug 1680440 - [devtools] Remove backward compatibility code in CombinedProgress#onProgressForWalker. r=yzen.
Older server didn't have the `completed` property, and we needed to rely on the
`progress` one. `completed` was added in 79, so we'll always have access to it now.

Differential Revision: https://phabricator.services.mozilla.com/D98731
2020-12-11 13:54:54 +00:00
Nicolas Chevobbe 0fa223f2bb Bug 1680440 - [devtools] Remove code handling missing startTime property in console evaluation response. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D98730
2020-12-11 13:54:46 +00:00
Nicolas Chevobbe d384313a27 Bug 1680440 - [devtools] Remove backward compatibility code to handle older messages in legacy listeners. r=ladybenko.
Older message had a _type property and a different shape,
so we needed to transform them.
We shouldn't get those anymore since 78, so we can remove that code.

Differential Revision: https://phabricator.services.mozilla.com/D98729
2020-12-11 13:54:33 +00:00
Nicolas Chevobbe 7b006ffb1b Bug 1680440 - [devtools] Remove getFavicon trait on Tab descriptor. r=ladybenko.
The trait was added in 76, so we can safely remove it.
This allows us to cleanup retrieveAsyncFormData, that
we rename to retrieveFavicon to better represents what it does.

Differential Revision: https://phabricator.services.mozilla.com/D98728
2020-12-11 13:54:26 +00:00
Nicolas Chevobbe 5fc6358573 Bug 1680440 - [devtools] Remove hasTabInfo trait on Tab descriptor. r=ladybenko.
The trait was added in 77, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98727
2020-12-11 13:54:13 +00:00
Nicolas Chevobbe 0578684be5 Bug 1680440 - [devtools] Remove favicons parameter in listTabs call. r=ladybenko,devtools-backward-compat-reviewers,jdescottes.
The parameter was only used for older servers, so we
can remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98726
2020-12-11 13:54:06 +00:00
Nicolas Chevobbe 7e7de7c94f Bug 1680440 - [devtools] Remove showUserAgentShadowRoots parameter in getWalker call. r=ladybenko.
The parameter was only used for server older than 74 (newer
servers only rely on the showAllAnonymousContent param).

Differential Revision: https://phabricator.services.mozilla.com/D98725
2020-12-11 13:53:58 +00:00
Nicolas Chevobbe a2398fb444 Bug 1680440 - [devtools] Remove nullable on profiler-started activeBrowsingContextID property. r=ladybenko,devtools-backward-compat-reviewers.
The nullable attribute was only there to handle server
older than 72, so we can remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98724
2020-12-11 13:53:45 +00:00
Nicolas Chevobbe 2b79562e27 Bug 1680440 - [devtools] Remove emitsRuleUpdatedEvent trait on the StyleRuleActor. r=ladybenko.
The trait was added in 72, so it's safe to remove it now.
With the trait removed, the onDeclarationUpdated method in rule.js
was no longer called, so we can remove it as well.

Differential Revision: https://phabricator.services.mozilla.com/D98723
2020-12-11 13:53:37 +00:00
Nicolas Chevobbe 450824e09f Bug 1680440 - [devtools] Remove backward compatibility comment for getSupportedFeatures. r=ladybenko,devtools-backward-compat-reviewers.
The function is used, the comment was only mentioning when
the function was added, which doesn't bring us any value.

Differential Revision: https://phabricator.services.mozilla.com/D98722
2020-12-11 13:53:30 +00:00
Nicolas Chevobbe efd881c98f Bug 1680440 - [devtools] Remove backward compatibility comment in paused debugger overlay. r=ladybenko.
The code isn't ready to be removed, as it depends on a Bug fix,
and not a given Firefox version.

Differential Revision: https://phabricator.services.mozilla.com/D98721
2020-12-11 13:53:22 +00:00
Nicolas Chevobbe 48fff0a45c Bug 1680440 - [devtools] Remove backward compatibility code in getNodeFrontFromNodeGrip. r=ladybenko,devtools-backward-compat-reviewers.
Since we now always have a contentDomReference in grips, we
don't need to fallback on gripToNodeFront.
And since gripToNodeFront was only used from getNodeFrontFromNodeGrip,
we can remove it, as well as the walker actor method getNodeActorFromObjectActor.

We also had to get a content reference from a rendered Reps in the console, for
the "Reveal in inspector" context menu entry, so we stringigy it in a data attribute.

Differential Revision: https://phabricator.services.mozilla.com/D98720
2020-12-11 13:53:14 +00:00
Itiel 920d7235e4 Bug 1681554 - Fix the Console's multi-line editor Search History borders when focused r=nchevobbe
Also fix the border radius for RTL on macOS

Differential Revision: https://phabricator.services.mozilla.com/D99269
2020-12-11 13:16:27 +00:00
Nicolas Chevobbe 6820632f46 Bug 1681448 - [devtools] Fix evaluation result message ordering. r=bomsy.
When evaluating an expression containing console api calls,
it might happen that the result message is handled by the
client before the console api messages.
This is due to the fact that those messages are handled by
the resource watcher, which throttles resources, whereas
the result message is directly added from the webconsole
frontend.
In the console reducer we already have code handling out-of-order
messages, but it is only triggered for messages with different
timestamps; in our case, the timestamp of the result message
might be the same as the one of the console api messages.

To fix this issue, we simply add an extra millisecond on the
evaluation result packet, which will ensure it will have a
distinct timestamp from the console api messages it might
have triggered, with minimal risk of side effects.

The existing test for ordering is enhanced by logging multiple
messages, and it is failing quite frequently without the fix.

Differential Revision: https://phabricator.services.mozilla.com/D99205
2020-12-11 10:20:39 +00:00
Nicolas Chevobbe 3aff30e0c2 Bug 1681065 - [devtools] Update MDN compat data for release 85. r=Honza.
This patch updates the compat data json files, using the update script.

Differential Revision: https://phabricator.services.mozilla.com/D98913
2020-12-10 16:49:12 +00:00
Nicolas Chevobbe beaffca71c Bug 1680218 - [devtools] Remove PreferenceActor traits. r=jdescottes.
The trait were added in 81 and 82, so we can safely remove them now.
We take this opportunity to bail early in setDefaultpreferencesIfNeeded
when there's no default preferences to set.

Differential Revision: https://phabricator.services.mozilla.com/D98498
2020-12-09 13:18:17 +00:00
Nicolas Chevobbe f29b1b76c7 Bug 1680218 - [devtools] Remove supportsOverflowDebugging2 trait. r=rcaliman.
The trait was added in Firefox 83, so we can safely
remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98497
2020-12-09 13:18:09 +00:00
Nicolas Chevobbe abc372fb68 Bug 1680218 - [devtools] Remove mentions of WorkerDescriptorActor#connect. r=ochameau,devtools-backward-compat-reviewers.
The function doesn't exist anymore on newer server, so
we can remove it from the spec file.

Differential Revision: https://phabricator.services.mozilla.com/D98496
2020-12-09 13:17:56 +00:00
Nicolas Chevobbe e913b1cbda Bug 1680218 - [devtools] Remove handling of old markup mutations. r=rcaliman.
frameLoad and documentUnload aren't emitted anymore (since 81),
so we can remove the code that was handling them.

Differential Revision: https://phabricator.services.mozilla.com/D98495
2020-12-09 13:17:48 +00:00
Nicolas Chevobbe 67ae0a0120 Bug 1680218 - [devtools] Remove unused methods in StyleSheetActor spec. r=daisuke,devtools-backward-compat-reviewers,jdescottes.
Those methods were only kept for backward compatibility in the spec file, so we
can remove them from here.
`getText` is still used from the `StyleSheetFront#guessIndentation`, so we remove
the backward compat comment, and add more information on it.

The methods on the actor can't be removed as they're still called from the StyleSheetsActor
to support servers that don't use the resource watcher for stylesheets.
A test that was using those methods was updated.

Differential Revision: https://phabricator.services.mozilla.com/D98494
2020-12-09 13:34:04 +00:00
Nicolas Chevobbe f04e61747b Bug 1680218 - [devtools] Remove isFileNameSupported trait in StyleSheetActor. r=daisuke.
The trait was added in 81, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98493
2020-12-09 13:17:32 +00:00
Nicolas Chevobbe aa45f21d3f Bug 1680218 - [devtools] Remove supportResourceRequests trait in StyleSheetActor. r=daisuke.
The trait was added in 81, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98491
2020-12-09 13:17:24 +00:00
Nicolas Chevobbe 2d1582a2b7 Bug 1680218 - [devtools] Remove backward compatibility code for StyleSheetsFront#getTraits. r=rcaliman.
Differential Revision: https://phabricator.services.mozilla.com/D98490
2020-12-09 13:17:16 +00:00
Nicolas Chevobbe 205f99ee89 Bug 1680218 - [devtools] Remove supportsIsTopLevelDocument trait. r=rcaliman.
The trait was introduced in Firefox 81, so it's
safe to remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98489
2020-12-09 13:17:08 +00:00
Nicolas Chevobbe 94359716cc Bug 1680218 - [devtools] Remove getAttributesInOwnerDocument trait. r=rcaliman.
The trait was introduced in Firefox 80, so it's
safe to remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98488
2020-12-09 13:16:56 +00:00
Nicolas Chevobbe 1aac59224c Bug 1680218 - [devtools] Remove supportsNodePicker trait. r=rcaliman.
The trait was introduced in Firefox 80, so it's
safe to remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98487
2020-12-09 13:16:48 +00:00
Csoregi Natalia 0c82325a1d Backed out 11 changesets (bug 1680218) for causing devtools failures e.g. /browser_rules_add-rule-and-property.js. CLOSED TREE
Backed out changeset a17c7da1221c (bug 1680218)
Backed out changeset 2cbd9d935611 (bug 1680218)
Backed out changeset 58034e6bc337 (bug 1680218)
Backed out changeset 9e668aa17d1c (bug 1680218)
Backed out changeset 082988607e17 (bug 1680218)
Backed out changeset 63d5d5fb0feb (bug 1680218)
Backed out changeset d09c87a11d72 (bug 1680218)
Backed out changeset 37adf02276eb (bug 1680218)
Backed out changeset 5103a959e33d (bug 1680218)
Backed out changeset 34838b56270b (bug 1680218)
Backed out changeset 936c49ae59a4 (bug 1680218)
2020-12-09 10:01:41 +02:00
Nicolas Chevobbe ef4f17ddbe Bug 1680218 - [devtools] Remove PreferenceActor traits. r=jdescottes.
The trait were added in 81 and 82, so we can safely remove them now.
We take this opportunity to bail early in setDefaultpreferencesIfNeeded
when there's no default preferences to set.

Differential Revision: https://phabricator.services.mozilla.com/D98498
2020-12-09 06:25:15 +00:00
Nicolas Chevobbe fbe8a70bc3 Bug 1680218 - [devtools] Remove supportsOverflowDebugging2 trait. r=rcaliman.
The trait was added in Firefox 83, so we can safely
remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98497
2020-12-09 06:25:12 +00:00
Nicolas Chevobbe b52e8b6f00 Bug 1680218 - [devtools] Remove mentions of WorkerDescriptorActor#connect. r=ochameau,devtools-backward-compat-reviewers.
The function doesn't exist anymore on newer server, so
we can remove it from the spec file.

Differential Revision: https://phabricator.services.mozilla.com/D98496
2020-12-09 06:25:10 +00:00
Nicolas Chevobbe a2b70b69db Bug 1680218 - [devtools] Remove handling of old markup mutations. r=rcaliman.
frameLoad and documentUnload aren't emitted anymore (since 81),
so we can remove the code that was handling them.

Differential Revision: https://phabricator.services.mozilla.com/D98495
2020-12-09 06:25:07 +00:00
Nicolas Chevobbe 882badf682 Bug 1680218 - [devtools] Remove unused methods in StyleSheetActor spec. r=daisuke,devtools-backward-compat-reviewers,jdescottes
Those methods were only kept for backward compatibility in the spec file, so we
can remove them from here.
The methods on the actor can't be removed as they're still called from the StyleSheetsActor
to support servers that don't use the resource watcher for stylesheets.
A test that was using those methods was updated.

Differential Revision: https://phabricator.services.mozilla.com/D98494
2020-12-09 06:25:05 +00:00
Nicolas Chevobbe bb4db98163 Bug 1680218 - [devtools] Remove isFileNameSupported trait in StyleSheetActor. r=daisuke.
The trait was added in 81, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98493
2020-12-09 06:25:02 +00:00
Nicolas Chevobbe 0093051061 Bug 1680218 - [devtools] Remove supportResourceRequests trait in StyleSheetActor. r=daisuke.
The trait was added in 81, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98491
2020-12-09 06:24:59 +00:00
Nicolas Chevobbe 5dac76356c Bug 1680218 - [devtools] Remove backward compatibility code for StyleSheetsFront#getTraits. r=rcaliman.
Differential Revision: https://phabricator.services.mozilla.com/D98490
2020-12-09 06:23:54 +00:00
Nicolas Chevobbe 63a91e4bfb Bug 1680218 - [devtools] Remove supportsIsTopLevelDocument trait. r=rcaliman.
The trait was introduced in Firefox 81, so it's
safe to remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98489
2020-12-09 06:23:46 +00:00
Nicolas Chevobbe ba390c5097 Bug 1680218 - [devtools] Remove getAttributesInOwnerDocument trait. r=rcaliman.
The trait was introduced in Firefox 80, so it's
safe to remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98488
2020-12-09 06:23:39 +00:00
Nicolas Chevobbe cd4eca5098 Bug 1680218 - [devtools] Remove supportsNodePicker trait. r=rcaliman.
The trait was introduced in Firefox 80, so it's
safe to remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98487
2020-12-09 06:23:26 +00:00
Oriol Brufau 1176df78f5 Bug 1680931 - Fix inspector highlighter race conditions. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D98869
2020-12-08 18:22:31 +00:00
Julian Descottes 96aa99602f Bug 1326659 - [devtools] Remove macos skipif for browser_toolbox_keyboard_navigation.js r=yzen
Depends on D98987
Try push looks ok without the skip-if, might be fine to remove it

Differential Revision: https://phabricator.services.mozilla.com/D99038
2020-12-08 18:15:25 +00:00
Julian Descottes 5bf85ffc24 Bug 1326659 - [devtools] Use button element to render close button in NotificationBox r=nchevobbe,yzen
Differential Revision: https://phabricator.services.mozilla.com/D98987
2020-12-08 18:14:22 +00:00
Nicolas Chevobbe e1302ab436 Bug 1680684 - [devtools] Fix handling of escaped characters for console autocomplete. r=bomsy.
The analyzeInputString function tried to handle escape characters in strings,
by having a dedicated ESCAPE state.
Unfortunately, when in ESCAPE state, the code will always re-assign the NORMAL state.
So if at some point the string was terminated, the code would assume we were entering
a string state again.
In the end, this would cause the autocomplete to fail, because the JSPropertyProvider
would think that it was passed an unterminated string literal.
This is fixed by introducing quote-specific escape state, so we know which state to get
back in once the escape character is consumed.

A few test cases are added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D98754
2020-12-08 16:31:27 +00:00
Alexandre Poirot 1a154de122 Bug 1644188 - [devtools] Unregister service worker in all resourceWatcher/targetList tests. r=jdescottes
Not doing that, makes the browser_resources_sources.js test to fail because
of pending SW's target which comes with unexpected sources.

Differential Revision: https://phabricator.services.mozilla.com/D98460
2020-12-08 13:12:11 +00:00
Alexandre Poirot 53d3715f45 Bug 1644188 - [devtools] Test Service Worker JS sources watching. r=jdescottes
This helps cover the workaround put in ResourceWatcher in order to trigger
the SOURCE legacy listener for targets that we don't yet support in the Watcher actor.

Differential Revision: https://phabricator.services.mozilla.com/D98438
2020-12-08 13:12:09 +00:00
Alexandre Poirot cc447685d4 Bug 1644188 - [devtools] Prevents watching for resources we no longer watch on target switching. r=jdescottes
This code in ResourceWatcher was forcing to watch resources we stopped listening to
when the target was switching.

Differential Revision: https://phabricator.services.mozilla.com/D98437
2020-12-08 13:45:40 +00:00
Alexandre Poirot 9717df61b3 Bug 1644188 - [devtools] Implement server side JS sources. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87504
2020-12-08 13:11:59 +00:00
Nicolas Chevobbe fe574be463 Bug 1680202 - [devtools] Remove unused watchpoint trait on Root actor. r=ochameau.
We take this as an opportunity to remove the watchpoint
pref as well, since it was always set to true.

Differential Revision: https://phabricator.services.mozilla.com/D98447
2020-12-08 10:56:12 +00:00
Nicolas Chevobbe 1c4be694f6 Bug 1680202 - [devtools] Remove perfActorVersion trait on Root actor. r=julienw.
The trait wasn't used at all.

Differential Revision: https://phabricator.services.mozilla.com/D98446
2020-12-08 10:55:54 +00:00
Nicolas Chevobbe d384fc5d5d Bug 1680202 - [devtools] Remove bulk traits on Root actor. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D98445
2020-12-08 10:55:41 +00:00
Nicolas Chevobbe 54acdc1626 Bug 1680202 - [devtools] Remove sources traits on Root actor. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D98444
2020-12-08 10:55:34 +00:00
Nicolas Chevobbe 81536061a5 Bug 1680202 - [devtools] Remove storageInspector traits on Root actor. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D98443
2020-12-08 10:55:21 +00:00
Nicolas Chevobbe 7f12163d9d Bug 1680202 - [devtools] Remove heapSnaphots traits on Root actor. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D98442
2020-12-08 10:55:13 +00:00
Nicolas Chevobbe a8c3a9ef74 Bug 1681070 - [devtools] Add a script to update MDN compat data. r=daisuke.
This patch adds a script which is similar to the one that was written in the README.md file.
This goes along with a simple package.json that let's us have a simple command
to execute the update script.

The README file is updated as well to reflect this new script.

Differential Revision: https://phabricator.services.mozilla.com/D98912
2020-12-08 09:16:33 +00:00
Bogdan Tara ade4d82c59 Backed out changeset 98c3e6255c58 (bug 1597600) for browser_installssl.js failures CLOSED TREE 2020-12-07 21:01:50 +02:00
R. Martinho Fernandes c99fe51d2d Bug 1597600 - make certificate overrides depend on origin attributes r=keeler,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D91962
2020-12-07 17:10:52 +00:00
Josue Quilon 0910846e1e Bug 1664768 - [devtools] Remove defer usage in devtools\client\shared\test\helper_addons.js r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D95106
2020-10-29 13:00:01 +00:00
Nicolas Chevobbe da432100a0 Bug 1679974 - [devtools] Remove backward compatibility code for older version of getCSSDatabase. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D98319
2020-12-04 16:50:43 +00:00
Nazım Can Altınova f4d36497aa Bug 1667061 - Add ProfilerViewMode for preset and append `view` querystring while opening the front-end. r=gregtatum
Depends on D91266

Differential Revision: https://phabricator.services.mozilla.com/D91267
2020-12-04 10:47:22 +00:00
Nazım Can Altınova 349951062c Bug 1667061 - Format the perf.d.ts file. r=gregtatum
My editor formats this file automatically when I need to change something here,
and it's annoying to exclude these when I need to change something in this
file. I guess it doesn't hurt to format it so we won't have to do that again.

Differential Revision: https://phabricator.services.mozilla.com/D91266
2020-12-04 10:47:09 +00:00
Emilio Cobos Álvarez 96a85ab8c6 Bug 1680558 - Update cssparser to get ParserState in rule parser. r=heycam
The changes should be trivial.

The third_party changes are up for review in
https://github.com/servo/rust-cssparser/pull/277 (and of course I'll
land with a bump to 0.28 rather than the override after that gets r+'d).

The basic idea is that with this we have the actual start offset of the
rule, so we wouldn't include html comments or other invalid stuff we
discard during sanitization in bug 1680084. But that's a separate
change.

Differential Revision: https://phabricator.services.mozilla.com/D98677
2020-12-04 10:47:55 +00:00
Nicolas Chevobbe eee9299520 Bug 1678757 - [devtools] Add missing errors in Error previewer. r=bomsy.
We weren't handling the error exception object in the Error previewer for
some error classes, and as a result we'd show an undefined grip in the console,
instead of a proper error message.
A test is added to check that we do print wasm errors as expected.

Differential Revision: https://phabricator.services.mozilla.com/D98469
2020-12-03 17:16:25 +00:00
Razvan Maries bde72eb2fd Backed out 2 changesets (bug 1667061) for perma failures on browser_popup-record-capture-view.js. CLOSED TREE
Backed out changeset af2cb6cee546 (bug 1667061)
Backed out changeset f374a2996151 (bug 1667061)
2020-12-03 20:01:56 +02:00
Nazım Can Altınova 4b0e6b19ca Bug 1667061 - Add ProfilerViewMode for preset and append `view` querystring while opening the front-end. r=gregtatum
Depends on D91266

Differential Revision: https://phabricator.services.mozilla.com/D91267
2020-12-03 14:19:22 +00:00
Nazım Can Altınova 43ad52a612 Bug 1667061 - Format the perf.d.ts file. r=gregtatum
My editor formats this file automatically when I need to change something here,
and it's annoying to exclude these when I need to change something in this
file. I guess it doesn't hurt to format it so we won't have to do that again.

Differential Revision: https://phabricator.services.mozilla.com/D91266
2020-12-03 11:14:47 +00:00
Nicolas Chevobbe eed6fa3f03 Bug 1680207 - [devtools] Remove backward compatibility code in devtools/client/inspector/rules/models/rule.js. r=bomsy.
The code was handling < 49 servers, so we can safely remove it.

Depends on D98449

Differential Revision: https://phabricator.services.mozilla.com/D98450
2020-12-03 09:23:33 +00:00
Nicolas Chevobbe 5b0ec6d578 Bug 1680207 - [devtools] Remove unnecessary backward compatibility comment in ObjectActor. r=bomsy.
Depends on D98448

Differential Revision: https://phabricator.services.mozilla.com/D98449
2020-12-03 09:18:56 +00:00
Nicolas Chevobbe 573de07f71 Bug 1680207 - [devtools] Remove backward compatibility code in WalkerFront. r=bomsy.
This code handled server older than 42, so it's safe to remove it.

Differential Revision: https://phabricator.services.mozilla.com/D98448
2020-12-03 09:20:50 +00:00
Nicolas Chevobbe 460c8c2214 Bug 1680281 - [devtools] Update backward compatibility comments for WatcherActor traits. r=jdescottes.
Those traits are going to be removed in Bug 1680280,
and not through the regular backward-compatibility cleanup routine.

Differential Revision: https://phabricator.services.mozilla.com/D98483
2020-12-02 18:42:47 +00:00
Nicolas Chevobbe 04874858ce Bug 1680211 - [devtools] Remove backward compatibility code to handle hidden system addons. r=jdescottes.
All addons have the hidden property now, so we can remove
the backward compatibility code and tidy up things a bit.

Differential Revision: https://phabricator.services.mozilla.com/D98466
2020-12-03 06:24:21 +00:00
Nicolas Chevobbe f211a1d986 Bug 1680211 - [devtools] Remove uninstallUnsupportedExtensions function. r=jdescottes.
The function was taking care of removing old addons.
It landed 2 years ago, so we can assume that we don't
need that anymore.

Differential Revision: https://phabricator.services.mozilla.com/D98465
2020-12-03 06:24:14 +00:00