Commit Graph

544 Commits

Author SHA1 Message Date
Wes Kocher
6517ee3462 Backed out 6 changesets (bug 1244227) for m(cl) failures
Backed out changeset 0cf1259b7073 (bug 1244227)
Backed out changeset d5866b9dd3d9 (bug 1244227)
Backed out changeset 49b5309e3415 (bug 1244227)
Backed out changeset 33bc49f015a7 (bug 1244227)
Backed out changeset f680f6460f07 (bug 1244227)
Backed out changeset 5a4bb3258978 (bug 1244227)
2016-07-22 13:32:37 -07:00
Tom Tromey
4f245dd44f Bug 1244227 - Add an API to enable throttling. r=Honza
MozReview-Commit-ID: BirjFHVSZN7

--HG--
extra : transplant_source : J%98f%AD%0C%80%3B%0D%23%89%5D/%F2He%CC%B95Np
2016-03-01 11:13:41 -07:00
Patrick Brosset
f9d2dc2d7d Bug 1262439 - 5 - Move eyedropper btn to inspector and update gcli command; r=bgrins
This moves the eyedropper button from the toolbar into the inspector,
therefore the old eyedropper command isn't needed anymore,
or at least not as it was.
The button in the inspector simply uses the pickColorFromPage inspector
actor method.
And to preserve a eyedropper gcli command, a new simpler one was added.

MozReview-Commit-ID: B1yr1EqLFBD

--HG--
extra : rebase_source : 47c2effe193f4d1a64a8d16ea3609ff5ae1f793b
2016-07-20 16:06:42 +02:00
Patrick Brosset
4b2d233450 Bug 1262439 - 3 - inspector and eye-dropper eslint cleanup; r=me
MozReview-Commit-ID: KZsd47QSvue

--HG--
extra : rebase_source : fb6b4feec4be295cb4494be66d0b188d6b538579
2016-06-06 15:11:27 +02:00
Patrick Brosset
968dc79025 Bug 1262439 - 2 - Add a new pickColor inspector method to use the new eye-dropper highlighter; r=bgrins
The inspector actor now has a new method that can be used to pick a
color from the page. This method just instantiates the eye-dropper
highlighter and shows it on the page.
The method doesn't return the color because this requires user interaction.
Instead, it returns immediately and an event is sent later, when the user
has selected a color or escaped.

MozReview-Commit-ID: cjadLyNXQd

--HG--
extra : rebase_source : 392a3cbfce7b81518cd7e4c90a44bae17d96e8de
2016-07-20 16:07:04 +02:00
Patrick Brosset
d2cc90ec24 Bug 1262439 - 1 - Introduce a new eye-dropper highlighter; r=zer0
This is mostly porting code from the XUL eye-dropper over to a new
highlighter file.
While I have tested this locally, this highlighter isn't yet used
in devtools.
This will come in later patches.

MozReview-Commit-ID: IF0puLu5Yc7

--HG--
rename : devtools/client/shared/css-color-db.js => devtools/shared/css-color-db.js
rename : devtools/client/shared/css-color.js => devtools/shared/css-color.js
extra : rebase_source : 72431a9148d1c688987a5693a619769837c774c7
2016-07-21 14:35:14 +02:00
Carsten "Tomcat" Book
336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Carsten "Tomcat" Book
53b9562c23 merge fx-team to mozilla-central a=merge 2016-07-22 11:56:37 +02:00
Greg Tatum
03144dabc5 Bug 1286232 - Add scripts and tests to automate the css-properties-db. r=pbro
--HG--
extra : rebase_source : b24ee31a2563e25ef46cb8068255f4e8ae4ffb13
2016-07-21 06:54:00 -04:00
Carsten "Tomcat" Book
4a64baa9d4 merge mozilla-inbound to mozilla-central a=merge 2016-07-21 16:24:36 +02:00
Carsten "Tomcat" Book
ac018ea603 merge fx-team to mozilla-central a=merge 2016-07-21 16:23:11 +02:00
Eddy Bruel
34cdf87c79 Bug 1265727 - Decouple EventLoopLagFront from EventLoopActor. r=fitzgen 2016-07-21 12:52:30 +02:00
Tim Huang
2107711fca Bug 1287607 - Making the stylesheets editor using the system principal to load CSS files from 'chrome://' URL. r=gl 2016-07-19 17:39:00 +02:00
Jaideep Bhoosreddy
55e61dc998 Bug 670002 - Use source maps in the web console w/ performance issues; r=jsantell
--HG--
rename : devtools/client/framework/source-location.js => devtools/client/framework/source-map-service.js
2016-07-20 19:09:00 +02:00
Wes Kocher
b79af22444 Backed out changeset aab8baf2c5f5 (bug 670002) for eslint failures
--HG--
rename : devtools/client/framework/source-map-service.js => devtools/client/framework/source-location.js
2016-07-20 12:56:46 -07:00
James Long
6ab69d6827 Bug 1238173 - remove ScriptStore in use findScripts in debugger r=fitzgen 2016-07-20 14:57:13 -04:00
Jaideep Bhoosreddy
8f73e01607 Bug 670002 - Use source maps in the web console w/ performance issues. r=jsantell
--HG--
rename : devtools/client/framework/source-location.js => devtools/client/framework/source-map-service.js
2016-07-20 00:40:00 -04:00
Patrick Brosset
f4f658ae9a Bug 1287042 - Always before/after CSS rules in rule-view; r=bgrins
::before and ::after pseudo-elements are visible in the markup-view today
but if, for some reason, they aren't generated, we still want to know that
the CSS rule exists.
This may happen if you use display:none on the pseudo-element CSS rule itself.
When that happens, the pseudo-element won't be generated and therefore there
will be no possibility to see the rule in the rule-view (you'd have to go to
the style-editor for that).
This change keeps the pseudo-elements in the markup-view, but also adds the
corresponding CSS rules in the rule-view.

MozReview-Commit-ID: tx5IpmtE7b

--HG--
extra : rebase_source : 19979672561e55fc5713900b83dd6d40ac33d2a3
2016-07-18 17:15:05 +02:00
Joseph Yeh
711bee9e8d Bug 1274609 - Replace uses of Ci.nsIDOMNodeFilter constants. r=jlongster
MozReview-Commit-ID: 1OeiMaVZ7tm

--HG--
extra : rebase_source : ed4d3809d97fd1c1a6661ad30b9f9d0d868fbea2
2016-07-11 20:28:00 +02:00
Carsten "Tomcat" Book
ca457776f8 merge mozilla-inbound to mozilla-central a=merge 2016-07-18 17:07:59 +02:00
Carsten "Tomcat" Book
779d97cbaf Backed out changeset a80fdfc128b0 (bug 911216) for high crash-rate on developers - RyanVM request 2016-07-18 16:14:59 +02:00
Carsten "Tomcat" Book
a0992595d6 merge mozilla-inbound to mozilla-central a=merge 2016-07-17 10:08:08 +02:00
Till Schneidereit
3a9eed06fe Bug 911216 - Part 30: Enable SpiderMonkey Promise implementation. r=bz,efaust,bholley,Paolo,tromey,shu
Also contains folded version of the following patches that have to land at the same time with enabling the new implementation (or be backed out at the same time, if it comes to that):

Add Promise checks to test_xrayToJS.xul. r=bholley
Change Promise debugger hook tests to use Promise ctor instead of makeFakePromise. r=shu
Change DOM interface tests to assume Promise is an ES builtin, not a DOM one. r=bz
Remove some PromiseDebugging references. r=bz
Adapt promise rejections test to new xray-unwrapping error. r=bz
Fix expectations in browser_timelineMarkers tests. r=tromey
2016-07-16 15:05:12 +02:00
Jason Laster
ae5b9e5663 Bug 1286390 - Add sourceMapURL to source actor form. r=jlongster 2016-07-12 14:40:00 -04:00
Dalimil Hajek
fa37099930 Bug 1220388 - Element highlighter tooltip doesn't display element's size if it has long ID / firefox window is narrow. r=zer0
MozReview-Commit-ID: AzKGhr9BssN
2016-07-05 12:38:00 +02:00
Greg Tatum
180f6e66ec Bug 1265785 - replace uses of inIDOMUtils.getCSSPseudoElementNames r=pbro 2016-07-12 06:45:00 +02:00
Alexandre Poirot
a3822bd122 Bug 1281726 - Emit TabActor.tabDetached whenever the actor is detached. r=jryans 2016-07-13 23:34:17 -07:00
Alexandre Poirot
213ad20a2e Bug 1281726 - Support TabActor.getTab against mozbrowser iframes. r=jryans 2016-07-13 23:34:17 -07:00
Till Schneidereit
f8bc4fae19 Bug 911216 - Part 30: Enable SpiderMonkey Promise implementation. r=bz,efaust,bholley,Paolo,tromey,shu
Also contains folded version of the following patches that have to land at the same time with enabling the new implementation (or be backed out at the same time, if it comes to that):

Add Promise checks to test_xrayToJS.xul. r=bholley
Change Promise debugger hook tests to use Promise ctor instead of makeFakePromise. r=shu
Change DOM interface tests to assume Promise is an ES builtin, not a DOM one. r=bz
Remove some PromiseDebugging references. r=bz
Adapt promise rejections test to new xray-unwrapping error. r=bz
Fix expectations in browser_timelineMarkers tests. r=tromey
2016-07-21 12:06:30 +02:00
Tim Huang
d0bc82231f Bug 1282660 - Part 1 : Make the devtools uses nodePrincipal instead of the system principal when fetching stylesheets. r=gl 2016-07-13 02:37:00 +02:00
Jarda Snajdr
3a9649172e Bug 1285638 - Network monitor leaks window when a parent-side tab is closed. r=ochameau 2016-07-10 10:37:00 +02:00
Ian Moody
02176c6da3 Bug 1285253 - Change incorrect "text-anchor: left" to "start". r=jdescottes
Also fix a typo in a comment, "Rules" -> "Rulers"

MozReview-Commit-ID: Gy5k3TR9JDM

--HG--
extra : transplant_source : i%15%1B%A1L%F9%B9%23%CC%F70u%0AT%0C%B4%27m%B2%DF
2016-07-07 13:48:16 +01:00
Joseph Yeh
2c7f0d073f Bug 1236283 - Don't mistake <embed> and <object> as having 1 child node when they don't contain anything. r=pbro
MozReview-Commit-ID: B7bEOP63yxT

--HG--
extra : source : 3468f546b0858d798b57d2bb020fcd309c154c48
2016-07-05 00:52:00 +02:00
Ian Moody
86d55a0b62 Bug 1171614 - Add a test for data-URI images to test_inspector_getImageData.html, and check that the server is being truthful about resizing. r=jdescottes
Also tidy up the HTML a bit by removing errant <img> close tags

MozReview-Commit-ID: 4cmtW1S2BI8

--HG--
extra : transplant_source : %26%E6%FE%BB%FE%2A%CCG%E0%27%3B%3DYK%2BP%E7%9D%C7%C9
2016-07-01 18:31:22 +01:00
Ian Moody
93ef07dcad Bug 1171614 - Make server inspector actor only return data-URIs as-is if they are smaller than maxDim. r=jdescottes
MozReview-Commit-ID: Hw0K8ZA79eG

--HG--
extra : transplant_source : %CA%F1T%00%23%F9%FC%A6b%BB%D7%E3%E8%E9%26%2A%F3.%02%12
2016-07-07 12:13:49 +01:00
Rex Lee
d807a8a63e Bug 1261133 - Use pseudoClass for style editor transition. r=dbaron, r=pbro
MozReview-Commit-ID: Ck5JTXRR0mp

--HG--
extra : transplant_source : %95%0CQ%14%20%F0f%B84%E2%82%82%AB%F51%87%29%9EqL
2016-05-23 19:55:54 +08:00
Carsten "Tomcat" Book
2f13468501 Backed out changeset 52434d177be3 (bug 1171614) for test failures in clipboard tests 2016-07-07 08:39:18 +02:00
Carsten "Tomcat" Book
6f0f8498d5 Backed out changeset 0dafaad484d4 (bug 1171614) 2016-07-07 08:39:01 +02:00
Carsten "Tomcat" Book
14d35809ca Backed out changeset 3468f546b085 (bug 1236283) 2016-07-07 08:39:00 +02:00
Joseph Yeh
00e7b0da9e Bug 1236283 - Don't mistake <embed> and <object> as having 1 child node when they don't contain anything; r=pbro
MozReview-Commit-ID: B7bEOP63yxT
2016-07-05 00:52:00 +02:00
Ian Moody
aa6717f177 Bug 1171614 - Add a test for data-URI images to test_inspector_getImageData.html, and check that the server is being truthful about resizing r=jdescottes
Also tidy up the HTML a bit by removing errant <img> close tags

MozReview-Commit-ID: 4cmtW1S2BI8

--HG--
extra : transplant_source : %D3g%9B%CD%16%98E%18%F0%7F%2C%B9%09%19%EB%88L%E4%18%07
2016-07-01 18:31:22 +01:00
Ian Moody
7fcd8d58b7 Bug 1171614 - Remove the special path for data-URI images from the server inspector actor r=jdescottes
MozReview-Commit-ID: 2tWleM1wH1G

--HG--
extra : transplant_source : %1B%84h.g%9D%C4%E8S%C6%3F%C3s%B9OoA%84%7D.
2016-07-01 18:28:36 +01:00
Nick Fitzgerald
7b0a1f6dee Bug 1261869 - Fix leaks in devtools; r=ejpbruel
There are two leaks addressed in this commit:

1. The thread actor's `_debuggerSourcesSeen` set was never cleared. This set
exists only as a performance optimization to speed up `_addSource` in cases
where we've already added the source. Unfortunately, this set wasn't getting
cleared when we cleared debuggees out and it ended up keeping the
`Debugger.Source`, its referent, and transitively its referent's global alive. I
figured it was simpler to make it a `WeakSet` than to add it as a special case
in `ThreadActor.prototype._clearDebuggees` and manage the lifetimes by hand. I
think this fits well with its intended use as an ephemeral performance
optimization.

2. Due to a logic error, we were not clearing debuggees in the memory actor's
`Debugger` instance on navigations. This isn't really a "proper" leak, in that
if you forced a GC, the old debuggees would go away as `Debugger` holds them
weakly, however if there was no GC between navigations, then you could still see
the old windows (and everything they "retained") as roots in the snapshot. This
issue is straightforward to fix once identified: ensure that `_clearDebuggees`
is actually called on navigation.

Finally, this commit adds a test that we don't leak Window objects when devtools
are open and we keep refreshing a tab. When it fails, it prints out the leaking
window's retaining paths.
2016-07-06 08:37:57 -07:00
Sebastin Santy
a7c7bee82f Bug 1235062 - Set some highlighter CSS properties to initial values to avoid content CSS leaking; r=pbro 2016-07-05 02:16:00 +02:00
Brian Grinstead
c2b0564d87 Bug 1283641 - Dont use a missing localized string when changing context in webconsole;r=dolske
MozReview-Commit-ID: 90Wce7yMG8M
2016-07-05 16:21:26 -07:00
Eddy Bruel
d98fe32356 Bug 1265727 - Decouple FramerateFront from FramerateActor;r=fitzgen 2016-07-04 17:50:30 +02:00
Jarda Snajdr
c8316a5361 Bug 1231445 - Part 3: Support for removing IndexedDB records in storage inspector r=mratcliffe 2016-07-04 04:10:00 +02:00
Jarda Snajdr
23366bd7b8 Bug 1231445 - Part 2: Change format of stores-cleared event data to support clearing any store r=mratcliffe 2016-07-04 04:09:00 +02:00
Jarda Snajdr
7d691d831b Bug 1194208 - Remove storage inspector stores-reloaded event. r=mratcliffe 2016-07-04 02:48:00 +02:00
Jarda Snajdr
1071446650 Bug 1283800 - Storage inspector throws unhandled exception trying to access localStorage on about:home r=mratcliffe
MozReview-Commit-ID: D5EVRMk8zEG
2016-07-01 06:26:00 +02:00