Commit Graph
1095 Commits
Author SHA1 Message Date
Andrew Halberstadt 6c60ffa524 Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw
2017-08-10 14:48:21 -04:00
Xidorn Quan 3913a95452 Bug 1383992 part 1 - Disable failing mochitests. r=heycam
MozReview-Commit-ID: J9LoovJJJgM
2017-08-09 08:31:26 +10:00
Alexandre Poirot 076c0143fe Bug 1382968 - Only try to forward console messages from content processes to parent when browser console/toolbox are opened. r=jryans,tromey
MozReview-Commit-ID: 8cFUbF4msHx
2017-08-01 16:51:07 +02:00
Alexandre Poirot 4290449b4f Bug 1382968 - Move console actor helper modules to a dedicated folder. r=jryans
MozReview-Commit-ID: 6l1kcHFglDf
2017-08-01 16:17:22 +02:00
Wes Kocher a5ac8e39ed Merge m-c to autoland a=merge
MozReview-Commit-ID: 2qLtb79Nlhs
2017-08-08 15:26:30 -07:00
Gabor Krizsanits ee6c559bef Bug 1378207 - Handle sandboxes with XOW protos in WebExtensionChildActor. r=rpl
Sandbox can throw on property access if it does not have permission
to access its own proto, even if the caller compartment had.
2017-08-08 13:43:20 +02:00
Wes Kocher 85ba4e7ea1 Backed out 3 changesets (bug 1382968) for breaking browser_addons_debug_webextension.js a=backout
Backed out changeset e25b4bd21ac8 (bug 1382968)
Backed out changeset 5a2260bc98ca (bug 1382968)
Backed out changeset 869a9b46b5cc (bug 1382968)

MozReview-Commit-ID: DSKWAHxdXI
2017-08-08 09:17:56 -07:00
Alexandre Poirot 946ab8adea Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART3: Manual fixes
- Go manually fix: http://searchfox.org/mozilla-central/source/devtools/client/dom/dom-panel.js
  which has duplicated import of defer symbol (it already used to import it)
- execute eslint, see all the places where we import of 'promise' is no longer use it
  (there may be leftovers not covered by eslint that will be covered in bug 1387128)
  devtools/server/tests/mochitest/inspector-helpers.js needs to keep importing promise as it is a shared test script.
- fix devtools/client/performance/panel.js and devtools/client/webconsole/console-output.js
  which use loader.lazyRequireGetter(this, "promise") and miss the defer import
- fix devtools/server/worker.js to use 'worker.require(devtools/shared/defer")'

MozReview-Commit-ID: HIOB5Et87Wc
2017-08-08 15:19:56 +02:00
Alexandre Poirot 3d76320218 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART2: Substitutes promise.defer usages with defer
$ sed -i 's/promise.defer/defer/gI' $(egrep -lir "promise.defer\(\)" devtools)
  Reset modification to the following files as they are using deprecated syncable promises as we don't want to touch them.
  http://searchfox.org/mozilla-central/search?q=deprecated-sync-thenables&case=true&regexp=false&path=
$ git checkout devtools/client/debugger/test/mochitest/
$ git checkout devtools/shared/client/main.js
$ git checkout devtools/client/debugger/
$ git checkout devtools/server/main.js

MozReview-Commit-ID: DGN5ae68wtn
2017-08-08 15:24:04 +02:00
Alexandre Poirot 1f1a801a56 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART1: Import devtools/shared/defer
$ sed -i '/require("promise")/a const defer = require("devtools/shared/defer");' $(egrep -lir "promise.defer\(\)" $(egrep -rl "require\(\"promise\"\)" devtools))
But ignore debugger as it still uses sync promises and would better be handled manually
$ git checkout devtools/client/debugger/
MozReview-Commit-ID: 7FvhNxULB2x
2017-08-08 15:33:56 +02:00
Alexandre Poirot ece07052c8 Bug 1387122 - Remove all useless Promise = require("promise"). r=tromey
Promise with a capital 'P' is already available in all DevTools sandboxes.

Still a couple of letfovers:
* Modules still using `Promise.defer()` (will be handled in bug 1387123)
* devtools/shared/defer, which introduces changes in Promise unhandled exception and stacks (bug 1388054)

MozReview-Commit-ID: PBaliHFa7u
2017-08-07 17:53:29 +02:00
Alexandre Poirot d7402fa992 Bug 1382968 - Only try to forward console messages from content processes to parent when browser console/toolbox are opened. r=jryans,tromey
MozReview-Commit-ID: 8cFUbF4msHx
2017-08-01 16:51:07 +02:00
Alexandre Poirot dda591f32b Bug 1382968 - Move console actor helper modules to a dedicated folder. r=jryans
MozReview-Commit-ID: 6l1kcHFglDf
2017-08-01 16:17:22 +02:00
Tom Tromey fc2955e8ee Bug 1370648 - use final token as end location of statement list; r=jimb
This changes the parser to use the final token of a statement list as
it's end location.  This works around some confusing behavior, such as a
breakpoint firing on the marked line:

    <script>
      if (1 !== 1) {
        console.log("dead code!?"); // set breakpoint here
      }
    </script>

MozReview-Commit-ID: 3Sk1ERw5Q6z
2017-07-14 13:29:52 -06:00
Julian Descottes 524de90951 Bug 1386357 - remove usage of sdk/timers in DevTools;r=ochameau
MozReview-Commit-ID: 8rC2peDRBJW
2017-08-02 12:53:20 +02:00
Micah Tigley 4e86316aa2 Bug 1385144 - Overlapping negative line numbers do not display as a stack. r=zer0
MozReview-Commit-ID: xlkj6OjL4n
2017-07-31 21:55:00 -06:00
Phil Ringnalda 88f2bffd1e Backed out changeset bd270d4fe4bc (bug 1385144) for eslint failures
CLOSED TREE

MozReview-Commit-ID: HnONZdDsG3v
2017-08-01 23:07:57 -07:00
Micah Tigley 99a4708398 Bug 1385144 - Overlapping negative line numbers do not display as a stack. r=zer0
MozReview-Commit-ID: xlkj6OjL4n
2017-07-31 21:55:00 -06: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
J. Ryan Stinnett cc38702d42 Bug 1384789 - Check ancestor URLs to avoid sheet cycles. r=bgrins
With Stylo, an import rule from a cycle _will_ have a `styleSheet` object, so we
need to also check the sheet's ancestors to see if the URL is unique.

MozReview-Commit-ID: B33REaSGGYU
2017-07-27 17:23:22 -05:00
Tom Tromey b7ccf51b81 Bug 1385032 - add logErrorInPage to tab target in devtools; r=bgrins
This adds a method that can be called by the toolbox to log something to
the web console.

MozReview-Commit-ID: GpZtWwNVVGO
2017-07-07 12:53:32 -06:00
sole cdeba1e6cf Bug 1378857 - Stop using sdk/core/heritage in DevTools server/primitive. r=jdescottes
MozReview-Commit-ID: 2NQ2iSQKB0g
2017-07-28 17:03:32 +01: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 32ea619857 Backed out changeset 192d517219c1 (bug 1369801)
MozReview-Commit-ID: KeLy0a8hjVF
2017-07-27 18:14:38 +02:00
Sebastian Hengst 3d39592821 Backed out changeset 148d11a549ce (bug 1369801)
MozReview-Commit-ID: AIvxY8960pa
2017-07-27 18:14:23 +02:00
Carsten "Tomcat" Book 3fe83e45ea merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Micah Tigley 7cb962326f Bug 1369942 - Display Negative Line Numbers in CSS Grid Inspector. r=zer0
MozReview-Commit-ID: FmOj7jVT3Ll
2017-07-26 18:27:36 -06:00
Gabriel Luong e2a77203c9 Bug 1376774 - Restore the highlighter states on markup loaded prior to emitting the "new-root" event. r=jdescottes 2017-07-26 16:26:09 -04:00
Julian Descottes 1aa8b444cd Bug 1369801 - dt-addon-fennec: package specific version of devtools addon for fennec;r=jryans
MozReview-Commit-ID: 50jh5spnHw6
2017-06-21 19:23:11 +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
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
Andrew Halberstadt a83470f2fd Bug 1383120 - [eslint-plugin-mozilla] Fix getTestType() helper so mochitests aren't treated as xpcshell tests, r=mossop
This also adds a11y as a test type.

MozReview-Commit-ID: D7y3uALzVQx
2017-07-21 12:41:27 -04:00
Nicolas Chevobbe ee4a4c043c Bug 881480 - Add ownSymbols to object preview; r=ochameau
This adds an `ownSymbols` and an `ownSymbolsLength` properties to the
grip `preview` property so we can retrieve them in the frontend.
This also refactors the newly introduced test for symbols and add a
function which test the content of the preview property in the grip.
The console test packet stubs files were updated to take this into account.

MozReview-Commit-ID: 7rPxFcS5uXE
2017-07-24 15:25:46 +02:00
Nicolas Chevobbe ce80692f37 Bug 881480 - Add ownSymbols to onPrototypeAndProperties; r=ochameau
MozReview-Commit-ID: 7Mzg1UPOYcY
2017-07-21 17:17:44 +01:00
Carsten "Tomcat" Book 80abf444f0 merge mozilla-inbound to mozilla-central a=merge 2017-07-25 14:27:17 +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
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
Yoshi Huang 060a4c8958 Bug 1381771 - Part 1: fix mc1 failures in devtools/ when data: URI is unique origin. r=pbro 2017-07-24 10:00:07 +08:00
Patrick Brosset 34366d4c78 Bug 1378851 - Use ES classes in devtools highlighters rather than SDK heritage module; r=sole
MozReview-Commit-ID: 7ahFmbrMd8a
2017-07-21 13:00:04 +02:00
Mike Park 7c6c56e184 Bug 1282719 - Make CSS shapes highlighter points editable. r=zer0
Click and drag markers, circle edges, and radius edges to move them.
Double click on a polygon edge to add a new point.
Double click on a polygon point to remove it.

MozReview-Commit-ID: EbPH1pVVBOT
2017-06-14 17:18:57 -04:00
Alexandre Poirot b154e2f58e Bug 1378133 - Fix the inspector when loading pages from bfcache. r=jdescottes
MozReview-Commit-ID: Ek2lw4Vh1km
2017-07-24 15:55:42 +02:00
sole 2bb2a772fc Bug 1378853 - Stop using sdk/core/heritage in DevTools reflow actor. r=jdescottes
MozReview-Commit-ID: IZr8qrCUdU8
2017-07-19 10:51:19 +01:00
Mark Striemer 3ba601e9c7 Bug 1330732 - Show install warnings in about:debugging r=aswan,jdescottes
MozReview-Commit-ID: 8SFcYuln8w8
2017-06-29 11:11:21 -07:00
Jan Odvarko 7414429272 Bug 1378854 - Stop using sdk/core/heritage in DevTools stack utils; r=zer0
MozReview-Commit-ID: L4FrZ0UBKea
2017-07-10 11:28:26 +02:00
Micah Tigley 66c7dcc1eb Bug 1379715 - Grid Inspector Area Names are giant when they overflow. r=gl
MozReview-Commit-ID: EFQkZ25Bf4w
2017-07-11 22:17:17 -06:00
J. Ryan Stinnett 1cbd8b17f2 Bug 1380082 - Don't Stylo check pref directly in tests. r=xidorn
Stylo might be enabled by either env var or pref.  Use the existing
DOMWindowUtils method to test for Stylo instead of the pref to get an accurate
value.

MozReview-Commit-ID: 8p22xCBjHjo
2017-07-12 13:03:15 -05:00
Micah Tigley 2298dd7f94 Bug 1380544 - Overlapping grid line numbers should display as a stack. r=zer0
MozReview-Commit-ID: 4XRA0AiLzty
2017-07-24 21:36:26 -06:00
Tom Tromey 318f1af58b Bug 1306887 - use SourceMap response header in style sheet actor; r=gl
If a SourceMap response header was saved on a style sheet, use it in the
style sheet actor.

MozReview-Commit-ID: GRLCdRCaP5Q
2017-06-29 10:04:52 -07:00