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

22045 Коммитов

Автор SHA1 Сообщение Дата
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