Commit Graph
733 Commits
Author SHA1 Message Date
Alexandre Poirot 055cbd96c1 Bug 1300036 - Update the state correctly on the client side when the server reports a conflict on resume. r=ejpbruel
MozReview-Commit-ID: IK6LXEGXan
2016-09-05 10:42:05 -07:00
Sebastian Hengst 93c9c62451 Backed out changeset 1bca17123507 (bug 1290988) for xpcshell failures (test_rewriteDeclarations.js) and devtools failures (browser_styleeditor_syncAddProperty.js). r=backout 2016-09-13 17:43:44 +02:00
Sebastian Hengst 29a22a7f35 Backed out changeset d67ee15cd875 (bug 1290988) 2016-09-13 17:42:29 +02:00
Sebastian Hengst 2eae176128 Backed out changeset 307a8048995a (bug 1290988) 2016-09-13 17:42:25 +02:00
Sebastian Hengst da287e9754 Backed out changeset a569d019fd4a (bug 1290988) 2016-09-13 17:41:44 +02:00
Greg Tatum 0631dc324f 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 7858518680 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
2016-08-29 11:37:14 -05:00
Greg Tatum 30eeae938c 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
2016-08-29 11:35:52 -05:00
Greg Tatum 36e0a1b1fa 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
2016-08-29 11:02:34 -05:00
Tom Tromey 656c47ee51 Bug 1301078 - correctly disable pasted commented-out properties; r=pbro
MozReview-Commit-ID: 97ueaqvYVVN
2016-09-07 11:08:12 -06:00
Phil Ringnalda dc754e0234 Merge f-t to m-c, a=merge 2016-09-10 00:13:41 -07:00
Matteo Ferretti 23614cda77 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 31cc011b59 Merge mozilla-central to mozilla-inbound 2016-09-08 12:42:45 +02:00
Carsten "Tomcat" Book 9c3068b78c merge mozilla-inbound to mozilla-central a=merge 2016-09-08 12:01:17 +02:00
Brian Grinstead 41cc5b3ef3 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 e3967a6e44 Bug 1069012 - Unprefix ::placeholder pseudo-element. r=bz 2016-09-07 19:38:38 -04:00
Thomas Wisniewski a1a4c002e4 Bug 918751 - Throw NetworkErrors instead of failures where appropriate for some XHR web platform tests. r=bz, r=keeler, r=Mossop, r=paul 2016-09-03 18:45:08 -04:00
Nicholas Nethercote b5810a1eb4 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");
2016-09-02 17:12:24 +10:00
Tom Tung 1f61d7f9c3 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 1c465fe212 Bug 1295080 - Add WebSocket option to GCLI 'listen' command r=jsnajdr
MozReview-Commit-ID: GooqxVgg6iY
2016-09-09 18:28:31 +05:30
Alexandre Poirot 5a92c204eb Bug 1298082 - Various cleanups to use helpers. r=jryans
MozReview-Commit-ID: EwtA2K00EaM
2016-08-25 05:50:44 -07:00
Julian Descottes 170815be25 Bug 1299070 - Merge all startup strings in startup.properties;r=bgrins
MozReview-Commit-ID: 99zWNTHid21
2016-09-02 17:45:22 +02:00
Julian Descottes 90e8359da1 Bug 1299070 - Move l10n.ELLIPSIS behind getter;r=bgrins
This avoids loading the ellipsis properties file on browser startup.

MozReview-Commit-ID: 8lfAeltfn10
2016-09-01 16:26:09 +02:00
Alexandre Poirot b38e2f3feb Bug 1243452 - Make DebuggerClient.close return a Promise. r=jryans
MozReview-Commit-ID: 26PNAS431Hc
2016-08-31 09:39:42 -07:00
Julian Descottes 05cfa367ef 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
2016-08-30 21:40:28 +02:00
Julian Descottes 6b74c326ac 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
2016-08-25 11:22:37 +02:00
Greg Tatum 88c911b2cd Bug 1289425 - Allow sourceeditor to fallback to client-side css properties; r=tromey
MozReview-Commit-ID: Khak8Av1v67
2016-08-12 15:01:42 -05:00
Greg Tatum 696677b27c Bug 1289425 - Remove domUtils from the InplaceEditor; r=tromey
MozReview-Commit-ID: D9thpWSNwKC
2016-08-05 11:40:51 -05:00
Greg Tatum 325bdacd3c 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
2016-08-04 15:16:16 -05:00
Tom Tromey 8191613ead Bug 1297890 - don't allow token pasting in parseDeclarations; r=pbro
MozReview-Commit-ID: ASs3ldqxMoI
2016-08-29 08:16:22 -06:00
Julian Descottes 2283f05cf3 Bug 1265887 - migrate devtools/ from PluralForm.jsm to plural-form.js;r=tromey
MozReview-Commit-ID: 7I7djgqcrnr
2016-08-27 18:42:33 +02:00
Julian Descottes 2ffcf17cff Bug 1265887 - port PluralForm.jsm to plural-form.js without chrome APIs;r=tromey
MozReview-Commit-ID: GpGFgtdnzek
2016-08-29 12:17:42 +02:00
Julian Descottes ea152e80ca 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
2016-08-26 15:01:52 +02:00
Julian Descottes ff511674e3 Bug 1298012 - Use a shared locale file for ellipsis character;r=bgrins
MozReview-Commit-ID: 2LuirHIMiUt
2016-08-26 15:16:44 +02:00
Julian Descottes cf076aa03b Bug 1298012 - move l10n.js from devtools/client/shared to devtools/shared;r=bgrins
MozReview-Commit-ID: 1HX0g7AoJwt
2016-08-25 17:51:42 +02:00
Ethan Lin 773c8d0884 Bug 1294660: Part 3 - regenerate CSS_PROPERTIES list in devtools/shared/css-properties-db.js. r=tromey
MozReview-Commit-ID: 8jrTcf1IwSf
2016-08-02 02:57:00 +08:00
Ryan VanderMeulen 4769e9643c Merge fx-team to m-c. a=merge 2016-08-25 08:12:26 -04:00
Wes Kocher 17b6ec3771 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 c5f2f788ca Merge m-c to fx-team. a=merge 2016-08-24 09:11:58 -04:00
Ryan VanderMeulen 6ee104ada6 Merge fx-team to m-c. a=merge 2016-08-24 09:04:42 -04:00
Patrick Brosset 8f123f570d 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
2016-08-24 10:29:49 +02:00
Ruturaj K. Vartak cbd776d013 Bug 1273760 - Blocking state in Network Monitor. r=jsnajdr 2016-08-22 07:05:00 -04:00
Tom Tromey 070522efed Bug 1244227 - Add an API to enable throttling. r=Honza
MozReview-Commit-ID: BirjFHVSZN7
2016-08-23 07:36:52 -06:00
Tom Tromey c4bb086d73 Bug 1244227 - Properly report throttled network timing. r=Honza
MozReview-Commit-ID: BCJLSRGS0vE
2016-08-23 07:36:52 -06:00
Tom Tromey ebe3b790e3 Bug 1244227 - Add network throttling. r=Honza
MozReview-Commit-ID: Iy6buFxUrGg
2016-08-23 07:36:52 -06:00
Tom Tromey 2d2e269455 Bug 1244227 - NetworkResponseListener does not need to implement nsIInterfaceRequestor. r=Honza
MozReview-Commit-ID: 9TMlmdjQWLL
2016-08-23 07:36:52 -06:00
Tim Nguyen 98306db559 Bug 1254386 - Move custom UA emulation to emulation actor. r=jryans
MozReview-Commit-ID: 9005ktskEVk
2016-08-23 01:51:16 -07:00
Ethan Lin dde1e68cc1 Bug 1294660: Part 3 - regenerate CSS_PROPERTIES list in devtools/shared/css-properties-db.js. r=tromey
MozReview-Commit-ID: AX7hjbl01kL
2016-08-24 17:02:31 +02:00
Ryan VanderMeulen 65e0550627 Merge m-c to inbound. a=merge 2016-08-24 09:09:05 -04:00
Sebastian Hengst e3b8143be4 Backed out changeset ade443e64557 (bug 1294660) 2016-08-24 13:19:26 +02:00