Commit Graph
2250 Commits
Author SHA1 Message Date
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
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 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
Csoregi Natalia d427ab8d3a Merge mozilla-central to autoland. CLOSED TREE 2018-11-16 00:19:45 +02:00
Margareta Eliza Balazs e4c8e4836b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-15 18:22:30 +02: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
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
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 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 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
Brian Hackett 6aedff97cc Bug 1506739 - Fix problems when stepping out of frames while replaying, r=jlast. 2018-11-13 08:06:16 -10: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 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
Andreea Pavel f667cd7449 Backed out 2 changesets (bug 1503019) for failing crashtests at dom/base/crashtests/1505811.html on a CLOSED TREE
Backed out changeset 06b12fd41ff1 (bug 1503019)
Backed out changeset 7b845eac9dd7 (bug 1503019)
2018-11-15 01:52:30 +02:00
Timothy Guan-tin Chien 0644cf5b9d 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-14 19:34:52 +00:00
Andreea Pavel 9d41a0a2bf Backed out 5 changesets (bug 1506549) for failing devtools at devtools/client/aboutdebugging/test/browser_service_workers_status.js on a CLOSED TREE
Backed out changeset 6be66dea928c (bug 1506549)
Backed out changeset da0d76d0e8fc (bug 1506549)
Backed out changeset 490eeba8f9f7 (bug 1506549)
Backed out changeset 97554f465eca (bug 1506549)
Backed out changeset 4f259de6cce0 (bug 1506549)
2018-11-14 21:46:07 +02:00
Alexandre Poirot d11fed2899 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-14 16:20:57 +00:00
Alexandre Poirot b2d3c01b7c 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-14 15:48:20 +00:00
Alexandre Poirot 0d5dc1f31e 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-14 15:48:16 +00:00
Razvan Caliman be2b453167 Bug 1500947 - (Part 3) Update indices of tracked declarations when one is removed; r=pbro
Depends on D11209

We need to take care when deleting a declaration. This means shifting the indexes of declarations which follow it in the CSS rule. To do this, we iterate over all tracked added/removed declarations and make sure to decrement their index if it is larger than the index of the deleted one.

The Rule view and specialized editors do not support inserting declarations at any other position other than at the end of the existing declarations list. For now, it is safe to assume all newly added declarations will not shift any tracked indexes. But we will need to handle this for other use cases, like the Style Editor or manual editing of element style attributes.

MozReview-Commit-ID: InrNbsNsqz6

Differential Revision: https://phabricator.services.mozilla.com/D11318
2018-11-13 09:00:48 +00:00
Razvan Caliman e8e9ca170d Bug 1500947 - (Part 1) Add position of declaration within its rule to change metadata; r=pbro
Changes the format of the change metadata for add/remove declarations from an object with key/value pairs to an array with objects that contain the declaration's property name, value and index within its parent rule.

Differential Revision: https://phabricator.services.mozilla.com/D11208
2018-11-09 15:21:43 +00:00
Alexandre Poirot 1fc5daee89 Bug 1498280 - Introduce RootClient.getMainProcess to fetch ParentProcessTargetActor. r=yulia
MozReview-Commit-ID: E9OiwqDwNk7

Differential Revision: https://phabricator.services.mozilla.com/D11758
2018-11-13 14:07:36 +00:00
Julian Descottes dc150b343f Bug 1505285 - Restore favicons option for root listTabs;r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D11161
2018-11-07 16:44:37 +00:00
Alexandre Poirot 60492aaae2 Bug 1505175 - Prevent a crash in XPCNativeWrapper call by always passing a non-undefined object. r=yulia
In XPCShell tests, this `console` variable ends up being null and it later triggers an assertion
that makes the test crash in debug builds. We should always pass a defined object to this constructor.

MozReview-Commit-ID: F7QRXD15lH9

Depends on D11154

Differential Revision: https://phabricator.services.mozilla.com/D11445
2018-11-12 09:51:35 +00:00
Alexandre Poirot 26ebb91e5e Bug 1505175 - Cleanup head_dbg.js from unecessary usages of rootForm. r=yulia
MozReview-Commit-ID: 2ZfghtMuAH2

Depends on D11153

Differential Revision: https://phabricator.services.mozilla.com/D11154
2018-11-09 09:38:50 +00:00
Alexandre Poirot 2475279d52 Bug 1505175 - Refactor get_parent_process_actors to only create a DebuggerClient. r=yulia
MozReview-Commit-ID: ChcKTEaO80a

Depends on D11152

Differential Revision: https://phabricator.services.mozilla.com/D11153
2018-11-09 09:38:40 +00:00
Vincent R 1c17ef0c41 Bug 1435469 - Replace selectNodeContents by selectNode to compute font faces in font tab. r=pbro 2018-11-07 22:51:00 +01:00
Gurzau Raul 412b8e6f9c Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-09 07:46:56 +02:00
Brian Hackett 0f5cb8e88c Bug 1505895 - Add handler for changes to a recording/replaying child's state, r=lsmyth. 2018-11-08 10:06:20 -10:00
Alexandre Poirot c6cd6525b6 Bug 1505172 - Remove references to devtools.debugger.forbid-certified-apps preference. r=jdescottes,jryans
MozReview-Commit-ID: JV8MXvIuXaa

Differential Revision: https://phabricator.services.mozilla.com/D11152
2018-11-08 16:46:58 +00:00
yulia 67ae68cbed Bug 1495388 - Simplify Inspector Front destruction; r=ochameau
Depends on D8992

Differential Revision: https://phabricator.services.mozilla.com/D9124
2018-11-07 14:35:42 +00:00
Alexandre Poirot c1ef3d8e78 Bug 1503628 - Remove checks against non-remote targets. r=yulia
MozReview-Commit-ID: 5v9HaEUE9E6

Depends on D11011

Differential Revision: https://phabricator.services.mozilla.com/D11012
2018-11-08 10:09:06 +00:00
Daisuke Akatsuka 7abda417de Bug 1497448: Rename closeAllListener to closeAllSocketListeners. r=ochameau,jdescottes
Depends on D10868

Differential Revision: https://phabricator.services.mozilla.com/D11150
2018-11-07 17:46:05 +00:00
Daisuke Akatsuka d36d4b73fd Bug 1497448: Rename _addListener/_removeListener of DebuggerServer to addSocketListener/removeSocketListener. r=ochameau,jdescottes
Depends on D10867

Differential Revision: https://phabricator.services.mozilla.com/D10868
2018-11-07 16:56:34 +00:00
Daisuke Akatsuka 1a0e92e8c8 Bug 1497448: Use SocketListener directly. r=ochameau,jdescottes
Depends on D10865

Differential Revision: https://phabricator.services.mozilla.com/D10867
2018-11-08 00:41:18 +00:00
Brian Hackett d7a84d314c Bug 1504909 Part 1 - Include current point and endpoint in paused packets, r=lsmyth. 2018-11-06 07:36:20 -10:00
Logan Smyth c9b3c94ee0 Bug 1503436 - Only add breakpoints to first/last offset of script if column is directly in script. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D10384
2018-11-07 18:52:45 +00:00
Razvan Caliman 7aed14aa9a Bug 1503896 - (Part 5) Add change type to change metadata and mark whole rules as added/removed; r=pbro
Depends on D10586

Adds a new `type` param to the `change` object passed from server to the client to describe the change type. For changes to rules, the client marks the whole rule as either added or removed and styles it accordingly in the Changes panel.

Change types for declarations are not used at this time, but are put in for consistency and future-proofing.

Differential Revision: https://phabricator.services.mozilla.com/D11116
2018-11-07 10:00:31 +00:00
Razvan Caliman 89db23adda Bug 1503896 - (Part 4) Track changes to CSS selectors; r=pbro
Depends on D10585
Renames the logChange() to logDeclarationChange() to distinguish it from the newly introduced logSelectorChange() method which tracks selector rename by logging two changes: a whole rule remove using the old selector and a whole rule insertion add using the new selector.

MozReview-Commit-ID: 9VoVMHYXumE

Differential Revision: https://phabricator.services.mozilla.com/D10586
2018-11-06 21:49:40 +00:00
Razvan Caliman 1d99e745ca Bug 1503896 - (Part 3) Extract CSS rule metadata to be reused with other logging methods; r=pbro
Depends on D10584
Other methods for tracking changes need to make use of the CSS rule
metadata (selector, rule index, ancestors, etc). This extracts that
logic into an accessor on the StyleRuleActor to facilitate reuse.

The CSS rule metadata will be augmented with information about a CSS
change (declarations added or removed) before being tracked.

MozReview-Commit-ID: xXec1XgUhk

Differential Revision: https://phabricator.services.mozilla.com/D10585
2018-11-05 09:23:43 +00:00
Razvan Caliman 65a6c5b3de Bug 1503896 - (Part 2) Support tracking multiple CSS declarations in one change; r=pbro
Depends on D10582
Improves the reducer for tracking CSS changes to handle more than one
CSS declaration changed in one operation. This is a requirement for
tracking whole rule removal or whole rule addition, like it happens
when renaming a CSS selector in the Rules view.

MozReview-Commit-ID: 25pf2GRiH4D

Differential Revision: https://phabricator.services.mozilla.com/D10584
2018-11-05 14:50:04 +00:00
Michael Ratcliffe 233befcad3 Bug 1501226 - Support for CSS transforms in the Flexbox highlighter r=gl
In many places we were using bounds to calculate an objects dimensions but that obviously doesn't work when an object is rotated e.g.

{F588303}

Also, we were using `getBoxQuads()`, which gives the co-ordinates of the translated object. We were then applying the transform matrix to the canvas even though the coordinates came from the object **after** it was already transformed.

Anyhow, now we get the dimensions of objects as if they are not transformed and then apply the transformation matrix, which gives a great result every time.

Differential Revision: https://phabricator.services.mozilla.com/D9805
2018-11-07 10:12:56 +00:00
Csoregi Natalia 752d14145b Merge mozilla-central to autoland. CLOSED TREE 2018-11-07 11:56:06 +02:00
Csoregi Natalia 177365f09e Merge inbound to mozilla-central. a=merge 2018-11-07 11:52:57 +02:00