Commit Graph

2235 Commits

Author SHA1 Message Date
Prathiksha
1667cf617f Bug 1431242 - Use popupnotification's built-in bolding for webextension prompts. r=aswan,johannh
MozReview-Commit-ID: 52AtWUlJj4p
2018-01-19 23:34:25 +05:30
Michael Kelly
895bcde6ef Bug 1426482 Report browser errors in Nightly to Mozilla. r=gijs
Errors are collected via nsIConsoleService, shaped to a Sentry-compatible
format, and sent off. Reporting is on by default, and can be disabled using a
checkbox added to the privacy prefs in about:preferences.

Collected errors are sampled to avoid overloading the collection service; the
sample rate was determined by a previous Shield study that measured the number
of errors occurring in Nightly.

The feature is hard-disabled outside of Nightly and local builds, and the
preference is disabled by default in local builds. It is intended as a prototype
that will be evaluated and replaced by a more robust collection system if it
proves helpful.

Differential Revision: https://phabricator.services.mozilla.com/D561

MozReview-Commit-ID: 6aqUatXyuYs
2018-02-12 10:59:47 -08:00
Paolo Amadini
ed0806abfd Bug 1434883 - Part 1 - Fix tests for the activated page action panel. r=Gijs
The promisePanelEvent function was unreliable because it did not raise an error if the provided panel did not exist, which caused one of the callers to ignore a missing panel silently. All the callers have now been updated based on whether they expect the panel to exist or not.

MozReview-Commit-ID: AGT4rHls4OB
2018-02-04 16:32:20 +00:00
Nathan Watson
5d40195377 Bug 1434262 - Remove PlacesTestUtils.clearHistory() r=mak
MozReview-Commit-ID: In2RaM0LBsc
2018-01-31 22:03:05 -08:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Cosmin Sabou
27ede269b6 Backed out 3 changesets (bug 1434883) for frequent leaks in AbstractThread, AnimationTimeline, Annotators, Array, AsyncFreeSnowWhite, ... on a CLOSED TREE
Backed out changeset c8115e90ffa8 (bug 1434883)
Backed out changeset 22c83b1d417d (bug 1434883)
Backed out changeset 085796417462 (bug 1434883)
2018-02-06 16:30:56 +02:00
Paolo Amadini
b8175440fa Bug 1427350 - Part 1 - Use "autocomplete-rich-result-popup" instead of "autocomplete-result-popup" for the search bar. r=mak
MozReview-Commit-ID: AO926Wmhkbm
2018-02-04 15:00:48 +00:00
Paolo Amadini
e798559ae2 Bug 1434883 - Part 1 - Fix tests for the activated page action panel. r=Gijs
The promisePanelEvent function was unreliable because it did not raise an error if the provided panel did not exist, which caused one of the callers to ignore a missing panel silently. All the callers have now been updated based on whether they expect the panel to exist or not.

MozReview-Commit-ID: AGT4rHls4OB
2018-02-04 16:32:20 +00:00
Johann Hofmann
5559933515 Bug 1167238 - Part 2 - Convert sanitize.js to a module. r=mak
MozReview-Commit-ID: IWu7Dg61Vv4
2018-01-18 15:58:03 +01:00
Johann Hofmann
b3b3e0a100 Bug 1167238 - Part 1 - Remove Sanitizer.jsm shim. r=mak
MozReview-Commit-ID: I7l9M3sC4pD
2018-01-17 11:29:06 +01:00
Mark Banner
fef30a1850 Bug 1421379 - Finish enabling ESLint's mozilla/use-services in browser/. r=mossop
MozReview-Commit-ID: HHhik24haPT
2018-02-01 10:48:00 +00:00
Florian Quèze
c5f15a4700 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
hemant
40d2910989 Bug 1417937 - Remove unnecessary LoadContextInfo.jsm r=standard8
MozReview-Commit-ID: EnY0uKD4UD1
2018-01-31 23:16:46 +05:30
Andreea Pavel
33656b48bc Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-01-31 19:39:52 +02:00
Andreea Pavel
b7077f5fb1 Merge inbound to mozilla-central. a=merge 2018-01-31 19:38:21 +02:00
Mark Banner
141e18e4e7 Bug 1434449 - Removed some unused code in jsm files in browser/base and browser/modules. r=florian
MozReview-Commit-ID: 9VhKxnpdzCD
2018-01-30 22:09:02 +00:00
Jared Wein
9dcbbd035a Bug 1433735 - Cancel the TelemetryStopwatch when we stop monitoring a window for schedule pressure. r=mconley
MozReview-Commit-ID: HjlYc73Mzpa
2018-01-31 11:08:35 -05:00
arthur.iakab
384e070ea5 Merge mozilla-central to autoland 2018-01-31 00:41:58 +02:00
Gijs Kruitbosch
0c4260ddf9 Bug 1420714 - fix favicon fetching in reader mode, r=mak
MozReview-Commit-ID: KZFoKNqVPPy
2018-01-30 15:13:23 +00:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Kris Maglione
6a6a594fb0 Bug 1433708: Part 2 - Fix ExtensionsUI innerHTML sanitization. r=aswan
MozReview-Commit-ID: B8Lzqx56fBi
2018-01-26 11:06:35 -08:00
Kris Maglione
5ff866b8be Bug 1433708: Part 1 - Fix WebRTC innerHTML sanitization. r=mconley
MozReview-Commit-ID: JOkIXajO13O
2018-01-26 10:57:47 -08:00
Gijs Kruitbosch
d59dbba7eb Bug 1345081 - update use of spellchecker 'editable' flags, r=zombie
MozReview-Commit-ID: Hxgc0UuIOPj
2018-01-12 18:51:41 +00:00
Andreas Pehrson
46eab681f6 Bug 1299515 - Wire up track-disabling logic to frontend APIs. r=jib, r=johannh
This modifies mediaCaptureWindowState() to say whether a camera or microphone is
actively captured or not. Note that this is not the same as the device being
on or off. If we disallow a device from being off while disabled, we still
notify chrome that we're not actively capturing.

MozReview-Commit-ID: B1taormqc3j
2017-11-17 20:13:06 +01:00
Andreea Pavel
27898fe230 Backed out changeset 5421387a997d (bug 1345081)for failing browser chrome browser/components/extensions/test/browser/browser_ext_menus_events.js on a CLOSED TREE 2018-01-26 17:23:27 +02:00
Gijs Kruitbosch
8f3cf68607 Bug 1345081 - update use of spellchecker 'editable' flags, r=zombie
MozReview-Commit-ID: Hxgc0UuIOPj
2018-01-12 18:51:41 +00:00
shindli
aedc3243ef Backed out changeset bf20a59521ad (bug 1436100) per developers request on a CLOSED TREE 2018-02-13 13:47:08 +02:00
Richard Marti
c3ed60be76 Bug 1436100 - Let the apps use their own ThemeVariableMap.jsm constant. r=gijs 2018-02-12 18:24:27 +01:00
Johann Hofmann
ed86084f85 Bug 1345077 - Part 2 - Add telemetry on permission requests from third party origins, handling user input and insecure contexts. r=florian,liuche
MozReview-Commit-ID: 4ARIxa6gwCg
2018-01-10 21:07:59 +01:00
Boris Zbarsky
67327c7970 Bug 1431774 part 1. Remove a bunch of unnecessary QIs to nsIImageLoadingContent in JS. r=mystor
These are all no-ops because the objects involved are already implementing one of the WebIDL interfaces that pulls in MozImageLoadingContent, and that's all script gets to see.

MozReview-Commit-ID: Io2mLHbv7qM
2018-01-19 14:19:39 -05:00
Gijs Kruitbosch
6dd1141e99 Bug 1430507 - pass something that's always serializable for SVG elements and the context menu, r=nhnt11
MozReview-Commit-ID: KUDsCdzAM4D
2018-01-15 09:45:50 +00:00
Prathiksha
36b3466343 Bug 1369482 - Make hostnames in permission prompts much more prominent. r=johannh
MozReview-Commit-ID: 89m2QVzj8DG
2017-12-14 21:00:28 +05:30
James Teh
8b0f2811d9 Bug 1425541: Expose reader mode state on the browser accessible using a "reader" object attribute. r=eeejay,Gijs
This makes it easy for accessibility clients to retrieve the reader mode state programmatically.

There are three possibilities:
1. Reader mode is available for the current page (reader:available).
2. Reader mode is being used now (reader:active).
3. Reader is not available (the reader attribute is not present).

We do this by setting/removing the aria-reader attribute on the node.
This is not a real ARIA attribute, but it causes Gecko to expose it as an object attribute.

MozReview-Commit-ID: B38G3AYyBnS
2017-12-15 14:47:01 -06:00
Dorel Luca
2e121fd0bf Backed out changeset 196006c746bd (bug 1425541) for failing Mochitest on intl/l10n/test/dom/test_domloc_overlay.html on a CLOSED TREE 2018-01-16 03:11:38 +02:00
James Teh
2d555dfb63 Bug 1425541: Expose reader mode state on the browser accessible using a "reader" object attribute. r=eeejay,Gijs
This makes it easy for accessibility clients to retrieve the reader mode state programmatically.

There are three possibilities:
1. Reader mode is available for the current page (reader:available).
2. Reader mode is being used now (reader:active).
3. Reader is not available (the reader attribute is not present).

We do this by setting/removing the aria-reader attribute on the node.
This is not a real ARIA attribute, but it causes Gecko to expose it as an object attribute.

MozReview-Commit-ID: B38G3AYyBnS
2017-12-15 14:47:01 -06:00
Ed Lee
c7ee03b1ba Bug 1430272 - Add preloaded updating, whitelisted regions and bug fixes to Activity Stream. r=dmose
MozReview-Commit-ID: 6wWmVoXCQO5
2018-01-12 14:12:57 -08:00
Gijs Kruitbosch
d492678217 Bug 1429709 - make relative SVG links absolute, r=jaws
MozReview-Commit-ID: 9kSdFbpPx32
2018-01-12 00:19:12 +00:00
Ciure Andrei
b5a875e5e7 Merge inbound to mozilla-central r=merge a=merge 2018-01-11 11:54:56 +02:00
Cameron McCormack
5bbb806236 Bug 1427419 - Part 24: Move pseudo-class lock methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: ItruGMmf5Ih
2018-01-11 12:38:01 +08:00
Doug Thayer
5394d406e4 Bug 1421703 - replace onVisit with onVisits r=mak
There's a heavy enough overhead to going through XPConnect for
every observer for every visit on the nsINavHistoryObserver
interface, so this patch reduces that by replacing the single-
visit notification with one which accepts an array of visits.

Some notes: To avoid problems with the orderings of the various
ways in which we notify about visits, we have to send our bulk
onVisits notification before doing any of the others. This does
mean it technically behaves slightly different than the prior
approach of interleaving the notifications, but I can't find any
way in which this has any consequences to the end result, and it
doesn't break any tests.

MozReview-Commit-ID: GdeooH8mCkg
2017-12-20 14:27:24 -08:00
Andreea Pavel
35130a6b8b Merge inbound to mozilla-centra r=merge a=merge 2017-12-22 11:54:07 +02:00
Mike Conley
cd42f6052d Bug 1424373 - Rename crash report submission pref. r=Mossop 2017-12-21 16:36:13 -05:00
Chung-Sheng Fu
b5e311db1b Bug 1413780 - Change permission name from canvas/extractData to canvas. r=johannh
MozReview-Commit-ID: 40mesFLeRWU
2017-12-14 15:59:57 -06:00
Chung-Sheng Fu
8d647cb686 Bug 1413780 - Add a test for canvas permission to test_SitePermissions.js r=johannh
MozReview-Commit-ID: 6ZS1a9nkZfQ
2017-12-14 11:42:17 -06:00
Chung-Sheng Fu
6c366c2785 Bug 1413780 - Hide canvas permission from site information panel when privacy.resistFingerprinting is false. r=johannh
MozReview-Commit-ID: JlCICwM4dVA
2017-11-22 17:42:35 +08:00
Chung-Sheng Fu
f80e098048 Bug 1413780 - Make canvas permission visible in site information panel. r=johannh
MozReview-Commit-ID: 1SmF9ZLkLmw
2017-10-31 16:56:36 +08:00