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

22013 Коммитов

Автор SHA1 Сообщение Дата
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
Nicolas Chevobbe 767dc27ef8 Bug 1680211 - [devtools] Remove backward compatibility code for handling worker targets without unique id. r=jdescottes.
Prior to Firefox 68, worker target didn't have a unique id,
and we were relying on their actor id in a few places.
Now that we should have the id everywhere, we can remove
the backward compatibility code, and simplify some of
the logic.

Differential Revision: https://phabricator.services.mozilla.com/D98464
2020-12-03 06:24:06 +00:00
Julian Descottes 0e4a1ef1aa Bug 1673897 - [devtools] Throw if a spec method defines an array return value r=ochameau
Depends on D96940

Differential Revision: https://phabricator.services.mozilla.com/D96941
2020-12-02 14:35:53 +00:00
Julian Descottes a0e3b72bea Bug 1673897 - [devtools] Stop using arrays as return values for rdp responses r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96940
2020-12-02 14:35:46 +00:00
Alexandre Poirot 350909e718 Bug 1678385 - [devtools] Enable legacy listener for targets that watcher actor doesn't support. r=jdescottes
This is useful for SOURCE resource, as that's one resource that we expect to
fetch from all targets, but Service Worker and Shared worker targets aren't supported
yet by the watcher. So we should be using legacy listener for these.

Differential Revision: https://phabricator.services.mozilla.com/D97631
2020-12-02 10:33:49 +00:00
Nicolas Chevobbe 7e3eb1eda3 Bug 1680000 - [devtools] Remove backward compatibility code in GridFront. r=jdescottes.
We can remove the code that was handling connecting to server older
than Firefox 60.

Differential Revision: https://phabricator.services.mozilla.com/D98313
2020-12-02 08:09:38 +00:00