Commit Graph
688 Commits
Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
Andreea Pavel 37a6be7d8b Backed out changeset 792fd0ab86d1 (bug 1503436) for failing damp at damp | debugger/custom.js on a CLOSED TREE 2018-11-01 23:43:49 +02:00
Logan Smyth 8ef4bd09cc 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-01 19:09:41 +00:00
yulia 7bb7129828 Bug 1495388 - Fix test failures associated with async inspector initalization; r=ochameau
Depends on D8707

Differential Revision: https://phabricator.services.mozilla.com/D8992
2018-10-30 14:51:40 +00:00
Alexandre Poirot 4de8dbcb83 Bug 1502910 - Remove TimelineActor. r=Honza
MozReview-Commit-ID: DtmS18EYw12

Depends on D10186

Differential Revision: https://phabricator.services.mozilla.com/D10187
2018-10-30 10:49:19 +00:00
Alexandre Poirot bc67c06de1 Bug 1485661 - Rename all "root client" to "root front". r=yulia
MozReview-Commit-ID: Eh7f5DeG73j

Depends on D8828

Differential Revision: https://phabricator.services.mozilla.com/D9072
2018-10-30 08:08:48 +00:00
Alexandre Poirot 4df228b3d0 Bug 1485661 - Refactor all RootClient usages to use promise API instead of callback style. r=yulia
MozReview-Commit-ID: 2jEjUPHg34t

Depends on D8983

Differential Revision: https://phabricator.services.mozilla.com/D8827
2018-10-30 08:08:44 +00:00
Alexandre Poirot a8e63e0fbc Bug 1485661 - Special test fixes. r=yulia
* browser_two_tabs.js, adapt to protocol.js exception on RDP error.
  protocol.js throws strings instead of { error, message }.
* target-from-url.js, same, it made a test fail.
* browser_toolbox_tool_remote_reopen.js, ignore root front that isn't release on
  toolbox close, but on client close.
* test_protocol_formtype.js, ensure that test root front isn't overridden
  by regular root front's spec.

MozReview-Commit-ID: HCuyZTQpaCt

Depends on D8825

Differential Revision: https://phabricator.services.mozilla.com/D8983
2018-10-30 08:08:42 +00:00
Alexandre Poirot bc82440593 Bug 1485661 - Adapt processListChanged to new front. r=yulia
MozReview-Commit-ID: 1CSeNU9Nfll

Depends on D8821

Differential Revision: https://phabricator.services.mozilla.com/D8822
2018-10-30 08:08:29 +00:00
Alexandre Poirot 66eea26edd Bug 1485661 - Adapt addonListChanged to new front. r=yulia
MozReview-Commit-ID: 7BJ9qZYP2YO

Depends on D8820

Differential Revision: https://phabricator.services.mozilla.com/D8821
2018-10-30 08:08:27 +00:00
Jim Blandy ae89f6c538 Bug 1426467: Part 5: Mochitest: pause/unpause window while worker sends messages, without breaking run-to-completion. r=baku
Detailed comments in the test itself.

Differential Revision: https://phabricator.services.mozilla.com/D9221
2018-10-22 15:35:15 +00:00
Julian Descottes 6bc00cca98 Bug 1499096 - Update wrong usage of ok() with todo_is();r=Standard8
Depends on D8739.
This changeset updates calls to ok() that were most likely intended
for is(), but are not working as is.

Differential Revision: https://phabricator.services.mozilla.com/D8740
2018-10-23 07:13:02 +00:00
Julian Descottes 15aaadb6c7 Bug 1499096 - Update tests using ok() to is();r=Standard8
This changeset updates all the test that were wrongly using ok() and wanted to
use is() AND for which the assert is still passing without any modification
required.

Differential Revision: https://phabricator.services.mozilla.com/D8739
2018-10-23 07:12:23 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
yulia d9b0741497 Bug 1488375 - Use target.getFront to instantiate MemoryFront; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7097
2018-10-17 10:36:33 +00:00
Alexandre Poirot 39c9a1c3e4 Bug 1495551 - Rename all "tab client" occurences to "target front". r=jdescottes
MozReview-Commit-ID: JrEdamUz6Be

Differential Revision: https://phabricator.services.mozilla.com/D8840
2018-10-16 18:45:33 +00:00
yulia 96bcc31e7b Bug 1497545 - clean up framerate tests; r=ochameau
Depends on D8542

Differential Revision: https://phabricator.services.mozilla.com/D8543
2018-10-16 14:18:10 +00:00
yulia 548b7029ef Bug 1497545 - Use getFront for Framerate Front where possible; r=ochameau
In this patch, I converted the call sites where there was an obvious target. I left out
those where there wasn't one... Should these be converted as well?

Depends on D8369

Differential Revision: https://phabricator.services.mozilla.com/D8374
2018-10-16 14:17:52 +00:00
yulia 9890dccaec Bug 1497545 - remove client and cleanup from attachURL; r=ochameau
Depends on D8372

Differential Revision: https://phabricator.services.mozilla.com/D8541
2018-10-15 16:08:53 +00:00
yulia 4c3f850bb9 Bug 1497545 - Use getInspector in devtools/server/tests/mochitest r=ochameau
This patch converts all getInspector locations

Depends on D8369

Differential Revision: https://phabricator.services.mozilla.com/D8372
2018-10-15 12:56:28 +00:00
yulia e755f623ef Bug 1497545 - update inspector-helper attachURL to provide a target; r=ochameau
This is part 1 of bug 1497545, and covers the most difficult case, which is migrating
attachURL to something a bit more modern and easier to read. The goal is to make our tests more
consistant with our code base now, and keep these tests maintainable.

UPDATE: I will split this up, as it is too large to review in one pass

Differential Revision: https://phabricator.services.mozilla.com/D8369
2018-10-12 13:45:27 +00:00
Alexandre Poirot d993905c33 Bug 1485660 - Special test fixes. r=jdescottes
* browser_addons_debug_webextension_popup: It looks like frame-update events are now fired earlier.
I had to move the listener to an earlier step in order to make it work.
* helper_disable_cache + toolbox.js: this test wasn't correctly listening for reconfigure request's end.
  Not clear how this test was passing before without high rate of intermittent...
* test_webextension-addon-debugging-connect.html: We can no longer listen for frame-update *before* the target object is created.
  (because we now need a TabTarget object or the TargetFront and not just the DebuggerClient)
* Fix reload request in shadereditor which may still be pending after test ends.

MozReview-Commit-ID: 49qvWSCn6nq

Depends on D8066

Differential Revision: https://phabricator.services.mozilla.com/D7460
2018-10-15 08:36:15 +00:00
Alexandre Poirot 73e6f4f534 Bug 1485660 - Switch from listening from DebuggerClient to TargetFront. r=jdescottes
* debugger-controller and events.js are special and require to support two cases because this is
the only production codepath that can have a TabTarget or a WorkerTarget.
Thus, leading to either TargetFront or WorkerClient on target.activeTab.
* webide.js doesn't need to listen for tabNavigated, this is redundant with tabListChanged.
* application's initializer. In case you are wondering this code can't be spawn against a WorkerTarget.
The application panel doesn't work in worker toolboxes.
* The code modified in target is in TabTarget, so we don't have to support the WorkerClient case, we always have a TargetFront here.
* I tried to update the doc file the best I can but this all feel outdated.

MozReview-Commit-ID: 2hGchebfIub

Depends on D7458

Differential Revision: https://phabricator.services.mozilla.com/D7459
2018-10-15 08:36:10 +00:00
Tim Nguyen 301a4df682 Bug 1497969 - Add a way to emulate :focus-within pseudo-class. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D8275
2018-10-12 21:56:44 +00:00
Bogdan Tara 38b9145277 Backed out changeset 94ccc53c61a7 (bug 1488375) for test_memory_allocations_0x.html failures CLOSED TREE 2018-10-12 19:18:18 +03:00
yulia ebc335aab0 Bug 1488375 - Use target.getFront to instantiate MemoryFront; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7097
2018-10-12 13:38:21 +00:00
Brindusan Cristian 8373655510 Backed out changeset 0ff0cb536428 (bug 1497969) for devtools failures on browser_rules_add-rule-pseudo-class.js. CLOSED TREE 2018-10-12 00:00:47 +03:00
Tim Nguyen 2472334e58 Bug 1497969 - Add a way to emulate :focus-within pseudo-class. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D8275
2018-10-11 18:51:01 +00:00
Brindusan Cristian dac48fe630 Backed out 8 changesets (bug 1485660) for damp failures on front.hasRequests. CLOSED TREE
Backed out changeset 7a2f29bbe2a8 (bug 1485660)
Backed out changeset 26e82fa62444 (bug 1485660)
Backed out changeset 9bb2f56f219d (bug 1485660)
Backed out changeset 40a3c2dd1b38 (bug 1485660)
Backed out changeset cfb160882db9 (bug 1485660)
Backed out changeset 3642f2d66777 (bug 1485660)
Backed out changeset 9026679753b2 (bug 1485660)
Backed out changeset dccca441b980 (bug 1485660)
2018-10-11 22:33:35 +03:00