Commit Graph

1127 Commits

Author SHA1 Message Date
Julian Descottes
24713c26da Bug 1361333 - use a common Sandbox instance to retrieve devtools globals;r=ochameau
MozReview-Commit-ID: L7Xkh6KkFb4

--HG--
extra : rebase_source : 481eb2f173db9df0626bfe1fb66f2f2722d053d3
2017-08-01 14:52:23 +02:00
Julian Descottes
dc05133f8b Bug 1361333 - move sdk/util/indexed-db to devtools;r=ochameau
MozReview-Commit-ID: Lt4V6kmQACq

--HG--
extra : rebase_source : 80bdaa517bdfa6863f963c7ed8a5275ba7415c18
2017-07-31 21:55:33 +02:00
sole
aa140b98ee Bug 1378864 - Stop using sdk/core/heritage in DevTools shared specs/string. r=zer0
MozReview-Commit-ID: Hm0BkzhFfkV

--HG--
extra : rebase_source : 841fce36c18c209ea5350e9e65f4e482add6442b
2017-08-01 10:03:58 +01:00
Julian Descottes
8f7083a841 Bug 1361332 - replace sdk/util/object by Object.assign in devtools;r=zer0
MozReview-Commit-ID: 3IREzyuAjAF

--HG--
extra : rebase_source : 758d431d809f0ac7bf70a1a39c2f38c83361e8f6
2017-07-31 19:53:37 +02:00
Xidorn Quan
7f38dbe964 Bug 1383075 part 2 - Update CSS lexer in devtools to match the change. r=jryans
MozReview-Commit-ID: LO7ZMeLgJdJ

--HG--
extra : rebase_source : 31f898bf70fa2c025dc0d8c7f744165a14450586
2017-07-31 09:23:01 +10:00
Julian Descottes
b7f1441589 Bug 1378820 - remove usage of sdk/clipboard in devtools clipboard helper;r=gl
Remove previous helper APIs:
- currentFlavors()
- getData()

The only consumer for both APIs was in devtools/cient/inspector/inspector.
The logic was:
- call currentFlavors()
- if clipboard contains:
  -  "text/unicode"
  or
  - "text/html" but not "image/png"
- then call getData()

But actually calling getData() without any argument means that unless "image/png"
flavor is available, we will always use the "text/unicode" flavor.
(see current code for sdk helper: http://searchfox.org/mozilla-central/rev/09c065976fd4f18d4ad764d7cb4bbc684bf56714/addon-sdk/source/lib/sdk/clipboard.js#204-209)

If the text/unicode flavor was available at the same time as image/png, the code
would have returned the image data, which is probably not what we expect in the
context of the inspector.

I think we should explicitly request for text/unicode. So this patch introduces
a new getText() api in the devtools clipboard helper, which is a simplified version
of the sdk get() helper. We could always extend it to also support text/html.


MozReview-Commit-ID: E3JVj9boVKe

--HG--
extra : rebase_source : 3f1aecd05dacba5cd1a3af6025bbf82d51d49821
2017-07-31 14:02:37 +02:00
sole
1914870141 Bug 1378824 - Stop using sdk/util/uuid in DevTools. r=jdescottes
MozReview-Commit-ID: KdIK4Vlrp4s

--HG--
extra : rebase_source : 6f83f9afbfda464979a9dbccffc23c5a22eacadb
2017-07-28 14:36:33 +01:00
Sebastian Hengst
c2192ec889 Backed out changeset c0f919689e48 (bug 1378824) for failing eslint at devtools/client/inspector/webpack.config.js:166:3 with: Newline required at end of file but not found. r=backout on a CLOSED TREE 2017-07-27 18:34:21 +02:00
Sebastian Hengst
7ea64bd7aa merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-07-27 18:18:54 +02:00
Sebastian Hengst
09c065976f Backed out changeset 8a8f5e718ddd (bug 1369801) for frequently breaking devtools menus (bug 1384967). r=backout a=backout on a CLOSED TREE
MozReview-Commit-ID: E0RLmP6mojT
2017-07-27 18:16:52 +02:00
Sebastian Hengst
122d6c2d24 Backed out changeset e2100bb65c97 (bug 1369801)
MozReview-Commit-ID: FuPL5W8IY7S
2017-07-27 18:15:03 +02:00
Sebastian Hengst
2a5827b866 Backed out changeset ad2a532a50f0 (bug 1369801)
MozReview-Commit-ID: DXiSnLmo6zE
2017-07-27 18:14:53 +02:00
Sebastian Hengst
205843f800 Backed out changeset 192d517219c1 (bug 1369801)
MozReview-Commit-ID: KeLy0a8hjVF
2017-07-27 18:14:38 +02:00
Sebastian Hengst
31b6c003f8 Backed out changeset 98e6c8bf442e (bug 1369801)
MozReview-Commit-ID: YU31Ujz18C
2017-07-27 18:14:33 +02:00
Sebastian Hengst
612f011bfe Backed out changeset 435291ffe259 (bug 1369801)
MozReview-Commit-ID: EEX45P93sID
2017-07-27 18:14:18 +02:00
sole
8877005317 Bug 1378824 - Stop using sdk/util/uuid in DevTools. r=jdescottes
MozReview-Commit-ID: 18nh2NT5fEE

--HG--
extra : rebase_source : 090b83b70f158d291337abbf2dedb898ef941c84
2017-07-27 11:28:45 +01:00
Julian Descottes
540a42dfc9 Bug 1369801 - dt-addon-fennec: skip xpcshell devtools tests on android;r=jryans
MozReview-Commit-ID: 9nkktpNhU0A

--HG--
extra : rebase_source : 99dfd4ae1efa4328b504ffd59b3b6d0205824685
2017-06-22 21:33:15 +02:00
Julian Descottes
26e0ffd71f Bug 1369801 - dt-addon-xpcshell: move child process memory test into separate test suite;r=bgrins
MozReview-Commit-ID: KXGhumyeReL

--HG--
extra : rebase_source : e1fb2505634be876fa274ed4a7bc22a8b6a967cc
2017-07-11 16:16:18 +02:00
Julian Descottes
df95b72117 Bug 1369801 - dt-addon-xpcshell: load devtools addon for xpcshell tests;r=bgrins
MozReview-Commit-ID: 4EyclGKca0t

--HG--
extra : rebase_source : 05d41abb69a34f0f5b8241c26684ed53a88b6df5
2017-07-11 12:30:22 +02:00
Julian Descottes
346099c99a Bug 1369801 - dt-addon-prefs: load DevTools prefs when starting Loader.jsm;r=ochameau
DevTools should not execute any code on the browser startup. Loading preferences takes
a non negligeable time and should be deferred to the devtools initialization.

For all devtools entry points, Loader.jsm is always loaded first, so it is safe to
load the preferences here.

MozReview-Commit-ID: Hg4VBj2LqPo

--HG--
extra : rebase_source : 86bfef7e13ecf52b9b8c761fbf7352af42a6bced
2017-07-21 16:05:19 +02:00
Julian Descottes
5a907e49b4 Bug 1369801 - dt-addon-build: additional build fixes for system addon;r=ochameau
In this patch:
- register webide properly
- register localization
- add processing indicator in jar.mn for pref files (details below)

The preferences files still contain processing instructions, that we manually interpret when loading
prefs. Keeping the * processing indicator will avoid triggering warnings in tests scanning
javascript files for issues such as browser_parsable_script.js

MozReview-Commit-ID: 8WYUvbtMNn5

--HG--
extra : rebase_source : 18b13c0d6d1065e141650edb5a3a0b1e7b09a5f8
2017-07-11 14:35:44 +02:00
Alexandre Poirot
7f5d400ac4 Bug 1369801 - DevTools as system add-on;r=jdescottes
MozReview-Commit-ID: EUjkQtEUy4V

--HG--
extra : rebase_source : 1d3920a73e082cb3efd9ceb3af6104fb54951b9b
2017-05-30 17:34:38 +02:00
Brian Grinstead
46cc553a7c Bug 1382833 - Don't throw when dealing with CPOWs in the Object Actor;r=jimb
MozReview-Commit-ID: CaIS2IpaQme

--HG--
extra : rebase_source : 75b4fe1abd460978039d7f1085d56e64b9dd2765
2017-07-26 11:22:56 -07:00
Andrew Halberstadt
21a03ad73c Bug 1383120 - Enable no-arbitrary-setTimeout eslint rule on xpcshell tests, r=mossop
MozReview-Commit-ID: 6DqLaZ9n5EM

--HG--
extra : rebase_source : 5f1264bb3ea23005c91557e5db4ce5f9e167ce9a
2017-07-26 09:08:07 -04:00
Carsten "Tomcat" Book
679210723b merge mozilla-inbound to mozilla-central a=merge 2017-07-25 14:27:17 +02:00
Wes Kocher
a1eadef812 Merge m-c to autoland, a=merge
MozReview-Commit-ID: B7oWq7qfpJ0
2017-07-24 18:13:05 -07:00
Patrick Brosset
cb742fc530 Bug 1378860 - Use an ES class instead of an SDK class for RuleModificationList; r=gl
MozReview-Commit-ID: CFXcLPFbi0U
2017-07-21 14:36:10 +02:00
Patrick Brosset
82f75e4a1a Bug 1378859 - Use an ES class instead of an SDK class in the inspector front; r=gl
MozReview-Commit-ID: 8lSSBTXsUqa
2017-07-21 14:14:48 +02:00
Mike Park
ed40ba307a Bug 1282717 - Highlight CSS shapes points in the page from the rule-view and vice versa. r=pbro
MozReview-Commit-ID: 9pXkbAwgcXO
2017-07-05 10:57:42 -04:00
Yoshi Huang
03deed6724 Bug 1381771 - Part 2: use legacy data: URI behavior to run test. r=bgrins
These two tests just creates a dummy window, however it makes the test
more difficult to write if we just simply use a seperate file for them.

Because these are chrome: tests, and they are opening a content window,
for the chrome side, it won't receive the window.onload because they are
not the same origin.

For the content side, it cannot access 'postMessage' because it looks
there's some protection when trying to read chrome object.
2017-07-24 10:00:31 +08:00
Mike Park
dc60e7a8cf Bug 1373339 - Add a button in the rules view to toggle the CSS shapes highlighter. r=gl
Requires pref "devtools.inspector.shapesHighlighter.enabled" to be true.

MozReview-Commit-ID: Ispw7ulV5o6
2017-06-20 11:23:32 -04:00
sole
b7601c1b53 Bug 1378817 - Stop using sdk/lang/functional in DevTools. r=jdescottes
MozReview-Commit-ID: CXMu5a0KNGT

--HG--
extra : rebase_source : acdb62a83a4f27c566ea6c9dabf0d0dce9b253e0
2017-07-20 17:57:28 +01:00
Alexandre Poirot
be18a2c0f1 Bug 1359855 - Prevent loading any DevTools module until users interact with any devtool entrypoint. r=jdescottes
MozReview-Commit-ID: 4rORySoFRQY

--HG--
extra : rebase_source : c7b41b0adc65d7b6e2273fb577f6738fe9e010c7
2017-07-18 11:05:47 +02:00
Ehsan Akhgari
fb9c30f56a Bug 1382343 - Improve the hash function used in hashIdDerivedFromPtr() to rely on HashGeneric(); r=fitzgen 2017-07-19 20:39:17 -04:00
Jan Odvarko
5ca5637750 Bug 1378850 - Stop using sdk/core/heritage in DevTools webconsole hudservice; r=sole,zer0
MozReview-Commit-ID: GWH1hYt3pUr

--HG--
extra : rebase_source : 6a7bb4177977116b699bcd1775622fa81e47677c
2017-07-07 13:37:56 +02:00
Ryan VanderMeulen
83d18df973 Backed out changeset 68c5012ba344 (bug 1378850) for ESlint no-unused-vars failures on a CLOSED TREE. 2017-07-19 12:26:25 -04:00
Jan Odvarko
61b874e65a Bug 1378850 - Stop using sdk/core/heritage in DevTools webconsole hudservice; r=sole,zer0
MozReview-Commit-ID: GWH1hYt3pUr

--HG--
extra : rebase_source : 18c62b347a8c86c3067c280475cc05dfaff7560c
2017-07-07 13:37:56 +02:00
Jan Odvarko
14bb8750cb Bug 1378821 - Stop using sdk/window/utils in DevTools; r=zer0
MozReview-Commit-ID: BD3EGMWtDv1

--HG--
extra : rebase_source : 08a8a66b6926c24e834e79f81b9fe44c4b0be863
2017-07-10 10:55:40 +02:00
Jan Odvarko
ded3464199 Bug 1378865 - Stop using sdk/core/heritage in DevTools shared webconsole server logger; r=zer0
MozReview-Commit-ID: ADFdvBWWMZL

--HG--
extra : rebase_source : 75e5aec30fe33ab1dfcab8837c9c853dee917ad1
2017-07-07 15:16:56 +02:00
Patrick McManus
850582d8f3 Bug 772589 - Implement the secureConnectionStart property for the PerformanceTiming interface r=bkelly,dragana,francois,Honza
Implements PerformanceTiming, nsITimedChannel, and devtools 'tls setup'

Also captures telemetry on this as we do for all other attributes of timedChannel

Also propogates some null transaction timings onto first real
transaction of a connection

MozReview-Commit-ID: 47TQJYVHnKC

--HG--
extra : rebase_source : a7723962986de0c2ab00d479a22c3f5fd185c8b2
2017-07-10 15:01:35 -04:00
Patrick Brosset
c109f6e2ed Bug 1374587 - Avoid getting NodeActors for grids when we already know them and filter reflows; r=gl
Here we make updates on reflow slower (with a throttle) cause we don't
really need to update live.
We also filter all reflows that do not cause either the list of grids or
the current outline to change.
Finally, we also attach NodeActors to GridActor forms (when they are know)
in order to avoid one more round-trip to the server.

Globally, this makes performance of the grid panel far better on pages that
cause many reflows.

Note that this commit also fixes a debounce vs. throttle confusion that
existed in an inspector utils file. The throttle function there was actually
a debounce function, so it was renamed, and an actual throttle function
was added.

MozReview-Commit-ID: GeqgZR0o0E6

--HG--
extra : rebase_source : 6b9719379dcbd4479bded26014aa3742bd75208e
2017-06-27 12:02:53 -07:00
Sebastian Hengst
ee5d5a5174 Backed out changeset 909ccc166a06 (bug 1374587) on suspicion of causing timeouts in browser_grids_number-of-css-grids-telemetry.js. r=backout 2017-06-23 18:55:38 +02:00
Patrick Brosset
9db019a850 Bug 1374587 - Avoid getting NodeActors for grids when we already know them and filter reflows; r=gl
Here we make updates on reflow slower (with a throttle) cause we don't
really need to update live.
We also filter all reflows that do not cause either the list of grids or
the current outline to change.
Finally, we also attach NodeActors to GridActor forms (when they are know)
in order to avoid one more round-trip to the server.

Globally, this makes performance of the grid panel far better on pages that
cause many reflows.

Note that this commit also fixes a debounce vs. throttle confusion that
existed in an inspector utils file. The throttle function there was actually
a debounce function, so it was renamed, and an actual throttle function
was added.

MozReview-Commit-ID: GeqgZR0o0E6

--HG--
extra : rebase_source : a2792a0ec4cad2034965d36648f0675ae4f52d86
2017-06-20 14:57:34 +02:00
Yury Delendik
b999f73044 Bug 1375164 - Add arguments to the ArrayBufferClient.slice method. r=jlast
MozReview-Commit-ID: 9B81khIRDKk

--HG--
extra : rebase_source : 84002db886035ee97467f6b1fca53699d9e4e8cf
2017-06-21 13:01:41 -05:00
Wes Kocher
47a595548e Merge m-c to inbound, a=merge
MozReview-Commit-ID: BYGylgZSbUu
2017-06-20 18:31:42 -07:00
Wes Kocher
c0e1236f1a Merge autoland to m-c a=merge
MozReview-Commit-ID: LFtpTAueYrF
2017-06-20 18:24:29 -07:00
Gabriel Luong
fe1128dd14 Bug 1373483 - Add telemetry for the grid inspector. r=pbro. data-r=bsmedberg 2017-06-20 16:32:18 -07:00
Wes Kocher
89c6584074 Backed out changeset 830b3b513bf1 (bug 1373483) for build failures in TelemetryHistogram.o a=backout
MozReview-Commit-ID: I5RRKMjXWKM
2017-06-20 15:03:04 -07:00
Gabriel Luong
0f9310447e Bug 1373483 - Add telemetry for the grid inspector. r=pbro. data-r=bsmedberg 2017-06-20 14:41:13 -07:00
Paolo Amadini
10ee6a5c4e Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00