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

21281 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes 6e5145a87c Bug 1652445 - Use root node resource to detect navigation for all frames r=rcaliman,ochameau
Depends on D85599

The WalkerActor is currently responsible for watching navigations and exposes them to the client.
However, this is communicated to the client differently depending on what kind of frame navigates.
If the top frame of the target navigates, this will be exposed via the watchRootNode API (onDestroyed/onAvailable callbacks will be triggered)
If an inner frame navigates, mutations will be emitted: "frameLoad"/"documentUnload" + a fake "childList" mutation.

On the client side, we have to handle both very similarly which leads to some duplication.
Also "frameLoad"/"documentUnload" are one of the last "immediateMutations" which usually means they should not have been mutations in the first place.

The goal here is to use the watchRootNode API for all frames.

Differential Revision: https://phabricator.services.mozilla.com/D84973
2020-08-07 12:16:51 +00:00
Julian Descottes 40eb2a0d73 Bug 1652445 - Remove skipped & outdated test browser_inspector-mutations-frameload.js r=ochameau
Depends on D85598

This test relies on mutations which are no longer emitted for most navigations and which will no longer be emitted at all with the next patches.
It has been disabled for 9 months and should be removed.

Differential Revision: https://phabricator.services.mozilla.com/D85599
2020-08-07 12:16:44 +00:00
Julian Descottes 58de59ca2b Bug 1652445 - Remove backward compatibility code for newRoot mutations r=rcaliman
Depends on D85597

newRoot mutations are no longer emitted by any server we support, we can remove the corresponding client code.

Differential Revision: https://phabricator.services.mozilla.com/D85598
2020-08-07 12:16:42 +00:00
Julian Descottes efef5c970b Bug 1652445 - Remove outdated traits from NodeActor r=rcaliman
Depends on D84972

Differential Revision: https://phabricator.services.mozilla.com/D85597
2020-08-07 12:15:02 +00:00
Julian Descottes 1d0130e4df Bug 1652445 - Rename WalkerActor _ref method and _refMap property r=gl
_ref is renamed to _getOrCreateNodeActor to better reflect the purpose of the method.
_refMap is renamed to _nodeActorsMap

The test helper inspector-helpers was also directly querying _refMap.
This has been replaced by a call to the public API getNode.

Differential Revision: https://phabricator.services.mozilla.com/D84972
2020-08-07 12:14:37 +00:00
Belén Albeza b6de344d69 Bug 1653998 - View source of worker from the Application panel r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86039
2020-08-07 12:47:34 +00:00
Stepan Stava 99cb02ee89 Bug 1657074 - Refactor 'toggleJavaScript' mochitest helper function to make it reusable r=nchevobbe
As suggested in revision [[ https://phabricator.services.mozilla.com/D81678#inline-485161| D81678 ]] the current `toggleJavaScript` function is used for toggling one menu item in the debugger settings.

This patch refactors this function to be reusable by other tests.

Differential Revision: https://phabricator.services.mozilla.com/D86038
2020-08-07 12:23:27 +00:00
Richard Sherman 155b24b9c7 Bug 1581641 - Enable codemirror's code folding in editor mode r=nchevobbe
Adding code folding to console when in editor mode.

Differential Revision: https://phabricator.services.mozilla.com/D85901
2020-08-07 11:10:17 +00:00
Julian Descottes e57c2589f9 Bug 1655016 - Do not assume any resource order in browser_resources_stylesheets.js r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D86254
2020-08-07 06:08:27 +00:00
Kriyszig 5808376a46 Bug 1643961 - Remove the backwards compatibility check for CompatibilityActor r=daisuke,mtigley
The backwards compatibility checks existed to support devtools
backend for version older than FF79. Now that FF79 has hit the
release channel, these tests for older backend can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D86142
2020-08-06 22:39:57 +00:00
Kriyszig 916bc8b129 Bug 1649021 - Add tests for CSS Compatibility Tooltip r=mtigley,daisuke DONTBUILD
The CSS Compatibility Tooltip tests cover the following cases:
* Check if the contents of the tooltip match the rendered template
* Check compatible rules aren't falsely marked incompatible
* Check incompatible rules are marked correct with icon appearing next to it
* Check toggling rule disable hides the icon
* Check adding rules updates the compatibilility status
* Check the compatibility icon disappears if a fix is added

Differential Revision: https://phabricator.services.mozilla.com/D84218
2020-08-06 11:06:39 +00:00
Kriyszig d0b13329e8 Bug 1649021 - Add tooltip in rules panel to highlight CSS compatiblity issues for particular declaration r=mtigley,daisuke,flod,ckerschb DONTBUILD
Use CompatibilityActor to fetch the compatiblity information for
a particular CSS declaration and show a tooltip for the
incompatible CSS declaration that may cause issue on platform

Differential Revision: https://phabricator.services.mozilla.com/D81474
2020-08-06 04:41:34 +00:00
Kriyszig 039a9c85b1 Bug 1649018 - Expose compatibility computation for CSS declaration block via CompatiblityActor and add browser dataset fetch r=daisuke,devtools-backward-compat-reviewers DONTBUILD
Previously CompatibilityActor could only compute the compatiblity
issues taking node actor. However with the implementation of
inline compatibility warning, it becomes necessary to compute
compatiblity issue from the CSS declaration block. This patch
exposes a getCssDeclarationBlockIssues and add browser dataset
fetch within the actor for inline warnings.

Differential Revision: https://phabricator.services.mozilla.com/D81472
2020-07-15 09:11:21 +00:00
Julian Descottes 599815e926 Bug 1571329 - Wait for 2 ruleview-changed events in browser_inspector_highlighter-cssshape_iframe_01.js r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D86237
2020-08-06 20:46:25 +00:00
manas 89eed33401 Bug 1653290 - Add overflow badge and show an overflow badge for every scroll causing element dynamically and a test to check its working. r=gl,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84333
2020-08-06 16:14:23 +00:00
Hubert Boma Manilla fac59c1636 Bug 1657153 - Use the resource id for updating and deleting a resource r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85987
2020-08-06 11:24:54 +00:00
Nicolas Chevobbe 7ee8cd576d Bug 1657389 - Rename target actor mock 'window' property to 'workerGlobal'. r=ochameau.
Not having the window property anymore, we have to change the `window` getter
in WebConsoleActor to retrieve `workerGlobal`. And since the getter name wasn't
reflecting what it was holding (it can be a window, a worker global or a sandbox),
we rename it to `global` (and `evalWindow` to `evalGlobal`).

We remove the `globalDebugObject` getter on the thread actor that wasn't used
anywhere in the code.

Differential Revision: https://phabricator.services.mozilla.com/D86035
2020-08-06 14:05:07 +00:00
Nicolas Chevobbe 09e0660397 Bug 1657386 - Use helpers from shared-head to unregister all workers in application panel tests. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D86024
2020-08-06 14:09:20 +00:00
Dev Singh e24d477b21 Bug 1635835 - Fix request parsing with XSSI-escapes in requests and responses r=Honza,bomsy
Also implements JSONP parsing into the main JSON parser

Differential Revision: https://phabricator.services.mozilla.com/D80720
2020-08-06 12:51:14 +00:00
Itiel 2f84734040 Bug 1656706 - Fix prefixed properties being displayed incorrectly in the Compatibility panel, for RTL r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D85663
2020-08-06 03:36:28 +00:00
Butkovits Atila 3bd0e5497c Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE
Backed out changeset 0d22ad297b19 (bug 1589102)
Backed out changeset 14bcaf2a452c (bug 1589102)
Backed out changeset 20905f91e2bb (bug 1589102)
Backed out changeset 29ee0fbe855f (bug 1589102)
Backed out changeset d1f6185030af (bug 1589102)
Backed out changeset 31949872cc1d (bug 1589102)
Backed out changeset ec04e1a20597 (bug 1589102)
Backed out changeset ffe8da473b91 (bug 1589102)
Backed out changeset 3b92f7306c64 (bug 1589102)
Backed out changeset b187548e258f (bug 1589102)
2020-08-05 21:47:50 +03:00
Anny Gakhokidze 5da2f83936 Bug 1589102 - Part 5: Fix tests that relied on about:blank loads happening instantenously, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D85083
2020-08-05 16:44:18 +00:00
Alexandre Poirot 28ef7f3731 Bug 1657194 - Prevent attaching to frame target in the context of the browser toolbox. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D85918
2020-08-05 14:15:20 +00:00
Hubert Boma Manilla 7c093a6ed4 Bug 1653743 - Send request body event for service workers r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84340
2020-08-05 12:09:44 +00:00
Belén Albeza 7a05ad3411 Bug 1637538 - Change debug button in the Application panel for a link as per latest UX mockups r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D85605
2020-08-04 18:36:38 +00:00
Nicolas Chevobbe 38c24cfb66 Bug 1656888 - Load ad-hoc console listener module in worker context. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D85815
2020-08-05 08:59:20 +00:00
Nicolas Chevobbe a704fd4ad8 Bug 1656888 - Make WorkerThread's mock parent an Actor. r=ochameau.
The `watchResources` function [1] takes as a first parameter either a watcher
actor or a target actor, that is used to manage the created resources (e.g. the
object actors of console messages). In order to be able to manage actors, it
needs to extend the `Pool` class (which is the case for Actor).
In the worker cases, things are a bit different, since we create a DevToolServer
which only have a WebConsole and a Thread actor. Those actors usually take a target
actor as a parent, but in the Worker thread we simply have an object implementing
the properties and methods it needs.
This will be this target actor mock that we're going to pass to `watchResources`,
and in order to be able to do that, it needs to be able to manage actors.

In regard of all this, this patch makes the target actor mock an actual Actor,
witout spec, on which we then put the existing methods and properties.

[1] https://searchfox.org/mozilla-central/rev/0e309417bdc73be33fc93f6bd7a0d4063d2c6e51/devtools/server/actors/resources/index.js#66

Differential Revision: https://phabricator.services.mozilla.com/D85814
2020-08-05 08:29:00 +00:00
Nicolas Chevobbe e38391a4ab Bug 1656888 - Add test cases for TargetList worker support. r=jdescottes.
The existing browser_target_list_workers.js is split in two tests, one for testing
browser workers (i.e. Browser Toolbox case), and another one for testing workers
in a tab.

Numerous test cases are added to check behaviour of the targetList when workers:
- already exists
- are spawned
- are terminated
in the main document or in remote iframe.

The test is tagged as fail-if when fission is enabled since we don't get the
workers for remote iframes.

Differential Revision: https://phabricator.services.mozilla.com/D85813
2020-08-05 12:13:44 +00:00
Nicolas Chevobbe d056b8ad0f Bug 1656888 - Make the iframe in fission_document.html a remote iframe. r=jdescottes.
fission_document.html's iframe was on example.com while the top document
is always on example.com as well, so we weren't exercising fission in it.
This patch puts the iframe on example.org, which highlighted some TargetList
test failures that this patch addresses.

Differential Revision: https://phabricator.services.mozilla.com/D85812
2020-08-05 08:27:23 +00:00
Julian Descottes 064e9e3b54 Bug 1655985 - Move devtools/server/actors/descriptors/watcher up one level r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D85966
2020-08-05 12:00:58 +00:00
Julian Descottes 9208b6c499 Bug 1657104 - Support onResourceUpdated for server resources r=ochameau,devtools-backward-compat-reviewers,nchevobbe
Depends on D85881

Differential Revision: https://phabricator.services.mozilla.com/D85882
2020-08-05 08:59:42 +00:00
Julian Descottes 44ff0cd41b Bug 1657104 - Support onResourceDestroyed for server resources r=ochameau
Depends on D85879

Differential Revision: https://phabricator.services.mozilla.com/D85881
2020-08-04 20:33:56 +00:00
Julian Descottes de9f625f0f Bug 1657104 - Homogeneize APIs for destroyed/updated resources in DevTools ResourceWatcher r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85879
2020-08-05 06:42:25 +00:00
Bogdan Tara 56e3736afb Backed out changeset ac5dc4c13464 (bug 1656706) for prefixNeeded related failures 2020-08-05 07:31:48 +03:00
Itiel bcfc9fbe66 Bug 1656706 - Fix prefixed properties being displayed incorrectly in the Compatibility panel, for RTL r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D85663
2020-08-05 03:47:28 +00:00
Neil Deakin 827e22ea0b Bug 1656095, remove frame script from browser_saveHeapSnapshot_e10s_01.js, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D85344
2020-07-31 07:51:06 +00:00
Bogdan Tara 91572b9250 Backed out changeset 2d126d9f7ef8 (bug 1653290) for /browser_markup_overflow_badge.js failures CLOSED TREE 2020-08-04 22:36:58 +03:00
Logan Smyth 06838cf425 Bug 917963 - Implement break on first script statement. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D85198
2020-08-04 18:46:48 +00:00
wartmanm f4757d7c63 Bug 1656726 - Pause On Exceptions, DOM mutation breakpoints, debugger statements pause in blackboxed original sources r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D85718
2020-08-04 18:41:53 +00:00
manas 95bf33558a Bug 1653290 - Add overflow badge and show an overflow badge for every scroll causing element dynamically and a test to check its working. r=gl,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84333
2020-08-04 17:17:26 +00:00
Brad Werth 627581e215 Bug 1621655: Make browser_styleeditor_media_sidebar_links.js test await RDM content reflow. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D85793
2020-08-04 15:08:19 +00:00
Sebastian Streich bf58055b03 Bug 1633710 - Move uri.spec calls to nsIPrincipal r=necko-reviewers,geckoview-reviewers,preferences-reviewers,ckerschb,ntim,snorp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D82911
2020-08-04 11:10:41 +00:00
Stepan Stava 1db60f22b9 Bug 1644250 - Make 'addException' action reusable. r=nchevobbe.
Makes `addException` more reusable in the form that can be used with exceptions objects that have different properties than a `resource` object from the `resourceWatcher`.
Fixes a typo in `Exception.js`.
Fixes incorrectly set property `sourceId` in `addEditorExceptionLine()` in `Exception.js`.

Differential Revision: https://phabricator.services.mozilla.com/D78883
2020-08-04 13:57:27 +00:00
Julian Descottes a315a1a0f0 Bug 1656170 - Update package name used to detect Fenix via ADB r=daisuke
The Fenix package name is now org.mozilla.firefox and not org.mozilla.fenix.
We need to update the logic in ADB to accommodate for this change.

Differential Revision: https://phabricator.services.mozilla.com/D85396
2020-08-01 09:24:00 +00:00
Mihai Alexandru Michis 911fad88f8 Bug 1655183 - Disable browser_resources_network_events.js on linux r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D85667
2020-08-03 15:24:46 +00:00
Kyle Knaggs b32b1c0949 Bug 1656035 - Remove CSS rule that wraps directory root header on to multiple lines r=davidwalsh
Before this change whenever the directory root header extends to the edge of the Primary pane a `flex-wrap` CSS rule in the `.sources-clear-root` selector breaks the directory root header text on to multiple lines. This patch removes this rule and fixes this bug.

{F2380491}

Differential Revision: https://phabricator.services.mozilla.com/D85400
2020-08-03 14:30:32 +00:00
Julian Descottes 3492cc6219 Bug 1655427 - Remove usage of allowMatchingRejectionsGlobally in inspector r=ochameau,nchevobbe
Using allowMatchingRejectionsGlobally in a test will leak to all the tests running after it in the same suite. We should avoid using it as much as possible.

Differential Revision: https://phabricator.services.mozilla.com/D84963
2020-08-03 14:29:09 +00:00
Julian Descottes 32de28696d Bug 1656825 - Fix duplicate calls to lazyRequireGetter r=nchevobbe
Depends on D85288

Differential Revision: https://phabricator.services.mozilla.com/D85720
2020-08-03 07:53:50 +00:00
Taegeon Lee 7d84058c16 Bug 1621889 Remove unused originalRegisteredPool in Thread.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D85659
2020-08-03 07:06:14 +00:00
Julian Descottes 72a1334982 Bug 1472821 - Move webconsole fixture mapping for async-storage in requireHacker r=nchevobbe
Depends on D85269

Differential Revision: https://phabricator.services.mozilla.com/D85288
2020-08-01 10:49:42 +00:00
Julian Descottes 4430f1a349 Bug 1472821 - Use array of properties to call lazyRequireGetter in inspector actors r=rcaliman
Depends on D85280

To illustrate the added value of supporting arrays in lazyRequireGetter

Differential Revision: https://phabricator.services.mozilla.com/D85269
2020-08-01 10:49:07 +00:00
Julian Descottes 3af62a1e27 Bug 1472821 - Support array of String for lazyRequireGetter r=nchevobbe,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D85268
2020-08-03 05:43:59 +00:00
Dorel Luca 419e9ccc2c Backed out 2 changesets (bug 1644194) for Devtools failures in /browser_browser_toolbox_fission_contentframe_inspector.js
Backed out changeset 5786eef0515a (bug 1644194)
Backed out changeset a5147f70d344 (bug 1644194)
2020-08-03 05:13:04 +03:00
Daisuke Akatsuka a6ec7957c6 Bug 1644194: Add a test for CSS change watcher. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85240
2020-07-31 08:17:25 +00:00
Daisuke Akatsuka 7812b6ddf1 Bug 1644194: Implement CSS change watcher. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85239
2020-08-02 22:43:20 +00:00
Sylvestre Ledru 843f943758 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D85678
2020-08-02 15:29:15 +00:00
Jeremy Ir 20235b390f Bug 1531609 part 1 - Rename overflow:-moz-hidden-unscrollable to overflow:clip. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73716
2020-08-01 01:56:58 +00:00
Butkovits Atila cc95b93cba Backed out 3 changesets (bug 1635473, bug 1531609) for reftest failures. CLOSED TREE
Backed out changeset 1e7b32808be8 (bug 1531609)
Backed out changeset e64a61869cdb (bug 1531609)
Backed out changeset 6da37d7f6dd3 (bug 1635473)
2020-07-31 23:56:54 +03:00
Razvan Caliman 8a93c20985 Bug 1656477 - Do not react to cached DOCUMENT_EVENT resources in Changes panel. r=daisuke
This patch is borrowing a change that's coming with D85239 to fix the issue that the Changes panel shows as empty when it should show changes tracked in the background (before the Changes panel is opened).

The reason, as identified in D85239, is that the Changes panel reacts to `DOCUMENT_EVENT` resources which are cached in the resource watcher. The Changes panel thinks that the document is reloading so it clears all the changes that were collected. The result in an empty Changes panel.

The screenshot below shows the resource types and the order in which they arrive:
{F2382929}

Differential Revision: https://phabricator.services.mozilla.com/D85603
2020-07-31 17:06:33 +00:00
Yura Zenevich 46631a3015 Bug 1655053 - updating color vision deficiency simulation in accessibility panel. r=jdescottes
* removing simulations for protanomaly, deuteranomaly and tritanomaly
* updating (fixing) the color matrices for protanopia, deuteranopia and tritanopia
* adding a matrix to simulate achromatopsia

Co-authored-by: Matthew Petroff <mozilla@mpetroff.net>

Differential Revision: https://phabricator.services.mozilla.com/D85508
2020-07-31 16:58:01 +00:00
Jeremy Ir 92b8f0f77a Bug 1531609 part 1 - Rename overflow:-moz-hidden-unscrollable to overflow:clip. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73716
2020-07-31 16:40:48 +00:00
Hubert Boma Manilla 74ccbad5fb Bug 1656388 - Send the waiting time to the UI r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D85501
2020-07-31 13:03:53 +00:00
Hubert Boma Manilla 2d4e7017fa Bug 1523614 Add copy/copy all context menu for headers summary and properties view r=nchevobbe
Add a new context menu for the headers sidepanel with , Copy and Copy all

Differential Revision: https://phabricator.services.mozilla.com/D76293
2020-07-31 15:51:49 +00:00
Daisuke Akatsuka 68aa4aa0fa Bug 1478688: Revert browser_styleeditor_fetch-from-netmonitor test. r=ochameau
Depends on D85370

Differential Revision: https://phabricator.services.mozilla.com/D85371
2020-07-31 01:33:44 +00:00
Daisuke Akatsuka 4a9d8ddf56 Bug 1478688: Remove no longer used code from network monitor actor. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85370
2020-07-30 13:43:31 +00:00
Geoff Brown 600ac99bbe Bug 1647187 - Update test browser_resources_network_events.js; r=bomsy
Minor test change to keep browser_resources_network_events.js passing with Object.is
comparisons.

Differential Revision: https://phabricator.services.mozilla.com/D85401
2020-07-30 18:50:26 +00:00
Hubert Boma Manilla eb5f181cd0 Bug 1656193 - Use the browserId instead of BrowsingContextID r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85380
2020-07-30 18:47:08 +00:00
Bogdan Tara 7bb955b1ad Backed out 3 changesets (bug 1647187) for browser_resources_network_events.js failures CLOSED TREE
Backed out changeset 8aec19091f93 (bug 1647187)
Backed out changeset 61f435541932 (bug 1647187)
Backed out changeset 50edc5736947 (bug 1647187)
2020-07-30 21:46:17 +03:00
Geoff Brown e7a179ce13 Bug 1647187 - Update test browser_resources_network_events.js; r=bomsy
Minor test change to keep browser_resources_network_events.js passing with Object.is
comparisons.

Differential Revision: https://phabricator.services.mozilla.com/D85401
2020-07-30 17:19:32 +00:00
Nathan Froyd e3ebda1914 Bug 1223932 - delete guard object uses from the tree; r=jwalden
CLOSED TREE

We don't need these macros anymore, for two reasons:

1. We have static analysis to provide the same sort of checks via `MOZ_RAII`
   and friends.
2. clang now warns for the "temporary that should have been a declaration" case.

The extra requirements on class construction also show up during debug tests
as performance problems.

This change was automated by using the following sed script:

```
# Remove declarations in classes.
/MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER/d
/MOZ_GUARD_OBJECT_NOTIFIER_INIT/d

# Remove individual macros, carefully.
{
  # We don't have to worry about substrings here because the closing
  # parenthesis "anchors" the match.
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_IN_IMPL)/)/g;

  # Remove the longer identifier first.
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT//g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM//g;
}

# Remove the actual include.
\@# *include "mozilla/GuardObjects.h"@d
```

and running:

```
find . -name \*.cpp -o -name \*.h | grep -v 'GuardObjects.h' |xargs sed -i -f script 2>/dev/null
mach clang-format
```

Differential Revision: https://phabricator.services.mozilla.com/D85168
2020-07-30 14:22:38 +00:00
Mihai Alexandru Michis a911a108d0 Backed out changeset ac9c811bc427 (bug 1223932) for causing spidermonkey rust failures.
CLOSED TREE
2020-07-30 18:23:21 +03:00
Julian Descottes b6490f5a49 Bug 1582594 - Wait for flexbox store update after selection in browser_markup_flex_display_badge r=rcaliman
This test is highly intermittent locally, and it seems to be spiking on try since bug 1633727.
The issue is that we try to click on the "flex" badge too quickly after selecting the node, before the flexbox store has had time to update.

Differential Revision: https://phabricator.services.mozilla.com/D85403
2020-07-30 14:37:31 +00:00
Nathan Froyd bec9f9b93a Bug 1223932 - delete guard object uses from the tree; r=jwalden
We don't need these macros anymore, for two reasons:

1. We have static analysis to provide the same sort of checks via `MOZ_RAII`
   and friends.
2. clang now warns for the "temporary that should have been a declaration" case.

The extra requirements on class construction also show up during debug tests
as performance problems.

This change was automated by using the following sed script:

```
# Remove declarations in classes.
/MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER/d
/MOZ_GUARD_OBJECT_NOTIFIER_INIT/d

# Remove individual macros, carefully.
{
  # We don't have to worry about substrings here because the closing
  # parenthesis "anchors" the match.
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_IN_IMPL)/)/g;

  # Remove the longer identifier first.
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT//g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM//g;
}

# Remove the actual include.
\@# *include "mozilla/GuardObjects.h"@d
```

and running:

```
find . -name \*.cpp -o -name \*.h | grep -v 'GuardObjects.h' |xargs sed -i -f script 2>/dev/null
mach clang-format
```

Differential Revision: https://phabricator.services.mozilla.com/D85168
2020-07-30 14:22:38 +00:00
Yura Zenevich 86b660210e Bug 1653186 - fix highlighter in about:addons (ensure that the highlighter markup nodes are created using the correct window/document). r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85191
2020-07-30 14:00:11 +00:00
Yura Zenevich e9437a481d Bug 1650094 - making the box model highlighter work in the browser toolbox. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D81476
2020-07-30 14:00:03 +00:00
Yura Zenevich e65360bcf3 Bug 1648161 - update code paths where canvas helper was expected to insert synchronously. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82416
2020-07-30 13:59:53 +00:00
Yura Zenevich c894b69ce1 Bug 1648161 - use accessible highlighter instead of xul-accessible highlighter in browser toolbox. Remove xul-accessible highlighter altogether. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D80005
2020-07-30 13:59:36 +00:00
Nicolas Chevobbe 6949d7f72c Bug 1655951 - Fix browser/browser_jsterm_evaluation_context_selector_pause_in_debugger.js failure. r=jdescottes.
It seems that the test was failing because the focus wasn't on the console by
the time we were trying to evaluate the input, so the Enter keypress wasn't
registered and the input not evaluated.
This is fixed by focusing the console input in `keyboardExecuteAndWaitForMessage`,
before hitting Enter.

Differential Revision: https://phabricator.services.mozilla.com/D85368
2020-07-30 08:58:56 +00:00
Tom Schuster c1bd3dfbba Bug 1569123 - Re-enable strict MIME type checking for Worker/SharedWorker everywhere. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D85138
2020-07-28 15:43:37 +00:00
Daisuke Akatsuka aeb9aebc1e Bug 1643294: Add node tests for prefix needed property. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D84951
2020-07-30 03:11:48 +00:00
Daisuke Akatsuka 673d533adc Bug 1643294: Add an xpcshell test for prefix needed property. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D84950
2020-07-30 03:11:50 +00:00
Daisuke Akatsuka 5d627fe9d6 Bug 1643294: Show prefixed properties. r=rcaliman,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D83285
2020-07-30 03:11:52 +00:00
Daisuke Akatsuka 29ac85b4ad Bug 1643294: Show prefixNeeded message. r=rcaliman,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83284
2020-07-30 03:36:25 +00:00
Daisuke Akatsuka 90b2c8cf64 Bug 1643294: Update issue fields. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D83283
2020-07-30 03:11:41 +00:00
Daisuke Akatsuka d99a1f0a95 Bug 1643294: Introduce prefixNeeded flag to the compatibility issue. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D83282
2020-07-30 03:11:43 +00:00
Csoregi Natalia faae82a2a7 Backed out 6 changesets (bug 1643294) for failures on browser_compatibility_cssIssues.js. CLOSED TREE
Backed out changeset bf35895585fd (bug 1643294)
Backed out changeset 240347a5071e (bug 1643294)
Backed out changeset b8776178d5ad (bug 1643294)
Backed out changeset a334d8d72e19 (bug 1643294)
Backed out changeset a61c7172d53e (bug 1643294)
Backed out changeset 99799c2141b6 (bug 1643294)
2020-07-30 06:05:07 +03:00
Daisuke Akatsuka 183bbb3f5f Bug 1643294: Add node tests for prefix needed property. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D84951
2020-07-30 00:03:04 +00:00
Daisuke Akatsuka eae92e47d8 Bug 1643294: Add an xpcshell test for prefix needed property. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D84950
2020-07-29 14:11:21 +00:00
Daisuke Akatsuka ae21cf2c53 Bug 1643294: Show prefixed properties. r=rcaliman,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D83285
2020-07-30 00:00:44 +00:00
Daisuke Akatsuka 8e44a5ccee Bug 1643294: Show prefixNeeded message. r=rcaliman,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83284
2020-07-29 23:58:28 +00:00
Daisuke Akatsuka e5201ef01e Bug 1643294: Update issue fields. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D83283
2020-07-29 13:42:05 +00:00
Daisuke Akatsuka b1d0d0251b Bug 1643294: Introduce prefixNeeded flag to the compatibility issue. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D83282
2020-07-29 23:39:16 +00:00
Julian Descottes 9b4ff5144e Bug 1654745 - Emit toolbox-unload event from toolbox close to notify the host manager r=nchevobbe,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D84662
2020-07-29 19:26:47 +00:00
Noemi Erli 5cebe61c77 Backed out changeset 4ed7b13fb7a5 (bug 1633710) for causing failures in browser_amosigned_url.js CLOSED TREE 2020-07-29 22:34:42 +03:00
Daisuke Akatsuka 81b02eb07a Bug 1655876: Update MDN compat data. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D85216
2020-07-29 17:45:04 +00:00
Sebastian Streich ea482d8e73 Bug 1633710 - Move uri.spec calls to nsIPrincipal r=necko-reviewers,geckoview-reviewers,preferences-reviewers,ckerschb,ntim,snorp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D82911
2020-07-29 17:33:10 +00:00
Julien Wajsberg b5e4bc5b10 Bug 1655999 - Support netlify.app URLs for the profiler frontend code deploy previews r=canaltinova
Netlify recently moved from netlify.com to netlify.app for their
deployed URLs. Netlify.com deploy URLs are redirected to netlify.app.
(Netlify.com is still used for their main websites).

Differential Revision: https://phabricator.services.mozilla.com/D85304
2020-07-29 17:22:54 +00:00
Kyle Knaggs 7152d21547 Bug 1591143 - Use text in Sources UI to generate header after setting directory root r=davidwalsh
Before this Work In Progress patch, the text that was displayed next to the home icon after a user sets directory root was generated using `state.sources.projectDirectoryRoot`. This was done in an attempt to reverse engineer the text that was displayed for the corresponding item in the Sources UI. This patch removes the logic that was responsible for this. Instead, it ensures that the text next to the home icon matches the text that was displayed in the Sources UI by using the existing event handler to pass the text that is displayed in the Sources UI to the Redux store whenever a user sets directory root. The text is then passed back down to the Primary Panes UI where it is displayed as the header after a user sets directory root.

The test suites in `PrimaryPanes.spec.js` and `setProjectDirectoryRoot.spec.js` will be updated before a final patch for this issue is submitted.

{F2352986}

Differential Revision: https://phabricator.services.mozilla.com/D83839
2020-07-24 15:57:42 +00:00
Nicolas Chevobbe be3c8ebd18 Bug 1655442 - Make usage of nsIWorkerDebugger.addListener more explicit. r=loganfsmyth
Declare separate listener objects instead of relying on the presence of the
listener method in a broader class.

Differential Revision: https://phabricator.services.mozilla.com/D84964
2020-07-29 07:30:56 +00:00
Julian Descottes 6d68ed9957 Bug 1655838 - Set ERROR level for blocked request messages in Webconsole r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D85202
2020-07-29 07:50:31 +00:00