Commit Graph
714 Commits
Author SHA1 Message Date
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
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
Ethan Lin bf49b26006 Bug 1294660: Part 3 - regenerate CSS_PROPERTIES list in devtools/shared/css-properties-db.js. r=tromey
MozReview-Commit-ID: AX7hjbl01kL
2016-08-02 02:57:00 +08:00
Julian Descottes dfdeb92a2a Bug 1294220 - part4: Add chrome:// protocol when loading raw properties files;r=tromey
MozReview-Commit-ID: HJfFoqNso2J
2016-08-20 20:31:53 +02:00
1fb1f4df56 Bug 1295171 - Fix eslint errors from previous patch. r=me 2016-08-22 17:33:21 +02:00
fbdb0dae94 Bug 1295171 - Reintroduce the old Actor/FrontClass constructors. r=jryans
Heintroduce the old Actor/FrontClass constructors.
2016-08-22 16:25:57 +02:00
Kershaw Chang b981b6bd3e Bug 1295309 - Add isTopLevelLoad attribute in nsILoadInfo. r=billm 2016-08-21 21:46:09 -04:00
Wes Kocher 2d34b40ea3 Merge inbound to central, a=merge 2016-08-19 18:16:20 -07:00
J. Ryan Stinnett 62f457fd9a Bug 1240912 - Add browser swap support to multiprocess actors. r=ochameau
Watch for browser swap events and update the message manager as necessary for
each of the actors that use the `setupInParent` multiprocess functionality.

MozReview-Commit-ID: HPibSONSYk4
2016-08-19 10:01:33 -05:00
J. Ryan Stinnett 63f54ad6ac Bug 1240912 - Convert Network Monitor to setupInParent. r=ochameau
MozReview-Commit-ID: 2fqsnR7IMWO
2016-08-19 10:01:32 -05:00
J. Ryan Stinnett 7d8e5ce4dc Bug 1240912 - NetworkMonitorManager uses mm instead of frame. r=ochameau
MozReview-Commit-ID: JsvQRwbjJDE
2016-08-19 10:01:30 -05:00
J. Ryan Stinnett 0ddbfea7f3 Bug 1240912 - Toolbox remains connected across frame swaps. r=ochameau
It is now possible keep the toolbox open while toggling RDM open and closed.
The toolbox will follow the frame as it moves and update the message manager it
uses internally with each move.

MozReview-Commit-ID: DvLzCmOXfnb
2016-08-19 10:01:29 -05:00
J. Ryan Stinnett 455c5bb644 Bug 1240912 - Filter requests by top frame's outerWindowID. r=ochameau
MozReview-Commit-ID: B5Y65EVG8Tz
2016-08-19 10:01:27 -05:00
J. Ryan Stinnett af7e805212 Bug 1240912 - Beacon filtering no longer needed. r=ochameau
MozReview-Commit-ID: EQ4HrvGFBiq
2016-08-19 10:01:25 -05:00
Ryan VanderMeulen 724c163f1c Merge fx-team to m-c. a=merge 2016-08-19 09:54:25 -04:00
Patrick Brosset 98f15741fe Bug 1289553 - Move the eyedropper label so it's always visible; r=jdescottes
This adds a few new CSS selectors that are used to move the label to the
top and/or left/right of the eyedropper canvas.
The CSS rules use transform and a quick transition.
The eyedropper highlighter then just makes use of this by adding top, left,
right attributes to the DOM depending on its position.

This also adds a test for this, and while testing, I discovered a bug in
shared/layout/utils.js that I fixed here too. Sometimes, the node passed is
actually a DOCUMENT_NODE and so we must account for this in a couple of places
in this file to avoid JS errors.

MozReview-Commit-ID: H969k3mEDJE


MozReview-Commit-ID: 9qOCYVp4mld
2016-08-18 15:17:47 +02:00
sudhanva 9d968c6d1d Bug 1282910 - Fix issuerOrganizationUnit property name in test_security-info-certificate.js. r=jsnajdr 2016-08-18 13:03:08 +05:30
Wes Kocher bad19898b2 Merge inbound to central, a=merge 2016-08-17 16:38:41 -07:00
Tom Tromey e23dc8b645 Bug 1278625 - move SimpleStringFront to specs/string.js; r=ejpbruel
MozReview-Commit-ID: Ib11CZwL4pP
2016-08-16 11:01:33 -06:00
Tom Tromey 0940713d29 Bug 1278625 - remove some lazy loading from devtools; r=jlongster
MozReview-Commit-ID: HwV7DFVJhAF
2016-08-05 08:46:37 -06:00
Wes Kocher b6639dcfb3 Merge m-c to inbound, a=merge 2016-08-16 22:06:58 -07:00