Commit Graph

589 Commits

Author SHA1 Message Date
Michael Kelly
8770d2baa6 Bug 1451702: Mangle file: and jar: paths in browser error reports. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D1868
2018-06-28 11:19:24 -07:00
shindli
672e33f2d3 Backed out changeset 28564cd34c70 (bug 1451702) for bc failures in browser/modules/test/browser/browser_BrowserErrorReporter_nightly.js on a CLOSED TREE 2018-06-27 03:42:26 +03:00
Michael Kelly
26048fcbb5 Bug 1451702: Mangle file: and jar: paths in browser error reports. 2018-05-18 15:34:11 -07:00
Michael Kelly
d2918aab80 Bug 1470587: Uninitialize reporter created during test. r=mossop
At some point, the matching call to reporter.uninit got removed from this test.
The result is that the reporter still exists and is still collecting errors
during the rest of the tasks in the file. In most tasks, this isn't an issue
since we use reporter.handleMessage to test message handling at a per-reporter
level.

But the telemetry measures are shared between multiple reporters, thus they are
susceptible to interference from other running reporter instances.

The error that is being logged when this test fails is from the test add-on
created in testAddonIDMangle. My best guess is that the error logged by the
add-on is being processed during an idle moment in another task, since we
schedule processing to be delayed until the browser is idle. It seems this
scheduling is pretty consistent on certain Linux platforms.

Differential Revision: https://phabricator.services.mozilla.com/D1836
2018-06-26 18:31:06 +00:00
Michael Kelly
1a8ea75eb8 Bug 1461439: Enable browser error telemetry on non-Nightly channels. r=Gijs
MozReview-Commit-ID: GAwbFC49b8H
2018-06-05 11:15:54 -07:00
Dale Harvey
f28e841657 Bug 1461656 - Ask permission when site wants to autoplay media. r=flod,johannh
MozReview-Commit-ID: Fc2IUZK90eu
2018-05-18 12:54:33 +01:00
Mark Banner
706a19ce6d Bug 1453667 - Remove BrowserUITelemetry. r=gfritzsche
MozReview-Commit-ID: Co31OPRrdpi
2018-06-06 20:29:09 +01:00
Michael Kelly
2389e0b5af Bug 1467929: Only collect browser JS errors from recent builds. r=Gijs
Telemetry data suggests between 13%-40% of errors being collected are from
builds older than a week. Since Nightly updates twice a day, errors from builds
that old don't reflect the current state of Nightly, so we can ignore them and
save some bandwidth.

A build is considered "recent" if the date encoded at the start of the
appBuildId (YYYYMMDD) is within 7 days of the current date. Since this is mostly
for preventing high load on the collection service, the check does not handle
problems with the local clock being inaccurate in order to simplify the
implementation.

MozReview-Commit-ID: BbCO4kaBprL
2018-06-12 21:49:58 -07:00
Joel Maher
d0823df1ef Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Michael Kelly
cbb2884d07 Bug 1464521: Process collected browser JS errors during idle. r=kmag
testFetchArguments and the add-on ID mangling tests already cover error
collection end-to-end, so no new tests are needed to cover testing the idle
callback.

MozReview-Commit-ID: DJrqT5jCq44
2018-06-05 08:58:45 -07:00
Mark Banner
bf9c126d42 Bug 1465385 - Enable ESLint rule require-expected-throws-or-rejects for browser/. r=MattN
MozReview-Commit-ID: GoVFNM7CFDu
2018-05-30 11:50:45 +01:00
Andrea Marchesini
119e0e1fb2 Bug 1462662 - Wipe the container for privacy.usercontext.about_newtab_segregation.enabled on shutdown, r=johannh 2018-05-29 17:35:28 +02:00
Cosmin Sabou
5a794f217b Backed out changeset 62ed84f80e37 (bug 1462662) for mochitest browser chrome failures on browser_startup.js. CLOSED TREE 2018-05-29 20:16:46 +03:00
Andrea Marchesini
7523334d50 Bug 1462662 - Wipe the container for privacy.usercontext.about_newtab_segregation.enabled on shutdown, r=johannh 2018-05-29 17:35:28 +02:00
Kris Maglione
187318b0b7 Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5
2018-05-19 20:17:45 -07:00
Narcis Beleuzu
1df729cdfd Bug 1456807 - Disable browser_taskbar_preview.js for frequent failures. r=jmaher 2018-05-12 19:53:43 +03:00
Kris Maglione
c03fa450d6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU
2018-05-08 18:36:22 -07:00
Margareta Eliza Balazs
d06d032d88 Merge inbound to mozilla-central. a=merge 2018-05-09 12:33:51 +03:00
Tooru Fujisawa
41aa207cb4 Bug 1420574 - Add CustomizableUITestUtils.prototype.{addSearchBar,removeSearchBar} to show search bar in nav bar and verify it does not overflow. r=Paolo 2018-05-09 09:48:40 +09:00
Ciure Andrei
4d5f8da2ba Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-09 02:02:05 +03:00
Mark Banner
2b4c4cde54 Bug 1458235 - Fix various cases where Assert.ok or Assert.equal have been called wrongly. r=Gijs
MozReview-Commit-ID: Br3lKpKNVQJ
2018-05-01 22:15:43 +01:00
Stephen A Pohl
f95eb35656 Bug 1366808: Add telemetry probe for about:restartrequired page. r=jimm,chutten 2018-05-08 10:31:59 -04:00
Chris Pearce
d194e0e533 Bug 1457048 - Fix permissions tests to accomodate autoplay-media. r=johannh
MozReview-Commit-ID: E0BPcXPox7p
2018-05-04 13:49:14 +12:00
Kris Maglione
fd7e9e6a69 Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY
2018-04-22 20:55:06 -07:00
Mike de Boer
543bf31308 Bug 1034036 - Part 3: start tracking windows activations to always be aware of their respective order. This allows consumers to iterate over a set of windows in order of appearance (e.g. z-order). r=dao
Tests are also added here for the legacy `getTopWindow` method to guard against
basic regressions.
We now start tracking browser windows right after the DOMContentLoaded event, which
is earlier than before. We now also assume that any newly tracked window has the
focus initially, which is closer to the nsIWindowMediator semantics.

MozReview-Commit-ID: 6QYJqA1tMPC
2018-04-11 12:06:03 +02:00
Dale Harvey
89d562a13b Bug 1449338 - Show currently selected engine in newtabs search input. r=mikedeboer
MozReview-Commit-ID: GTsx9dReoxS
2018-04-17 13:30:54 +01:00
Noemi Erli
5f3a91cc68 Backed out changeset 413f4d055ade (bug 1449338) for ES Linting opt failure in /builds/worker/checkouts/gecko/browser/base/content/contentSearchUI.js on a CLOSED TREE 2018-04-19 11:35:30 +03:00
Dale Harvey
9514ddcbcd Bug 1449338 - Show currently selected engine in newtabs search input. r=mikedeboer
MozReview-Commit-ID: GTsx9dReoxS
2018-04-17 13:30:54 +01:00
Kris Maglione
31b62bd68b Bug 1453881: Part 1a - Automatically write add_task(function*) to add_task(async function) r=ochameau
This was done using the script at:

bc5629735d/processors/add-task-async.jsm

MozReview-Commit-ID: KxuS9Cen87
2018-04-12 21:10:04 -07:00
Marco Bonardo
0bb0a7711b Bug 1452890 - Move address bar right-click selection from 'enterSelection' to its own histogram bucket. r=adw
MozReview-Commit-ID: AcP7Spl0sdZ
2018-04-13 16:11:19 +02:00
Michael Kohler
9124ea03a3 Bug 1428306 - Remove browser.storageManager.enabled pref r=baku,johannh
MozReview-Commit-ID: GodyYuGxVD
2018-04-09 20:46:45 +02:00
Jonathan Kingston
9b880fdc20 Bug 1374741 - Within browser/ make openUILinkIn() provide the correct triggeringPrincipal. r=gijs
MozReview-Commit-ID: 1NQrlWzIBja
2018-02-21 14:28:48 +00:00
Marco Castelluccio
7cd550a10b Bug 1423667 - Reenable some tests that were disabled because of a Clang update. r=jmaher 2018-04-05 09:20:47 +01:00
Michael Kelly
9b417d4bb4 Bug 1450156: Do not wipe out tags in request template. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D834

MozReview-Commit-ID: 7WWtyz4PakT
2018-04-03 09:54:02 -07:00
Michael Kelly
f2ab2c2f3e Bug 1450153: Count extension errors separately in keyed scalar. r=Gijs
Also adds resource://devtools to the whitelist of reported paths for the
scalar.

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

MozReview-Commit-ID: BiAyoTQsWxx
2018-04-03 09:52:39 -07:00
Michael Kelly
01b85d576d Bug 1449367: Use 100% sample rate for devtools error reports. r=jryans
Differential Revision: https://phabricator.services.mozilla.com/D835

MozReview-Commit-ID: IgtFosj2mii
2018-04-02 13:22:45 -07:00
Michael Kelly
ed13131978 Bug 1449312: Include isExtensionError in all reports. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D820

MozReview-Commit-ID: 8b8JFWaCMHp
2018-03-29 11:11:23 -07:00
Drew Willcoxon
bd8f7faa4e Bug 1221539 - Add search engine discovery to the page action menu. Part 2: Add the new action. r=Gijs
MozReview-Commit-ID: DEEZBwmV0JD
2018-03-28 11:28:20 -07:00
Drew Willcoxon
0a460e67a4 Bug 1221539 - Add search engine discovery to the page action menu. Part 1: Page action changes. r=Gijs
MozReview-Commit-ID: DGy3sBibpRW
2018-03-28 11:28:13 -07:00
Michael Kelly
d9e8655d57 Bug 1444554: Add Telemetry scalars for BrowserErrorReporter.jsm. r=Gijs,chutten
Differential Revision: https://phabricator.services.mozilla.com/D725

MozReview-Commit-ID: KY90uSslMmb
2018-03-16 13:24:39 -07:00
Kris Maglione
3ea6a124d1 Backed out changeset 68e32f5b50e7 (bug 1444554) for failing its own test. r=backout
MozReview-Commit-ID: C6TooaguKcm
2018-03-20 20:31:57 -07:00
Michael Kelly
23a50381b4 Bug 1444554: Add Telemetry scalars for BrowserErrorReporter.jsm. r=Gijs,chutten
Differential Revision: https://phabricator.services.mozilla.com/D725

MozReview-Commit-ID: KY90uSslMmb
2018-03-16 13:24:39 -07:00
Michael Kelly
80e446a485 Bug 1445009: Tag errors from extensions with isExtensionError. r=Gijs
MozReview-Commit-ID: AQrlvTfJUUS
2018-03-19 13:40:53 -07:00
Michael Kelly
5e87786f0d Bug 1445009: Refactor BrowserErrorReporter.jsm and tests. r=Gijs
The transforms for turning an nsIScriptError into a payload that Sentry
understands were getting a bit complex for a single function, so they're
refactored into a list of transform functions that are applied in sequence to
produce the payload. This will make it easier to manage adding new transforms to
the list.

Refactoring this revaled a problem with the test code: it assumed that listeners
for console messages were notified in order of registration (since it used a
temporary listener to determine when the rest of the listeners had been notified
of a message). Changing the async evaluation of the code broke the tests, so
they had to be refactored as well.

Without a way to know when all console listeners have been notified, we can't
assert that a message will not be received by BrowserErrorReporter. We do two
things to get around this:

- Where possible, call `observe` directly on the reporter instance.
- Add constructor params for registering and unregistering listeners so we can
  test that logic without relying on messages being received or not.

MozReview-Commit-ID: EEH6IROOuHD
2018-03-19 12:41:30 -07:00
Cosmin Sabou
c988d1d4ae Backed out changeset a760e111f2f1 (bug 1444554) for merge conflicts on browser_BrowserErrorReporter.js and failures after merging to autoland. a=backout 2018-03-21 02:51:03 +02:00
Michael Kelly
b870e2c826 Bug 1444554: Add Telemetry scalars for BrowserErrorReporter.jsm. r=Gijs,chutten
Differential Revision: https://phabricator.services.mozilla.com/D725

MozReview-Commit-ID: KY90uSslMmb
2018-03-16 13:24:39 -07:00
Tooru Fujisawa
f415c74b57 Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
Kris Maglione
9d5b9190a5 Bug 1443964: Part 3 - Remove no-cpows-in-tests rule. r=mconley
The shims that this rule tests for no longer exist.

MozReview-Commit-ID: DMgP7Hczavc
2018-03-07 19:31:28 -08:00
Michael Kelly
3dc515499d Bug 1441366 Use internal add-on IDs in browser error stacktrace reports. r=kmag
MozReview-Commit-ID: 7OC4utHLgXC
2018-02-26 16:12:08 -08:00
Kris Maglione
a7289e8164 Bug 1445551: Part 1c - Fix browser tests that attempt to use importGlobalProperties. r=mconley
When compartment-per-addon is disabled, browser mochitests will no longer
automatically run in an implicit Sandbox scope, which means that things like
Cu.importGlobalProperties will stop working.

MozReview-Commit-ID: AWloQ7gasEf
2018-03-13 18:18:27 -07:00