Commit Graph
13070 Commits
Author SHA1 Message Date
Cosmin Sabou 392d64f272 Merge mozilla-central to autoland. a=merge 2018-11-16 23:57:57 +02:00
Gurzau Raul d8408ebbb6 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-16 19:55:39 +02:00
Gurzau Raul 9010a92206 Merge inbound to mozilla-central. a=merge 2018-11-16 19:08:39 +02:00
Jason Laster 609c5a77d9 Bug 1504222 - Notify the client when devtools goes from replaying to recording. r=dwalsh
Tags:

Bug #: 1504222

Differential Revision: https://phabricator.services.mozilla.com/D11593
2018-11-16 10:24:27 -05:00
Gurzau Raul c2b57deb21 Backed out changeset 37d0de33af7f (bug 1507632) for failing at test/static/browser_parsable_css.js on a CLOSED TREE 2018-11-16 12:37:35 +02:00
Bogdan Tara b41bc08038 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-16 11:50:21 +02:00
Bogdan Tara 228d1068ee Merge inbound to mozilla-central. a=merge 2018-11-16 11:47:51 +02:00
Yura Zenevich 64a8563fd4 Bug 1505848 - switch from CSS based approach to calculating contrast to canvas one, that also handles gradients and images. r=jdescottes,pbro
MozReview-Commit-ID: JS39hAY571f

Differential Revision: https://phabricator.services.mozilla.com/D11368
2018-11-16 03:59:08 +00:00
Yura Zenevich 0030e8d93a Bug 1505848 - expose some of the css color utils and ensure that RGBA alpha value is not cut off at 1 decimal. r=pbro
MozReview-Commit-ID: 6xTExCWRz4p

Differential Revision: https://phabricator.services.mozilla.com/D11367
2018-11-16 03:59:06 +00:00
Yura Zenevich 90bf3e954d Bug 1505848 - change the way accessible object is determined when using accessible highlighter. r=pbro
MozReview-Commit-ID: IiUGsFojZP1

Differential Revision: https://phabricator.services.mozilla.com/D11366
2018-11-16 03:57:25 +00:00
Brian Hackett 6e672d1e4d Bug 1506469 - Allow inspecting objects logged to the console without switching to a replaying child, r=lsmyth. 2018-11-15 14:08:22 -10:00
Florens Verschelde 332209614f Bug 1507632 - Use Photon colors for console icons; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D12068
2018-11-16 07:07:09 +00:00
Micah Tigley 4da7a9f193 Bug 1501768 - Maximum sizing section should also consider if a max-clamped flex item shrank. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D11922
2018-11-15 08:35:31 +00:00
Csoregi Natalia d427ab8d3a Merge mozilla-central to autoland. CLOSED TREE 2018-11-16 00:19:45 +02:00
Gabriel Luong f88639e36a Bug 1498115 - Part 3: Implement the new styles for the flex item list. r=pbro 2018-11-15 10:02:44 -05:00
Gabriel Luong 81738ba29f Bug 1498115 - Part 2: Add badges to show the flex-direction and flex-wrap properties of the flex container. r=pbro
We move the .markup-badge styles from markup.css to inspector.css instead of common.css
for a smaller import size in the markup.xhtml.
2018-11-15 10:02:44 -05:00
Gabriel Luong bbee8e738b Bug 1498115 - Part 1: Remove the FlexboxContainerProperties component. r=pbro 2018-11-15 10:02:44 -05:00
Gabriel Luong b656a50b55 Bug 1503902 - Avoid resizing RDM when restoring the device state and simply use the stored pref width and height. r=rcaliman 2018-11-15 12:59:49 -05:00
Noemi Erli 0f48d3ce2e Backed out 3 changesets (bug 1498115) for failures in browser_flexbox_container_properties.js
Backed out changeset e7f8e9c7301b (bug 1498115)
Backed out changeset ad62c3439651 (bug 1498115)
Backed out changeset 06b4d9761d46 (bug 1498115)
2018-11-15 18:28:19 +02:00
Margareta Eliza Balazs e4c8e4836b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-15 18:22:30 +02:00
Razvan Caliman 591585bb4f Bug 1485324 - (Part 3) Remove obsolete font on element no longer used in Fonts panel; r=gl
Depends on D11506
Removes the `fonts` field from the Redux slice previously used by the FontOverview component
in the Font Inspector version of the Fonts panel. This field is duplicated with the `fonts`
used by the Font Editor. The telemetry can use that one instead.

Refactors the update() method which updates the Redux slice for the FontOverview component.
In time, the update() and refreshFontEditor() method will merge. So will the Redux slices:
`fontEditor` and `fonts` in order to save a duplicate call to the server for `allFonts`.

Differential Revision: https://phabricator.services.mozilla.com/D11507
2018-11-14 16:33:09 +00:00
Razvan Caliman 1cf10fa800 Bug 1485324 - (Part 2) Remove obsolete subset of fonts not used on current element; r=gl
Depends on D11505
The `otherFonts` field in the Redux store slice for Fonts was used by the old Font Inspector to differentiate
between fonts on the element and fonts elsewhere on the page. This is no longer used with the Font Editor.

Differential Revision: https://phabricator.services.mozilla.com/D11506
2018-11-13 18:55:34 +00:00
Razvan Caliman dc1c21c6d2 Bug 1485324 - (Part 1) Remove pref for Font Editor and obsolete conditionals; r=gl
This patch removes the `devtools.inspector.fonteditor.enabled` pref and all its uses in the Fonts panel.
Obsolete actions for the case when the pref was off are also removed. This is mostly old Font Inspector code.

One test is temporarily disabled because it tests the old Font Inspector. It will be removed along with other
pieces on the next part of this commit series.

Differential Revision: https://phabricator.services.mozilla.com/D11505
2018-11-13 18:55:30 +00:00
Razvan Caliman 85151f26f1 Bug 1503595 - Add empty state for Changes panel; r=gl
Design spec: https://mozilla.invisionapp.com/share/6MLNVPYGR97#/screens

- add localization file
- add strings to show when no CSS changes are available to show
- conditionally show empty state message or diff of changes in React component

MozReview-Commit-ID: 8xYJmg0yGAM

Differential Revision: https://phabricator.services.mozilla.com/D11468
2018-11-15 12:18:45 +00:00
Nicolas Chevobbe 79147a9c34 Bug 1216632 - Make autocompletion work on $_ and $0; r=bgrins.
To make $0 autocompletion work, we need to pass the current
selectedNode actor from the frontend, so we can retrieve the
object reference later.
For $_, we need the webconsole actor reference to be able
to retrieve the last input result.
Since the list of parameters of JsPropertyProviders was
getting a bit long, we transform them in an object so it's
more legible on the consumer side.
Mochitests are added for both helpers to ensure this work
as expected.

Differential Revision: https://phabricator.services.mozilla.com/D11866
2018-11-15 09:49:14 +00:00
Julian Descottes f941be3058 Bug 1504355 - Do not return inlineTextChild for shadow hosts in inspector walker;r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D11742
2018-11-15 10:46:06 +00:00
Julian Descottes cbf547acf8 Bug 1503914 - Add mochitest to check that USB runtimes are not disconnected on refresh;r=daisuke
Depends on D11798

Differential Revision: https://phabricator.services.mozilla.com/D11799
2018-11-14 03:57:38 +00:00
Julian Descottes cccf567a09 Bug 1503914 - Stop disconnecting all devices when clicking on Refresh Devices;r=daisuke
Depends on D11663

Differential Revision: https://phabricator.services.mozilla.com/D11798
2018-11-14 03:44:00 +00:00
Brian Hackett 892e0289cb Bug 1505935 Part 2 - Expose scripts to the debugger which have their progress counters updated, r=lsmyth. 2018-11-10 15:27:14 -10:00
Brian Hackett 881ef09a34 Bug 1506707 - Keep track of duplicate console messages in the client, r=nchevobbe. 2018-11-12 12:11:18 -10:00
Cosmin Sabou be6be77026 Backed out changeset e36852845947 (bug 1507312) for damp failures on debugger/custom.js. 2018-11-16 22:24:56 +02:00
Florens Verschelde 333691dea9 Bug 1507632 - Use Photon colors for console icons; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D12068
2018-11-16 17:38:22 +00:00
Logan Smyth c79928a627 Bug 1507312 - Update Debugger Frontend v102 r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D11967
2018-11-16 19:27:14 +00:00
Luca Greco 8f82776fed Bug 1498293 - Ensure the webextension fallback window has a TabChild actor in content. r=ochameau
This patch remove the usage of `Services.appShell.createWindowlessBrowser` from the
webextension target actor (that runs in a child process when the extension is in oop-mode).

As a fallback window (needed when an extension doesn't have an extension page yet, e.g. while
the extension is being reloaded, or when the extension doesn't have a background page), the actor
is going to search for the window related to the XUL browser element created to connect into
the extension process.

If the extension runs in the child process (e.g. as it currently happens on all platforms supported
by Firefox Desktop), the TabParent/TabChild's tabId is used to identify the fallback window.

On the contrary, when the extension runs in the parent process (e.g. as it currently happens on
Firefox for Android), the XUL browser's ownerGlobal innerWindowID is used to identify the
fallback window.

Differential Revision: https://phabricator.services.mozilla.com/D8573
2018-11-15 19:00:44 +00:00
Alexandre Poirot e1d0ca7c1b Bug 1506548 - Return WorkerTargetFront from listWorkers instead of form. r=yulia
MozReview-Commit-ID: 4CBQNwC8tKq

Depends on D11762

Differential Revision: https://phabricator.services.mozilla.com/D11763
2018-11-15 10:23:50 +00:00
Alexandre Poirot b64cee51b1 Bug 1506548 - Prevent displaying memory and netmonitor panels for workers. r=yulia
MozReview-Commit-ID: 8FZbi4KQzCn

Depends on D11761

Differential Revision: https://phabricator.services.mozilla.com/D11762
2018-11-15 10:23:48 +00:00
Alexandre Poirot b30a4a0309 Bug 1506548 - Remove last references to remote targets from target.js. r=yulia
MozReview-Commit-ID: 1viBxZ8hHGk

Differential Revision: https://phabricator.services.mozilla.com/D11761
2018-11-15 10:23:46 +00:00
Alexandre Poirot bf4dd0c121 Bug 1506549 - Listen for workerListChanged on all content process target fronts. r=yulia
Now that this event is correctly fired on the Front rather than DebuggerClient,
we have to listen for this event on each individual front.

MozReview-Commit-ID: 9MqdHuAEr7U

Depends on D11625

Differential Revision: https://phabricator.services.mozilla.com/D11626
2018-11-15 10:23:02 +00:00
Alexandre Poirot a517296222 Bug 1506549 - Introduce API to listen for new child fronts of a given type. r=yulia
MozReview-Commit-ID: EKWTGhGo0VM

Depends on D11624

Differential Revision: https://phabricator.services.mozilla.com/D11625
2018-11-15 10:23:00 +00:00
Alexandre Poirot e9c1084d13 Bug 1506549 - Stop returning the actor from Pool.manage. r=yulia
This was only used by test and isn't much useful.

MozReview-Commit-ID: DeIimVmMOOs

Depends on D11623

Differential Revision: https://phabricator.services.mozilla.com/D11624
2018-11-15 10:22:58 +00:00
Alexandre Poirot 33dada0fa3 Bug 1506549 - correctly type workerListChanged on ContentProcessTarget spec. r=yulia
It allows to send the event through the front rather than DebuggerClient.

MozReview-Commit-ID: H8zEwAlUWDb

Depends on D11622

Differential Revision: https://phabricator.services.mozilla.com/D11623
2018-11-15 10:22:56 +00:00
Alexandre Poirot 781a5ac688 Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

Differential Revision: https://phabricator.services.mozilla.com/D11622
2018-11-15 10:22:49 +00:00
Alexandre Poirot 46971acb4d Bug 1506549 - Either pass a front or a form to Target constructor. r=yulia
MozReview-Commit-ID: BWsvAcWthnF

Differential Revision: https://phabricator.services.mozilla.com/D11693
2018-11-15 10:22:47 +00:00
Brian Hackett 6aedff97cc Bug 1506739 - Fix problems when stepping out of frames while replaying, r=jlast. 2018-11-13 08:06:16 -10:00
Andrea Marchesini 02c1924ab1 Bug 1480544 - Allow Console API to log messages on stdout, r=bgrins
This patch introduces 2 new prefs:
- devtools.console.stdout.chrome: if true, console API writes on stdout when
                                  used by chrome code
- devtools.console.stdout.content: console API write on stdout when used by
                                   content code.
2018-11-15 21:47:58 +01:00
Julian Descottes 94a91c93f2 Bug 1506581 - Add mochitest to test updates of the addon list for USB runtimes;r=daisuke
Depends on D11651, Depends on D11643

Differential Revision: https://phabricator.services.mozilla.com/D11663
2018-11-13 18:13:35 +00:00
Julian Descottes 893efdce3f Bug 1506581 - Listen to addons list changes on DevTools client instead of AddonManager;r=daisuke
Depends on D11644

Differential Revision: https://phabricator.services.mozilla.com/D11651
2018-11-13 06:46:41 +00:00
Julian Descottes 642decd9bc Bug 1506581 - Listen to all possible AddonManager events in BrowserAddonList;r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D11644
2018-11-13 14:26:39 +00:00
Timothy Guan-tin Chien fb30ec3de3 Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

Differential Revision: https://phabricator.services.mozilla.com/D11249
2018-11-15 06:52:01 +00:00
Timothy Guan-tin Chien 2a63ce2955 Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

Differential Revision: https://phabricator.services.mozilla.com/D11183
2018-11-15 06:51:07 +00:00