Commit Graph

9901 Commits

Author SHA1 Message Date
Bogdan Tara
273a59bcda Backed out changeset e7624782898d (bug 1487428) for test_inspector-insert.html failures CLOSED TREE 2018-09-27 23:38:04 +03:00
Jason Laster
b0a0465f39 Bug 1491471 - Move the OI store to the console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D5911

--HG--
rename : devtools/client/shared/components/reps/reps.js => devtools/client/shared/components/reps/reps-old.js
extra : moz-landing-system : lando
2018-09-27 20:09:51 +00:00
yulia
26f84dc0e4 Bug 1487428 - Use target.getFront in server browser tests; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D6768

--HG--
extra : moz-landing-system : lando
2018-09-27 15:18:08 +00:00
Nicolas Chevobbe
433264a3b1 Bug 1410820 - Extensively test top-level await evaluation; r=bgrins.
We add several tests and modify the existing one to make sure we handle
top level await correctly in different situation (resolving, rejecting,
when paused in the debugger, when using $_, …).

Depends on D6925

Differential Revision: https://phabricator.services.mozilla.com/D6926

--HG--
extra : moz-landing-system : lando
2018-09-27 16:01:16 +00:00
Nicolas Chevobbe
674b26da5e Bug 1410820 - Enhance webconsole test helpers; r=bgrins.
1. Allow passing a selector to waitForMessage helper function:

This will allow to wait for specific message (warning, error, result, …).
This patch also fixes 2 tests that were already passing an erroneous selector
to waitForMessage.

2. Add an executeAndWaitForMessage function:

This will make a lot of our tests much easier to read. The function takes
an input, an expected output and an optional selector, execute the input
and resolves when a message matching the provided text (and selector
if passed) is displayed in the output.

Depends on D6903

Differential Revision: https://phabricator.services.mozilla.com/D6925

--HG--
extra : moz-landing-system : lando
2018-09-27 16:00:32 +00:00
Nicolas Chevobbe
2aa2e07452 Bug 1410820 - top-level await evaluation should be handled as regular evaluation; r=bgrins.
This patch turns the current top-level handling, which relies on
the console API to print the result of the await expression, into
something natively handled by the server.

First, we don't add a .then handler to the generated async iife by
the mapper. We also removes the case we added in the JsTerm to *not*
print the result for top-level await expression.

In order to make the server capable of handling generated async iife
caused by the mapper, we send to evaluateJsAsync the `mapped` object
that `mapExpression` returns. This way, the server can check if an
expression was originally a top-level await.

If it is the case, we get the promise from the async iife and wait for
it to settle. If it resolves, we simply return the result, as a grip,
to the client. If it rejects, we return a special packet indicating to
not print anything to the client. The error will be reported by the
engine as `uncaught exception: …`.

We add several tests and modify the existing one to make sure we handle
top level await correctly in different situation (resolving, rejecting,
when paused in the debugger, when using $_, …).

Differential Revision: https://phabricator.services.mozilla.com/D6903

--HG--
extra : moz-landing-system : lando
2018-09-27 15:59:47 +00:00
Nicolas Chevobbe
237c4ba134 Bug 1494545 - Make Ctrl+Space open the autocomplete popup in the console; r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D7049

--HG--
extra : moz-landing-system : lando
2018-09-27 16:36:11 +00:00
Gurzau Raul
a8d8876e9e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-27 19:45:35 +03:00
Julien Wajsberg
9ce2cbff3e Bug 1494337 - Do not display the 'triggers refresh' note if there's no option needing it r=ochameau
Depends on D6923

Differential Revision: https://phabricator.services.mozilla.com/D6920

--HG--
extra : moz-landing-system : lando
2018-09-27 14:33:41 +00:00
Julien Wajsberg
f74fc26e96 Bug 1494337 - Move the 'tool not supported' label to the right place r=ochameau
Depends on D6922

Differential Revision: https://phabricator.services.mozilla.com/D6923

--HG--
extra : moz-landing-system : lando
2018-09-27 14:33:39 +00:00
Julien Wajsberg
b29f25d7b3 Bug 1494337 - Insert the settings for nightly before the 'reloads the page' indication r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D6922

--HG--
extra : moz-landing-system : lando
2018-09-27 14:33:38 +00:00
StefanYohansson
41d490dca9 Bug 1172314 - Print arguments passed into console.trace. r=bgrins.
Added trace extra parameters to be printed alongside console.trace() output.

Differential Revision: https://phabricator.services.mozilla.com/D7051

--HG--
extra : moz-landing-system : lando
2018-09-27 13:27:57 +00:00
Nicolas Chevobbe
89eca29ba9 Bug 1492827 - Remove unused listeners and handlers from webconsole-connection-proxy; r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D7073

--HG--
extra : moz-landing-system : lando
2018-09-27 11:46:26 +00:00
yulia
72f9e83eb1 Bug 1473513 - move ActorRegistry module to server/actors/utils; r=ochameau
Summary: Depends on D6477

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6479

--HG--
rename : devtools/server/actor-registry.js => devtools/server/actors/utils/actor-registry.js
extra : rebase_source : ae52db7b028b4d866d8a363eae9ae7c124714458
2018-09-26 10:09:15 +02:00
yulia
dd29e366ea Bug 1473513 - refactor main.js to use protocol.js pools; r=ochameau
Summary:
MozReview-Commit-ID: FNMK4f553yI

Depends on D6474

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6475

--HG--
extra : rebase_source : c61d394da0a20991def49968f01ee563fea9afde
2018-09-26 10:07:27 +02:00
yulia
9c120b705d Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
Summary:
MozReview-Commit-ID: 3GsXRxcIKfx

Depends on D6473

Reviewers: ochameau

Reviewed By: ochameau

Subscribers: reviewbot

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6474

--HG--
rename : devtools/server/main.js => devtools/server/actor-registry.js
extra : rebase_source : 3ea4edd91ca8b09ad5e25ae01df885c587bee7b1
2018-09-26 10:06:43 +02:00
yulia
99bb10079e Bug 1473513 - make log function safer so that tests do not time out; r=ochameau
Summary:
MozReview-Commit-ID: BIk5pWzxJcx

Depends on D6470

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6471

--HG--
extra : rebase_source : 0284679e1a6d33ed915ebf69cf56557847bceb66
2018-09-26 10:04:57 +02:00
Michael Ratcliffe
4e3c6d2b5f Bug 1491879 - Fix telemetry support for multiple tabs / windows r=nchevobbe
- Various telemetry methods now need an object to be passed in in order to keep them seperate e.g. if the inspector is opened in tab 1 a timer is started. If an inspector is opened in tab 2 the same timer is restarted. Closing tab 2 would then erase the timing event invalidating the timer in tab 1.
- We no longer need to preface telemetry calls with category "devtools.main" because this is the only category we will be using.
- There are some changes to `devtools/client/debugger/new/dist/vendors.js` and `devtools/client/debugger/new/src/utils/telemetry.js` that need to be ported to the debugger at the same time as landing this.

Differential Revision: https://phabricator.services.mozilla.com/D6137

--HG--
extra : moz-landing-system : lando
2018-09-25 12:57:13 +00:00
Alexandre Poirot
06ff174025 Bug 1494319 - Remove unused "newGlobal" event r=yulia
MozReview-Commit-ID: 4bQyjXYuN18

Depends on D6940

Differential Revision: https://phabricator.services.mozilla.com/D6941

--HG--
extra : moz-landing-system : lando
2018-09-26 18:09:54 +00:00
Alexandre Poirot
c4e18d3974 Bug 1494305 - Refactor all tabClient usages to use promise API instead of callback style r=yulia
MozReview-Commit-ID: DZVG1X45sQV

Differential Revision: https://phabricator.services.mozilla.com/D6908

--HG--
extra : moz-landing-system : lando
2018-09-26 18:02:45 +00:00
Alexandre Poirot
3ad83b9241 Bug 1492856 - Remove compatiblity code to guard against miss of RootActor.getRoot r=jdescottes
MozReview-Commit-ID: L5kkG9r7Rtv

Differential Revision: https://phabricator.services.mozilla.com/D6755

--HG--
extra : moz-landing-system : lando
2018-09-26 21:12:16 +00:00
Alexandre Poirot
4c1bb0403e Bug 1397020 - Remove useless calls to TabTarget.attach r=yulia
TabTarget.attach is being called from the toolbox, before opening the tools,
so we do not have to call it from panel's open functions, nor code that is opening
a toolbox right after.

MozReview-Commit-ID: 77TZFbvOaFt

Differential Revision: https://phabricator.services.mozilla.com/D6668

--HG--
extra : moz-landing-system : lando
2018-09-26 21:11:51 +00:00
Mantaroh Yoshinaga
495837c33c Bug 1472942 - Part 2. Add setContentSize() instead of setContent() in HTMLTooltip. r=birtles
This patch will remove setContest(), and change the following things instead of this:

 * Use HTMLTooltip.panel.appendChild() instead of HTMLTooltip.setContent().
 * Add HTMLTooltip.setContetnSize() to specify the panel size if need this.

Differential Revision: https://phabricator.services.mozilla.com/D7044

--HG--
extra : moz-landing-system : lando
2018-09-27 07:14:55 +00:00
Mantaroh Yoshinaga
adb9bb2f7a Bug 1472942 - Part 1. Remove unused paramter of HTMLTooltip.show from SwatchBaseEditorTooltip. r=jdescottes
SwatchBaseEditorTooltip specify the "topcentor bototmleft" to second parameter
of HTMLTooltip.show(). However, this parameter will ignore since show() function
require the second parameter as the object, not the string.

Bug 1307481 comment 42 has pointed out this parameter.

Differential Revision: https://phabricator.services.mozilla.com/D7043

--HG--
extra : moz-landing-system : lando
2018-09-27 07:15:18 +00:00
Julian Descottes
d03effab3f Bug 1493968 - Wait for initial targets in aboutdebugging navigate test to avoid race condition;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D6975

--HG--
extra : moz-landing-system : lando
2018-09-27 05:48:45 +00:00
Daisuke Akatsuka
a5baf7ae30 Bug 1493883: Add 'name' field to network runtime for consistency. r=jdescottes
Depends on D6878

Differential Revision: https://phabricator.services.mozilla.com/D6885

--HG--
extra : moz-landing-system : lando
2018-09-27 04:46:38 +00:00
Daisuke Akatsuka
e2089c90e6 Bug 1493883: Extract USB runtime data needed. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D6878

--HG--
extra : moz-landing-system : lando
2018-09-26 11:55:17 +00:00
shindli
a8d55dae12 Merge inbound to mozilla-central. a=merge 2018-09-27 00:52:12 +03:00
Julian Descottes
778d5e8d33 Bug 1489220 - Add mochitest for empty message in debug target pane;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D6495

--HG--
extra : moz-landing-system : lando
2018-09-26 08:58:15 +00:00
Nicolas Chevobbe
14ff2e3235 Bug 1476656 - Trigger autocomplete on bracket; r=Honza.
This patch adds the ability to open the autocomplete popup when
typing an opening bracket (i.e. `[`]) in the console input.
This impacts a significant amount of function where we assumed
that the only way to get a completion was to use a dot.
We uses the rename `anylyzeInputString` function to get the
completion part from an input, as well as if the user is performing
an element access (i.e., using the bracket).
We then send that information to the webconsole actor, which send
it to the client.
This allows us to rely on a single parse of the input and gives us
access to this information everywhere we need to, be it on the client
or on the server.

We allow the user to type property name without quotes, and we add
them when the user accept an autocompletion.
We also automatically add a closing bracket (i.e. `]`), when it's needed.

Some test are added. On the server side to make sure the actor's autocomplete
function returns what's expected.
We take that as an opportunity to add test for commands.
On the client side, tests are added to ensure the different behavior works
as expected (check the completion text and the input  after accepting
the completion when the user entered some letters, or not, with or without
quotes, with different quotes, hitting the autocomplete cache, …).

A test which accesses the autocomplete cache was modified since the shape
of the cache changed to include the last matchProp as well as the
isElementAccess boolean.

Differential Revision: https://phabricator.services.mozilla.com/D6128

--HG--
extra : moz-landing-system : lando
2018-09-26 13:54:35 +00:00
arthur.iakab
e1e94e3d20 Merge mozilla-central to autoland 2018-09-26 15:57:12 +03:00
Amy Chan
5c903b5d23 Bug 1479421 - Making the response panel visible; r=Honza
Making the response panel visible

Differential Revision: https://phabricator.services.mozilla.com/D4636

--HG--
extra : moz-landing-system : lando
2018-09-26 07:14:33 +00:00
Ciure Andrei
ce57be88b8 Merge inbound to mozilla-central. a=merge 2018-09-26 00:49:06 +03:00
Julian Descottes
17903b38b8 Bug 1492863 - Fix react warnings in aboutdebugging-new;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D6400

--HG--
extra : moz-landing-system : lando
2018-09-25 11:04:58 +00:00
Alexandre Poirot
3695cdf575 Bug 1473513 - Backed out changeset 6fc241b06e0b for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 6dCPXvBYhsJ

Depends on D6810

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6811
2018-09-25 19:34:52 +03:00
Alexandre Poirot
1255c658b2 Bug 1473513 - Backed out changeset d72f6ff37ca6 for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: LKPmFrhaQ5q

Depends on D6807

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6808
2018-09-25 19:34:26 +03:00
Alexandre Poirot
40272ff560 Bug 1473513 - Backed out changeset f9f12b44a3ab for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 8POm9seFrAk

Depends on D6806

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6807
2018-09-25 19:34:18 +03:00
Alexandre Poirot
a3c7499a55 Bug 1473513 - Backed out changeset 174fe98999ea for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: GfSX2wYfLrN

Depends on D6803

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6804

--HG--
rename : devtools/server/actors/utils/actor-registry.js => devtools/server/actor-registry.js
2018-09-25 19:33:52 +03:00
Alexandre Poirot
e490a53de2 Bug 1492826 - Better document TabTarget.attach as well as DebuggerClient.attachTarget and attachConsole. r=jdescottes
Depends On D6162

Differential Revision: https://phabricator.services.mozilla.com/D6388

--HG--
extra : moz-landing-system : lando
2018-09-24 16:24:07 +00:00
Margareta Eliza Balazs
5ad86cabda Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-25 12:50:02 +03:00
Margareta Eliza Balazs
ffe6eaf2f0 Merge inbound to mozilla-central. a=merge 2018-09-25 12:42:09 +03:00
yulia
04d870f203 Bug 1473513 - move ActorRegistry module to server/actors/utils; r=ochameau
Depends on D6477

Differential Revision: https://phabricator.services.mozilla.com/D6479

--HG--
rename : devtools/server/actor-registry.js => devtools/server/actors/utils/actor-registry.js
extra : moz-landing-system : lando
2018-09-25 08:47:10 +00:00
yulia
1ad50b5afe Bug 1473513 - refactor main.js to use protocol.js pools; r=ochameau
MozReview-Commit-ID: FNMK4f553yI

Depends on D6474

Differential Revision: https://phabricator.services.mozilla.com/D6475

--HG--
extra : moz-landing-system : lando
2018-09-25 08:05:47 +00:00
yulia
e857119004 Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
MozReview-Commit-ID: 3GsXRxcIKfx

Depends on D6473

Differential Revision: https://phabricator.services.mozilla.com/D6474

--HG--
rename : devtools/server/main.js => devtools/server/actor-registry.js
extra : moz-landing-system : lando
2018-09-25 08:05:29 +00:00
yulia
de5a5707d6 Bug 1473513 - make log function safer so that tests do not time out; r=ochameau
MozReview-Commit-ID: BIk5pWzxJcx

Depends on D6470

Differential Revision: https://phabricator.services.mozilla.com/D6471

--HG--
extra : moz-landing-system : lando
2018-09-25 08:04:22 +00:00
Gabriel Luong
697b700c0f Bug 1317102 - Part 3: Disable grid highlighter toggles in the markup when the max highlighter is reached. r=jdescottes
--HG--
rename : devtools/client/inspector/markup/test/browser_markup_grid_display_badge.js => devtools/client/inspector/markup/test/browser_markup_grid_display_badge_01.js
2018-09-24 20:38:11 -04:00
Julian Descottes
26887111d9 Bug 1489434 - Add i18n for DeviceSidebarItemAction component;r=birtles
Depends on D6614

Differential Revision: https://phabricator.services.mozilla.com/D6615

--HG--
extra : moz-landing-system : lando
2018-09-25 06:38:52 +00:00
Julian Descottes
b246d48d96 Bug 1489434 - Add i18n for ConnectPage component;r=birtles
Depends on D6613

Differential Revision: https://phabricator.services.mozilla.com/D6614

--HG--
extra : moz-landing-system : lando
2018-09-25 06:38:13 +00:00
Julian Descottes
641123a0a4 Bug 1489434 - Add i18n for NetworkLocationsForm component;r=birtles
Depends on D6612

Differential Revision: https://phabricator.services.mozilla.com/D6613

--HG--
extra : moz-landing-system : lando
2018-09-25 06:37:19 +00:00
Julian Descottes
e22e59e285 Bug 1489434 - Add i18n for NetworkLocationsList component;r=birtles
Depends on D6611

Differential Revision: https://phabricator.services.mozilla.com/D6612

--HG--
extra : moz-landing-system : lando
2018-09-25 06:35:23 +00:00