Commit Graph
2238 Commits
Author SHA1 Message Date
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
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
Daisuke Akatsuka 74c995461c Bug 1497448: Close connections that were accepted in ServerSocketListener. r=ochameau,jdescottes
Yet another approach. In the previous D9889 approach, both DebuggerSerever and
SocketServerListener retain the connections duplicately, it will be possible to
be difficult for the management. In this approach, only DebuggerSerever retains
the connections, then when ServerSocketListener was removed, removes the
connections as well that were linked the ServerSocketListener.

Differential Revision: https://phabricator.services.mozilla.com/D10864
2018-11-07 02:18:02 +00:00
Logan Smyth 6fd87354d1 Bug 1504358 - Ensure that step out always pauses, even when there are no steps. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D10793
2018-11-06 14:59:00 +00:00
Julian Descottes feb809d3ab Bug 1505035 - Force dom.ua_widget.enabled to true in inspector server tests for ua widgets;r=test-only 2018-11-06 15:41:53 +01:00
Julian Descottes c58aee0697 Bug 1483660 - Add server test for UA widget support in inspector;r=ladybenko
Depends on D10538

Differential Revision: https://phabricator.services.mozilla.com/D10539
2018-11-05 17:23:54 +00:00
Julian Descottes a316673f82 Bug 1483660 - Hide UA Widget shadow root in inspector by default;r=ladybenko
Depends on D10536

Differential Revision: https://phabricator.services.mozilla.com/D10537
2018-11-05 17:22:45 +00:00
tanhengyeow 7375af7aac Bug 1496742 - Allow to display Referrer Policy for a given request. r=Honza
Display Referrer Policy for a given request.

Differential Revision: https://phabricator.services.mozilla.com/D9128
2018-11-05 16:44:17 +00:00
vinoth 57318f89de Bug 1504605 - Add Prefs to xpcshell test files for allowing usage of eval. r=ckerschb
Reviewers: ckerschb

Reviewed By: ckerschb

Subscribers: ckerschb

Bug #: 1504605

Differential Revision: https://phabricator.services.mozilla.com/D10850
2018-11-05 16:41:45 +02:00
Jonathan Kingston 4aa72da6df Bug 1490257 - Add principal to JS code for passing explicit triggeringPrincipals. r=ckerschb
Depends on D10882

Differential Revision: https://phabricator.services.mozilla.com/D10883
2018-11-05 14:05:19 +00:00
vinoth 336fa5f686 Bug 1504207 - Add Prefs for allowing usage of eval with system principal in test files r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10696
2018-11-05 13:39:31 +00:00
Jason Laster b595b0a8f0 Revert "Backed out changeset 33f8860558aa (bug 1504213) for dt failures in e.g. devtools/client/shared/test/browser_dbg_addon-console.js"
This reverts commit 2304cfd3401cd6bacee52b7b462717539282a1fd.
2018-11-02 15:40:32 -04:00
Michael Ratcliffe 87c8be1ea2 Bug 1502023 - canvas.js::clearRect doesn't work with transformation matrices r=gl
We call the following from flexbox.js:

```
clearRect(this.ctx, 8, 2, 81, 113, this.currentMatrix);
```

This **should** clear a section of the canvas taking any transforms into account.

Because of the way `canvas.js::clearRect()` is written it **always** draws an upright rectangle regardless of any transforms (click the image to see the issue):
{F588123}

With the attached path this issue is fixed (click the image to see it working):
{F588124}

Differential Revision: https://phabricator.services.mozilla.com/D9777
2018-10-30 17:26:43 +00:00
Daniel Varga 720e826993 Merge mozilla-central to mozilla-inbound. a=merge 2018-11-02 00:38:07 +02:00