Commit Graph
1127 Commits
Author SHA1 Message Date
Julian Descottes 6016928210 Bug 1361333 - use a common Sandbox instance to retrieve devtools globals;r=ochameau
MozReview-Commit-ID: L7Xkh6KkFb4
2017-08-01 14:52:23 +02:00
Julian Descottes ead972f6c6 Bug 1361333 - move sdk/util/indexed-db to devtools;r=ochameau
MozReview-Commit-ID: Lt4V6kmQACq
2017-07-31 21:55:33 +02:00
sole 761cd98c63 Bug 1378864 - Stop using sdk/core/heritage in DevTools shared specs/string. r=zer0
MozReview-Commit-ID: Hm0BkzhFfkV
2017-08-01 10:03:58 +01:00
Julian Descottes bd8cf49a5c Bug 1361332 - replace sdk/util/object by Object.assign in devtools;r=zer0
MozReview-Commit-ID: 3IREzyuAjAF
2017-07-31 19:53:37 +02:00
Xidorn Quan d617693a48 Bug 1383075 part 2 - Update CSS lexer in devtools to match the change. r=jryans
MozReview-Commit-ID: LO7ZMeLgJdJ
2017-07-31 09:23:01 +10:00
Julian Descottes 02b755a48a 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
2017-07-31 14:02:37 +02:00
sole 655875222c Bug 1378824 - Stop using sdk/util/uuid in DevTools. r=jdescottes
MozReview-Commit-ID: KdIK4Vlrp4s
2017-07-28 14:36:33 +01:00
Sebastian Hengst c39e9e2704 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 4431184ddb merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-07-27 18:18:54 +02:00
Sebastian Hengst 595c1fb799 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 143b3e13d6 Backed out changeset e2100bb65c97 (bug 1369801)
MozReview-Commit-ID: FuPL5W8IY7S
2017-07-27 18:15:03 +02:00
Sebastian Hengst f26bf21549 Backed out changeset ad2a532a50f0 (bug 1369801)
MozReview-Commit-ID: DXiSnLmo6zE
2017-07-27 18:14:53 +02:00
Sebastian Hengst 32ea619857 Backed out changeset 192d517219c1 (bug 1369801)
MozReview-Commit-ID: KeLy0a8hjVF
2017-07-27 18:14:38 +02:00
Sebastian Hengst a0079b521f Backed out changeset 98e6c8bf442e (bug 1369801)
MozReview-Commit-ID: YU31Ujz18C
2017-07-27 18:14:33 +02:00
Sebastian Hengst 7724f41f04 Backed out changeset 435291ffe259 (bug 1369801)
MozReview-Commit-ID: EEX45P93sID
2017-07-27 18:14:18 +02:00
sole 52f18561ec Bug 1378824 - Stop using sdk/util/uuid in DevTools. r=jdescottes
MozReview-Commit-ID: 18nh2NT5fEE
2017-07-27 11:28:45 +01:00
Julian Descottes 0bf8df6878 Bug 1369801 - dt-addon-fennec: skip xpcshell devtools tests on android;r=jryans
MozReview-Commit-ID: 9nkktpNhU0A
2017-06-22 21:33:15 +02:00
Julian Descottes fe1310e3cc Bug 1369801 - dt-addon-xpcshell: move child process memory test into separate test suite;r=bgrins
MozReview-Commit-ID: KXGhumyeReL
2017-07-11 16:16:18 +02:00
Julian Descottes 8c0c562ada Bug 1369801 - dt-addon-xpcshell: load devtools addon for xpcshell tests;r=bgrins
MozReview-Commit-ID: 4EyclGKca0t
2017-07-11 12:30:22 +02:00
Julian Descottes fe6e6017b7 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
2017-07-21 16:05:19 +02:00
Julian Descottes d37f3dc519 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
2017-07-11 14:35:44 +02:00
Alexandre Poirot 2ed2097751 Bug 1369801 - DevTools as system add-on;r=jdescottes
MozReview-Commit-ID: EUjkQtEUy4V
2017-05-30 17:34:38 +02:00
Brian Grinstead 8548dee1e0 Bug 1382833 - Don't throw when dealing with CPOWs in the Object Actor;r=jimb
MozReview-Commit-ID: CaIS2IpaQme
2017-07-26 11:22:56 -07:00
Andrew Halberstadt 86f21296a2 Bug 1383120 - Enable no-arbitrary-setTimeout eslint rule on xpcshell tests, r=mossop
MozReview-Commit-ID: 6DqLaZ9n5EM
2017-07-26 09:08:07 -04:00
Carsten "Tomcat" Book 80abf444f0 merge mozilla-inbound to mozilla-central a=merge 2017-07-25 14:27:17 +02:00
Wes Kocher c6d00f73af Merge m-c to autoland, a=merge
MozReview-Commit-ID: B7oWq7qfpJ0
2017-07-24 18:13:05 -07:00
Patrick Brosset 478825d78f 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 099b3832ae 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 514b99db5e 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 55fbfd1425 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 e44016fb2d 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 58e565a076 Bug 1378817 - Stop using sdk/lang/functional in DevTools. r=jdescottes
MozReview-Commit-ID: CXMu5a0KNGT
2017-07-20 17:57:28 +01:00
Alexandre Poirot 5d9fb27256 Bug 1359855 - Prevent loading any DevTools module until users interact with any devtool entrypoint. r=jdescottes
MozReview-Commit-ID: 4rORySoFRQY
2017-07-18 11:05:47 +02:00
Ehsan Akhgari 749985e893 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 1b66e0ee95 Bug 1378850 - Stop using sdk/core/heritage in DevTools webconsole hudservice; r=sole,zer0
MozReview-Commit-ID: GWH1hYt3pUr
2017-07-07 13:37:56 +02:00
Ryan VanderMeulen 96dea1ec83 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 fd16f0afe1 Bug 1378850 - Stop using sdk/core/heritage in DevTools webconsole hudservice; r=sole,zer0
MozReview-Commit-ID: GWH1hYt3pUr
2017-07-07 13:37:56 +02:00
Jan Odvarko e1fb837bfd Bug 1378821 - Stop using sdk/window/utils in DevTools; r=zer0
MozReview-Commit-ID: BD3EGMWtDv1
2017-07-10 10:55:40 +02:00
Jan Odvarko 9699a0842f Bug 1378865 - Stop using sdk/core/heritage in DevTools shared webconsole server logger; r=zer0
MozReview-Commit-ID: ADFdvBWWMZL
2017-07-07 15:16:56 +02:00
Patrick McManus f75e6f88c2 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
2017-07-10 15:01:35 -04:00
Patrick Brosset 68112a7c1d 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
2017-06-27 12:02:53 -07:00
Sebastian Hengst ca73b5de99 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 ae148cbd69 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
2017-06-20 14:57:34 +02:00
Yury Delendik 91034a63d1 Bug 1375164 - Add arguments to the ArrayBufferClient.slice method. r=jlast
MozReview-Commit-ID: 9B81khIRDKk
2017-06-21 13:01:41 -05:00
Wes Kocher b6805ef685 Merge m-c to inbound, a=merge
MozReview-Commit-ID: BYGylgZSbUu
2017-06-20 18:31:42 -07:00
Wes Kocher aff551aa1b Merge autoland to m-c a=merge
MozReview-Commit-ID: LFtpTAueYrF
2017-06-20 18:24:29 -07:00
Gabriel Luong 7073747490 Bug 1373483 - Add telemetry for the grid inspector. r=pbro. data-r=bsmedberg 2017-06-20 16:32:18 -07:00
Wes Kocher 24a0d454ab 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 0ef615e987 Bug 1373483 - Add telemetry for the grid inspector. r=pbro. data-r=bsmedberg 2017-06-20 14:41:13 -07:00
Paolo Amadini 7afba17088 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
2017-06-19 11:32:37 +01:00