Commit Graph

739 Commits

Author SHA1 Message Date
Towkir Ahmed
fae393a3ce Bug 1301812 - Remove devtools/shared/webaudio.js which was accidentally added by bug 1265732. r=ntim 2016-09-15 10:45:00 -04:00
Greg Tatum
e0ff590488 Bug 1290988 - Take into account prefs for the CSS properties database. r=tromey
This test was causing uplifts to fail because certain CSS properties
were disabled via preferences, and the devtools client and platform were
out of sync with what properties were supported. This test now uses the
preference information to allow in-development features to not break
this test.

MozReview-Commit-ID: 767xRFMHyw9

--HG--
extra : rebase_source : fb775f1e77f94fe506fe7a257a20ec4e4a9271fd
extra : histedit_source : deb70e12dee4c06ae5384360a5c87d6e5e5f75c9
2016-09-14 10:00:27 -05:00
Greg Tatum
af2fa2e8ab Bug 1290988 - Add the mach generate-css-db command. r=tromey, r=chmanchester
Provide a single mach command to automatically generate the static
database of CSS properties that devtools uses for the inspector
and various editors.

MozReview-Commit-ID: 8E2jwxF0KbM

--HG--
rename : devtools/shared/css/moz.build => devtools/shared/css/generated/moz.build
extra : rebase_source : ab1815f321d460886168d95ddb739a579599b8c7
extra : histedit_source : f2bfecdcc128a87abcf3c0284a54c53bdeff1c87
2016-09-14 10:00:27 -05:00
Greg Tatum
1e5a5a50e2 Bug 1290988 - Collect devtools/shared/css-* files into a folder. r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8

--HG--
rename : devtools/shared/css-color-db.js => devtools/shared/css/color-db.js
rename : devtools/shared/css-color.js => devtools/shared/css/color.js
rename : devtools/shared/css-lexer.js => devtools/shared/css/lexer.js
rename : devtools/shared/css-parsing-utils.js => devtools/shared/css/parsing-utils.js
rename : devtools/shared/css-properties-db.js => devtools/shared/css/properties-db.js
extra : rebase_source : 51d8d92db0ae91a7368b109aae9a509ba8012b3f
extra : histedit_source : ee3409615461cba0c656b32fee7f80d4b72a09d1
2016-09-14 10:00:27 -05:00
Carsten "Tomcat" Book
08b3e66490 Merge mozilla-central to autoland 2016-09-15 12:08:47 +02:00
Jan de Mooij
a53986bf29 Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
--HG--
rename : xpcom/base/CycleCollectedJSRuntime.cpp => xpcom/base/CycleCollectedJSContext.cpp
rename : xpcom/base/CycleCollectedJSRuntime.h => xpcom/base/CycleCollectedJSContext.h
extra : rebase_source : 075214b5057f151520926715b6154e99ae80a0b3
2016-09-14 15:47:32 +02:00
Alexandre Poirot
9ad179d431 Bug 1300036 - Update the state correctly on the client side when the server reports a conflict on resume. r=ejpbruel
MozReview-Commit-ID: IK6LXEGXan

--HG--
extra : rebase_source : 7972c629f4e965f1ed1ebe98fcfb95b9bad84885
2016-09-05 10:42:05 -07:00
Tom Tromey
30f5d120ff Bug 1301078 - correctly disable pasted commented-out properties; r=pbro
MozReview-Commit-ID: 97ueaqvYVVN

--HG--
extra : rebase_source : 253428be10e9664693d0818deffbc983ef4c8af0
2016-09-07 11:08:12 -06:00
Sebastian Hengst
d11146270a Backed out changeset 1bca17123507 (bug 1290988) for xpcshell failures (test_rewriteDeclarations.js) and devtools failures (browser_styleeditor_syncAddProperty.js). r=backout
--HG--
rename : devtools/shared/css/color-db.js => devtools/shared/css-color-db.js
rename : devtools/shared/css/lexer.js => devtools/shared/css-lexer.js
rename : devtools/shared/css/properties-db.js => devtools/shared/css-properties-db.js
2016-09-13 17:43:44 +02:00
Sebastian Hengst
1984be4adc Backed out changeset d67ee15cd875 (bug 1290988) 2016-09-13 17:42:29 +02:00
Sebastian Hengst
4232c8be81 Backed out changeset 307a8048995a (bug 1290988) 2016-09-13 17:42:25 +02:00
Sebastian Hengst
b6e73d21b6 Backed out changeset a569d019fd4a (bug 1290988) 2016-09-13 17:41:44 +02:00
Greg Tatum
547f9800a6 Bug 1290988 - Fix require path for devtools/shared/css/lexer to fix dt test failures; a=tomcat-sheriffduty
MozReview-Commit-ID: EVGhNmz5YZD
2016-09-13 07:14:00 +02:00
Greg Tatum
2fedcc9139 Bug 1290988 - Take into account prefs for the CSS properties database; r=tromey
This test was causing uplifts to fail because certain CSS properties
were disabled via preferences, and the devtools client and platform were
out of sync with what properties were supported. This test now uses the
preference information to allow in-development features to not break
this test.

MozReview-Commit-ID: 767xRFMHyw9

--HG--
extra : rebase_source : 55dbe214314f1fbe9933be982cbab7f2952bed85
2016-08-29 11:37:14 -05:00
Greg Tatum
77ecdadfe2 Bug 1290988 - Add the mach generate-css-db command; r=chmanchester,tromey
Provide a single mach command to automatically generate the static
database of CSS properties that devtools uses for the inspector
and various editors.

MozReview-Commit-ID: 8E2jwxF0KbM

--HG--
extra : rebase_source : 2cd21cd08f431ff933c3fd89ebca3e6684fb80f8
2016-08-29 11:35:52 -05:00
Greg Tatum
da1990f19b Bug 1290988 - Collect devtools/shared/css-* files into a folder; r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8

--HG--
rename : devtools/shared/css-color-db.js => devtools/shared/css/color-db.js
rename : devtools/shared/css-lexer.js => devtools/shared/css/lexer.js
rename : devtools/shared/css-properties-db.js => devtools/shared/css/properties-db.js
extra : rebase_source : b73bbe7fcf8177a25b41ecdd6d6c760ed1472fb7
2016-08-29 11:02:34 -05:00
Phil Ringnalda
f7102d808c Merge f-t to m-c, a=merge 2016-09-10 00:13:41 -07:00
Matteo Ferretti
7d9ef479e9 Bug 1254385 - Apply dPR from selected device; r=jryans
- dPR and media queries are now reflecting the selected device's dppx
- added unit test

MozReview-Commit-ID: 9634mleTwkS
2016-08-31 09:58:26 +02:00
Carsten "Tomcat" Book
e3c2ddf887 Merge mozilla-central to mozilla-inbound 2016-09-08 12:42:45 +02:00
Carsten "Tomcat" Book
f4a16a723a merge mozilla-inbound to mozilla-central a=merge 2016-09-08 12:01:17 +02:00
Brian Grinstead
61d266e2c8 Bug 1298230 - Use a more descriptive Syntax Error when querySelector / querySelectorAll fails;r=bz
MozReview-Commit-ID: DtIlA8ocMh0
2016-08-31 15:31:59 -07:00
Thomas Wisniewski
2b28c5e2a9 Bug 1069012 - Unprefix ::placeholder pseudo-element. r=bz 2016-09-07 19:38:38 -04:00
Thomas Wisniewski
dadce88a58 Bug 918751 - Throw NetworkErrors instead of failures where appropriate for some XHR web platform tests. r=bz, r=keeler, r=Mossop, r=paul
--HG--
extra : rebase_source : 2d454dd6f7f66b0b2df44f6f4ce3740d8f6de04c
2016-09-03 18:45:08 -04:00
Nicholas Nethercote
34dcc7b852 Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.

In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.

> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));

In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.

> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");

This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
  be true" sense used in assertions.

A common variation on the side-effect-free case is the following.

> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");

--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Tom Tung
c34ee7095c Bug 1187335 - P1 - Add a way to report error to all clients for ServiceWorker and SharedWorker. r=bkelly. 2016-05-23 14:56:46 +08:00
Shubheksha Jalan
f5d14333b5 Bug 1295080 - Add WebSocket option to GCLI 'listen' command r=jsnajdr
MozReview-Commit-ID: GooqxVgg6iY

--HG--
extra : rebase_source : 6fb87d1ee9d4b096e95f954a270ec3f1b824107e
2016-09-09 18:28:31 +05:30
Alexandre Poirot
0e07d87062 Bug 1298082 - Various cleanups to use helpers. r=jryans
MozReview-Commit-ID: EwtA2K00EaM

--HG--
extra : rebase_source : a97a380d413f1a84077ba7bb1250e49af3284825
2016-08-25 05:50:44 -07:00
Julian Descottes
eb9d96f3b2 Bug 1299070 - Merge all startup strings in startup.properties;r=bgrins
MozReview-Commit-ID: 99zWNTHid21

--HG--
extra : rebase_source : e2b93c222d025a3d655d9e436a3d2935dd75312f
2016-09-02 17:45:22 +02:00
Julian Descottes
23f5b2f6e9 Bug 1299070 - Move l10n.ELLIPSIS behind getter;r=bgrins
This avoids loading the ellipsis properties file on browser startup.

MozReview-Commit-ID: 8lfAeltfn10

--HG--
extra : rebase_source : 11995c31fb4c9238777348e0c13b07888dd3ab0c
2016-09-01 16:26:09 +02:00
Alexandre Poirot
3ccb636ac8 Bug 1243452 - Make DebuggerClient.close return a Promise. r=jryans
MozReview-Commit-ID: 26PNAS431Hc

--HG--
extra : rebase_source : 77dbf9db6dd94a609708862eb59b962c7aaef82d
2016-08-31 09:39:42 -07:00
Julian Descottes
883018c211 Bug 1294186 - Create localization helper for markup using data-localization attributes;r=bgrins
Create a helper designed to localize markup containing specific localization atttributes
(see the jsdoc in l10n.js)

MozReview-Commit-ID: 4ThyI1DaLQS

--HG--
extra : rebase_source : 3cb6620964c0dc27a348d4e85f93d437c2ad5d08
2016-08-30 21:40:28 +02:00
Julian Descottes
fb5906a208 Bug 1294186 - Add memoized getter for properties files in l10n.js;r=bgrins
Localization properties files should not change during a session. To allow
callers to easily localize strings without having to instanciate LocalizationHelper
objects, we should cache the already required properties files.

This will for now only be used internally by the LocalizationHelper as well as
by the markup localization utility. But we could now use this to provide static
localization methods.

MozReview-Commit-ID: 85agGNJlIk9

--HG--
extra : rebase_source : 55ef18f371fa474e575ddc15d8e3b89ceca95d6b
2016-08-25 11:22:37 +02:00
Greg Tatum
4060bbdcb1 Bug 1289425 - Allow sourceeditor to fallback to client-side css properties; r=tromey
MozReview-Commit-ID: Khak8Av1v67

--HG--
extra : rebase_source : 6d117087a34320fd7bbb7ea540b218ac78018566
2016-08-12 15:01:42 -05:00
Greg Tatum
cce5c3c6ef Bug 1289425 - Remove domUtils from the InplaceEditor; r=tromey
MozReview-Commit-ID: D9thpWSNwKC

--HG--
extra : rebase_source : b11d3b8bc1f4c3b4777386e93dc03cee07508f86
2016-08-05 11:40:51 -05:00
Greg Tatum
a17cc41d63 Bug 1289425 - Add a getClientCssProperties method to the CssProperties; r=tromey
This creates an easy interface for getting the static css database, and
splits up the initCssProperties function into smaller re-usable parts.

MozReview-Commit-ID: G86bNy3KQDp

--HG--
extra : rebase_source : 608df38114de31320594516ca776cc35ddb6ee8e
2016-08-04 15:16:16 -05:00
Tom Tromey
ae1f9fd8ec Bug 1297890 - don't allow token pasting in parseDeclarations; r=pbro
MozReview-Commit-ID: ASs3ldqxMoI

--HG--
extra : rebase_source : e6ddf2633ec734b931959e07abb2b12950e7b49a
2016-08-29 08:16:22 -06:00
Julian Descottes
e3e39edefd Bug 1265887 - migrate devtools/ from PluralForm.jsm to plural-form.js;r=tromey
MozReview-Commit-ID: 7I7djgqcrnr

--HG--
extra : rebase_source : 2129e97e6f23dd5af2281f68e546c0143bce5878
extra : histedit_source : be83b5f61ee021a6ab1566f21db4262e2175951a
2016-08-27 18:42:33 +02:00
Julian Descottes
0119deafa0 Bug 1265887 - port PluralForm.jsm to plural-form.js without chrome APIs;r=tromey
MozReview-Commit-ID: GpGFgtdnzek

--HG--
extra : rebase_source : 0ce54b2809c83a9dad4cc27f7adb0e52f4ad0c75
extra : histedit_source : b8f28a3865f0f25379efbecda657f3354551d6ce
2016-08-29 12:17:42 +02:00
Julian Descottes
354cf4d6b8 Bug 1295608 - Migrate devtools/shared to use l10n.js instead of Services.string;r=tromey
I explicitly did not migrate the localizations of the external properties file brand.properties.
This should be handled as part of Bug 1297733.

MozReview-Commit-ID: JXomOmr37xV

--HG--
extra : rebase_source : 0a4e25ba76748e159e389a7b6d42f6cf82d412aa
extra : intermediate-source : 44b1e19c5f2fc03d54ecba9507c30df4caff343f
extra : source : 2eee0a90aa25cae44f5bd1fb5c4d60438a6ceb54
2016-08-26 15:01:52 +02:00
Julian Descottes
f9242cf775 Bug 1298012 - Use a shared locale file for ellipsis character;r=bgrins
MozReview-Commit-ID: 2LuirHIMiUt

--HG--
extra : rebase_source : 1b78185c4e524268a869e1dd669a4103629301c1
2016-08-26 15:16:44 +02:00
Julian Descottes
fa1078eae2 Bug 1298012 - move l10n.js from devtools/client/shared to devtools/shared;r=bgrins
MozReview-Commit-ID: 1HX0g7AoJwt

--HG--
rename : devtools/client/shared/l10n.js => devtools/shared/l10n.js
rename : devtools/client/shared/vendor/NODE_PROPERTIES_UPGRADING => devtools/shared/node-properties/UPGRADING.md
rename : devtools/client/shared/vendor/node-properties.js => devtools/shared/node-properties/node-properties.js
rename : devtools/client/shared/vendor/SPRINTF_JS_UPGRADING => devtools/shared/sprintfjs/UPGRADING.md
rename : devtools/client/shared/vendor/sprintf.js => devtools/shared/sprintfjs/sprintf.js
extra : rebase_source : 9ace2a98a0a158db502087954775971dc962a168
extra : intermediate-source : 69f9cf04d5c89d498a589e03dee73217c4adec7d
extra : source : 6b4cada962aaa543279112b01ed800f3ca9315e4
2016-08-25 17:51:42 +02:00
Ethan Lin
68fc39b139 Bug 1294660: Part 3 - regenerate CSS_PROPERTIES list in devtools/shared/css-properties-db.js. r=tromey
MozReview-Commit-ID: 8jrTcf1IwSf

--HG--
extra : rebase_source : a2856c1ef5531f4939506a86cb79771b00d1a504
2016-08-02 02:57:00 +08:00
Ryan VanderMeulen
bfdd703c49 Merge fx-team to m-c. a=merge 2016-08-25 08:12:26 -04:00
Wes Kocher
9568f52562 Backed out 4 changesets (bug 1294660) for Windows reftest failures a=backout CLOSED TREE
Backed out changeset df48165b6b64 (bug 1294660)
Backed out changeset 617e22a259ab (bug 1294660)
Backed out changeset 06f05485b3fd (bug 1294660)
Backed out changeset 41225d00af33 (bug 1294660)
2016-08-24 16:00:02 -07:00
Ryan VanderMeulen
0027f8ea40 Merge m-c to fx-team. a=merge 2016-08-24 09:11:58 -04:00
Ryan VanderMeulen
44f6964ba9 Merge fx-team to m-c. a=merge 2016-08-24 09:04:42 -04:00
Patrick Brosset
fc07e38ecd Bug 1295008 - Hide the previous eyedropper when we request to show a new one; r=miker
The eyedropper can be shown in 2 distinct ways:
- the 'eyedropper' gcli command can be called (from the dev toolboar
  or from the browser devtools menu),
- or the inspector's 'pickColorFromPage' method can be called (from
  the inspector toolbar or from the color-picker in the ruleview).

Before this change, it was possible to show several eyedropper because
these 2 codepaths didn't know about each other.
Now, when executing the gcli command, the inspector's
'cancelPickColorFromPage' method is called to hide it first.
And, when the 'pickColorFromPage' method is called, the 'eyedropper --hide'
gcli command is called too.

This way, there's only one eyedropper shown.

There was also a problem where the gcli command would create a new
eyedropper everytime it was called. This was fixed too, by maintaining a
WeakMap of all eyedroppers opened so far.

MozReview-Commit-ID: F6fBP5R7ZTJ

--HG--
extra : rebase_source : f04bbf224ced7b93b4e5b0c42662731ecc58cb58
2016-08-24 10:29:49 +02:00
Ruturaj K. Vartak
6ccb774972 Bug 1273760 - Blocking state in Network Monitor. r=jsnajdr 2016-08-22 07:05:00 -04:00
Tom Tromey
8cfae2d757 Bug 1244227 - Add an API to enable throttling. r=Honza
MozReview-Commit-ID: BirjFHVSZN7
2016-08-23 07:36:52 -06:00
Tom Tromey
e660321898 Bug 1244227 - Properly report throttled network timing. r=Honza
MozReview-Commit-ID: BCJLSRGS0vE
2016-08-23 07:36:52 -06:00