Commit Graph

6773 Commits

Author SHA1 Message Date
J. Ryan Stinnett
671f16eccd Bug 1386053 - Skip remaining DevTools Stylo failures. r=manishearth
MozReview-Commit-ID: TcexGI0JkG
2017-08-03 13:32:25 -05:00
Tom Tromey
639b3c6efc 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

--HG--
extra : rebase_source : 6c6338ca183518baec6ccfcb9ae17e24cf644c97
2017-07-14 13:29:52 -06:00
Tim Nguyen
355a783bae Bug 1385702 - Update and clean up close icon styling for photon. r=dao
MozReview-Commit-ID: IpM0Ampi9fE

--HG--
extra : rebase_source : cd7cda3cb86a86cb66113034ac6cb6f2a07b6882
2017-08-03 17:01:36 +00:00
Alexandre Poirot
dbebe3ebb7 Bug 1386299 - Stop importing event-emitter as a JSM. r=jdescottes
MozReview-Commit-ID: FnIRJbILIxj

--HG--
extra : rebase_source : e34b781a628a8085bdeb8eba090d5d8102d50c76
2017-07-25 18:30:59 +02:00
J. Ryan Stinnett
e1b749febc Bug 1386830 - Test profile dirs in Browser Toolbox. r=jdescottes
Before trying to migrate Browser Toolbox profile dirs, ensure the old and new
dirs are actually different.  This avoids an issue where we were constantly
"migrating" the profile to the same place, effectively deleting it on every run.

MozReview-Commit-ID: FUAb2G21nbV

--HG--
extra : rebase_source : 32c6425036196675322c6a5422a6edf8a8aa4498
2017-08-02 16:34:40 -05:00
Julian Descottes
2df26d3e9f Bug 1386357 - add new debugger head to support files for browser_browser_toolbox_debugger.js;r=ochameau
MozReview-Commit-ID: 9ajEa09R0Nb

--HG--
extra : rebase_source : 09e6fd7b50b7319b18cd51ddcbc919de23c5ce49
2017-08-03 14:54:09 +02:00
Julian Descottes
def4adbffc Bug 1386357 - remove usage of sdk/timers in DevTools;r=ochameau
MozReview-Commit-ID: 8rC2peDRBJW

--HG--
extra : rebase_source : 0c2636114a2a44017b0f8af749025d7465cfb906
2017-08-02 12:53:20 +02:00
Sebastian Hengst
5a6d56ddde Backed out changeset 17aff9906595 (bug 1386584) because bug 1386299 had to be backed out. r=backout on a CLOSED TREE 2017-08-03 14:02:17 +02:00
Sebastian Hengst
38d95114f2 Backed out changeset c7f4ecbc3658 (bug 1386299) for failing toolkit/components/extensions/test/browser/browser_ext_management_themes.js. r=backout 2017-08-03 12:36:46 +02:00
Julian Descottes
2bd1a276c8 Bug 1386584 - Remove JSM boilerplate in devtools/shared/platform/chrome/stack;r=ochameau
MozReview-Commit-ID: EgbKH70NsM9

--HG--
extra : rebase_source : 00cb0d2d0732b55ca39d22adc819d9aabb547a5a
2017-08-02 13:24:14 +02:00
Alexandre Poirot
6ebb3b93e8 Bug 1386299 - Stop importing event-emitter as a JSM. r=jdescottes
MozReview-Commit-ID: FnIRJbILIxj

--HG--
extra : rebase_source : dee867ac4fa7378e55d6e51e804953fdc051de3d
2017-07-25 18:30:59 +02:00
Julian Descottes
c0c69ebef6 Bug 1386620 - dt-addon-prefs: move devtools.theme preference to devtools-startup-prefs.js;r=bgrins
MozReview-Commit-ID: GOWh7COmCSx

--HG--
extra : rebase_source : 72952b2f7373ac19144711e53342c37dfb2d050d
extra : source : 57dfefe7df235df85d083cca1b43479dc5af3f45
2017-07-25 16:45:08 +02:00
Julian Descottes
54c09394be Bug 1386620 - dt-addon-prefs: move jsonview enabled pref outside of devtools addon;r=ochameau
DevTools preferences are loaded dynamically by calling DevtoolsPreferences.loadPrefs().
We can not preload them when the addon starts, otherwise this will slow down the startup
of Firefox.

But jsonview's converter-observer needs to check preferences to check if jsonview is
enabled very early. Moving devtools.jsonview.enabled to a separate preferences file
that is still processed by firefox fixes the issue.

The downside is that this pref will keep following m-c's release cycle and not the addon's.
But it is so generic it should not be a big issue.


MozReview-Commit-ID: HrD5IVe54Ks

--HG--
extra : rebase_source : bb85aa12ec92db7d11abdb002f0429123b173afd
extra : source : 9622410d90ad264933ee7d1147ed655615ac4a19
2017-07-21 12:27:35 +02:00
Julian Descottes
c18173354b Bug 1386620 - dt-addon: move devtools-startup to devtools shim folder;r=ochameau
MozReview-Commit-ID: GNFAyfXHIa9

--HG--
rename : devtools/client/devtools-startup.js => devtools/shim/devtools-startup.js
rename : devtools/client/devtools-startup.manifest => devtools/shim/devtools-startup.manifest
extra : rebase_source : 32fda4768488b517399d6864c15aa5cbc2639fb6
extra : source : 8d2736d54513382969ba510186860486e66d8b1d
2017-07-20 18:56:39 +02:00
Nicolas Chevobbe
c80141a452 Bug 1386551 - Import component-frame.css in new frontend; r=bgrins.
This file takes care of the layout for stack traces, which can be displayed
in the console (for errors, console.trace, …).
The file was declared in webconsole.xul but not ported in webconsole.xhtml.

MozReview-Commit-ID: FFXAB14XZ6J

--HG--
extra : rebase_source : da956c54d130cd01553451da1d895b606bb4499f
2017-08-02 11:03:40 +02:00
Wes Kocher
5df77c43f9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: IJRYyJu1sWm
2017-08-02 17:42:10 -07:00
Wes Kocher
baf6cddc4c Merge inbound to central, a=merge
MozReview-Commit-ID: 9NFjSEt96iT
2017-08-02 17:11:51 -07:00
Gabriel Luong
c0b1c9a99e Bug 1386275 - Update the grid overlay color palette. r=jdescottes 2017-08-02 15:39:48 -04:00
Wes Kocher
ae470990cc Backed out changeset 7cdd08ad685c (bug 1386275) for failures in browser_grids_grid-list-color-picker-on-ESC.js a=backout
MozReview-Commit-ID: HcNhUTPVveT
2017-08-02 10:30:27 -07:00
Gabriel Luong
1c25de30f8 Bug 1386275 - Update the grid overlay color palette. r=jdescottes 2017-08-02 11:12:06 -04:00
Micah Tigley
59d1881000 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
Sebastian Hengst
82e3b22f18 Backed out changeset f85fbccf2c1f (bug 1380709) for failing devtools' browser_dynamic_tool_enabling.js on Windows 8 x64 debug with e10s. r=backout 2017-08-02 18:06:31 +02:00
Sebastian Hengst
97fa6ef57e Backed out changeset 306169f86028 (bug 1380709) 2017-08-02 18:05:21 +02:00
Sebastian Hengst
3f796be69d Backed out changeset 44cfd92f709c (bug 1380709) 2017-08-02 18:05:20 +02:00
Masatoshi Kimura
f143125cc2 Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
MozReview-Commit-ID: DqJdTGopR9G

--HG--
extra : rebase_source : e8c9eb03468c075b79013b6e0bd8b367229c24cd
2017-07-29 20:50:21 +09:00
Julian Descottes
fa46e23606 Bug 1386412 - fix race conditions in browser_service_workers_multi_content_process.js;r=ochameau
MozReview-Commit-ID: JnvTkmDrbDo

--HG--
extra : rebase_source : 1f310ec7b7556451b65b973e1d6ae2368bb3aa43
2017-08-02 08:35:10 +02:00
Phil Ringnalda
5e2f9b194d 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
17dd07bc88 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
Gabriel Luong
1ebc47776f Bug 1386108 - Update Computed stylesheet to use more specific selectors. r=jdescottes 2017-08-01 20:56:57 -04:00
Nicolas Chevobbe
77e7cd424e Bug 1380709 - Add mochitests and mocha tests to ensure entries are loaded as expected. r=bgrins
This adds several tests to make sure we can expand Sets and Maps entries, and that we manage
those properties in the store as expected.
We also add a stub for a Set object and take this as an opportunity to fix the stub name.

MozReview-Commit-ID: ChhIHKMPINF

--HG--
extra : rebase_source : 89e5216605f77fb3812b3297bb95b6d3fc10de49
2017-08-01 16:27:00 +02:00
Nicolas Chevobbe
11158c5406 Bug 1380709 - Fetch Map/Set entries when expanding the Object Inspector. r=bgrins
Add getObjectEntries and loadObjectEntries as props for the ObjectInspector so
we can display entries on Maps and Sets.

MozReview-Commit-ID: Cy6SjxwclHI

--HG--
extra : rebase_source : 02b4eb11f45f25eab9af7e640939177ab1c0f0fc
2017-08-01 16:17:00 +02:00
Nicolas Chevobbe
862e2bbb0b Bug 1380709 - reps v0.11.0: update reps bundle from GitHub; r=bgrins
MozReview-Commit-ID: 4s5c1wyABS7

--HG--
extra : rebase_source : 0f0e0d7a62e4d6e62ef8eae86dd622c86528373f
2017-08-01 14:45:32 +02:00
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
Brian Grinstead
b927e64748 Bug 1386724 - Force devtools-browser to be loaded in shared-head.js;r=jdescottes
If a devtools entry point isn't hit in a test (toolbox open, keyboard shortcut,
opening the web dev menu, etc), then things like the menu items aren't installed.
This is for performance reasons (Bug 1359855), but it means that some tests
may fail when run alone. Prevent that from happening by forcing devtools to start
up in shared-head.js.

This causes certain tests to fail when run alone if they don't open the tools

MozReview-Commit-ID: ANuUhYXIbSF

--HG--
extra : rebase_source : f8a20a7eabfdbbfe51ecaf2ea8c59a4fcf41e695
2017-08-02 10:08:16 -07:00
Nicolas Chevobbe
f065ad2b7c Bug 1380709 - Add mochitests and mocha tests to ensure entries are loaded as expected. r=bgrins
This adds several tests to make sure we can expand Sets and Maps entries, and that we manage
those properties in the store as expected.
We also add a stub for a Set object and take this as an opportunity to fix the stub name.

MozReview-Commit-ID: ChhIHKMPINF

--HG--
extra : rebase_source : 5aba016c0a231032dc411aa4bd01d059e07ebd79
2017-08-01 16:27:00 +02:00
Nicolas Chevobbe
a9d80db97b Bug 1380709 - Fetch Map/Set entries when expanding the Object Inspector. r=bgrins
Add getObjectEntries and loadObjectEntries as props for the ObjectInspector so
we can display entries on Maps and Sets.

MozReview-Commit-ID: Cy6SjxwclHI

--HG--
extra : rebase_source : df3e2cd1c0be550322953cb6141948b5893a2370
2017-08-01 16:17:00 +02:00
Nicolas Chevobbe
bd22ff789d Bug 1380709 - reps v0.11.0: update reps bundle from GitHub; r=bgrins
MozReview-Commit-ID: 4s5c1wyABS7

--HG--
extra : rebase_source : 2beca009183f64ead0be0935cb6bb40fd64d7b92
2017-08-01 14:45:32 +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
Brian Grinstead
e159a1cd0a Bug 1385157 - Don't focus jsterm if the output region wasn't clicked;r=nchevobbe
MozReview-Commit-ID: Gv60PSFKErD

--HG--
extra : rebase_source : efbb9bcb6090517f80775326a65d955aba79b2fb
2017-07-31 11:57:47 -07:00
J. Ryan Stinnett
965f38d565 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

--HG--
extra : rebase_source : d6113d802d5197c73510ac3fa3b6cfb31d29c609
2017-07-27 17:23:22 -05:00
Alexandre Poirot
5b40217789 Bug 1378863 - Add telemetry probe to track DevTools entry points. r=francois,jdescottes datareview=francois
MozReview-Commit-ID: CvhK7Lvw5oP

--HG--
extra : rebase_source : f9025ba2980694b565e16a2712c37ce4091df4b5
2017-07-06 19:34:10 +02: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
Tom Tromey
9160711a92 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

--HG--
extra : rebase_source : 37d2336bc1dbf5a8fd35d280c349044f1d06cd4c
2017-07-07 12:53:32 -06:00
sole
ef6bb0ce7d Bug 1378857 - Stop using sdk/core/heritage in DevTools server/primitive. r=jdescottes
MozReview-Commit-ID: 2NQ2iSQKB0g

--HG--
extra : rebase_source : 2ff0d303e81ac48c99c470585c17fb7d7a732e51
2017-07-28 17:03:32 +01:00
Alexandre Poirot
779816773e Bug 1385226 - Fix gcli Shift+F12 key shortcut. r=jdescottes
MozReview-Commit-ID: Bcs14MEyHXF

--HG--
extra : rebase_source : 6520d19e9e0bf42ac2dae5e078d212dfde55d289
2017-07-28 11:53:05 +02:00
Sebastian Hengst
bbe32b6bed merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 44WBcWjnVo
2017-07-30 11:19:17 +02:00
Gabriel Luong
ccce97cfc9 Bug 1384976 - Remove the height transition from the pseudo class panel. r=micah 2017-07-30 00:09:50 -04:00