Commit Graph

608 Commits

Author SHA1 Message Date
Kris Maglione
80327d3561 Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3729

--HG--
extra : rebase_source : e187b8e9a6b6db7ebc762adda5e489b25c7a7e43
extra : histedit_source : 868cb99d09954a51d6be321fcb516475ef70eb33
2018-08-18 19:27:33 -07:00
Dorel Luca
8e7a61886b Backed out changeset d47a2f5db828 (bug 1481199) browser/base/content/test/urlbar/browser_autocomplete_a11y_label.js. CLOSED TREE 2018-08-23 23:45:02 +03:00
Diego Pino Garcia
6900fb42ab Bug 1481199 - Drop the obsolete dataType parameter for nsIBrowserSearchService.addEngine. r=mkaply 2018-08-23 09:00:00 -04:00
Brian Grinstead
4995c61b0f Bug 1482667 - Migrate mochitest-browser tests in browser/ to use element variations of firstChild, etc;r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3530

--HG--
extra : moz-landing-system : lando
2018-08-17 16:45:52 +00:00
Dale Harvey
4653e8bb0b Bug 1477273 - Followup to ensure correct pref in test
MozReview-Commit-ID: BPXRlxdpRYf
2018-08-16 07:58:00 +03:00
Dale Harvey
2de58add22 Bug 1477273 - Allow autoplay-media permission to be temporarily allowed. r=johannh
MozReview-Commit-ID: JlnH2f1KW3U

--HG--
extra : rebase_source : 13fb179fd85a47f1842b7715e82e92a30c4c4784
2018-08-03 16:00:55 +01:00
Kris Maglione
0c0831f6d0 Bug 1472491: Part 5d - Add ContentSearchChild actor. r=adw f=felipe
MozReview-Commit-ID: 5u7VpedF3xH

--HG--
rename : browser/base/content/tab-content.js => browser/actors/ContentSearchChild.jsm
extra : rebase_source : abfaa941f6769428a7dd47cc7c3f953f6d8c3e87
2018-07-29 20:00:11 -07:00
Paolo Amadini
b4630c69a3 Bug 1481813 - Part 4 - Remove support for adding generic DOM attributes to page actions. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D3011

--HG--
extra : rebase_source : 34d987669c8c83ccf5fd50adfc31594b8c07dd46
extra : source : 0fa77a8d96fd46ef19cbfdf439ae0ca12f8fe191
2018-08-09 13:22:20 +01:00
Kris Maglione
c65e3607f7 Bug 1481021: Follow-up: Fix another test that relies on bad COW behavior. r=me,test-only
--HG--
extra : rebase_source : 253c3dbdfd1dc6dc586198049384ac466e8a73a8
extra : amend_source : d8e5bbb6acf2d53fdc1055cfd269153ebc55018e
2018-08-11 17:12:34 -07:00
Kris Maglione
031076f2f3 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : source : fcfb99baa0f0fb60a7c420a712c6ae7c72576871
extra : histedit_source : 5be9b7b29a52a4b8376ee0bdfc5c08b12e3c775a
2018-05-21 16:58:23 -07:00
Narcis Beleuzu
561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione
cb1ee1e34d Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : rebase_source : a13c59d1a5ed000187c7fd8e7339408ad6e2dee6
2018-05-21 16:58:23 -07:00
Andreea Pavel
8a01d542af Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-07-25 18:10:55 +03:00
Shane Caraveo
7962eacafd Bug 1344771 - Implement attribution on OSX using quarantine data, r=mossop,spohl
MozReview-Commit-ID: NgjE1HZS7M

--HG--
rename : browser/modules/AttributionCode.jsm => browser/components/attribution/AttributionCode.jsm
rename : browser/modules/test/unit/test_AttributionCode.js => browser/components/attribution/test/xpcshell/test_AttributionCode.js
extra : rebase_source : 197f427e0d2fcbdbe85d5ebe65067dcc9eee6407
2018-07-23 11:01:26 -03:00
Boris Zbarsky
270fa12c79 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Dale Harvey
c9e5e7c554 Bug 1470082 - Change autoplay checkbox to combobox. r=cpearce,flod,johannh
MozReview-Commit-ID: E71TxvgfJlJ

--HG--
extra : rebase_source : 30ca63df77e48a44de4d3e90182440c3937ed32f
2018-06-29 14:14:33 +01:00
Axel Hecht
5bdc727943 Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws
Also changes the tooltip on the home button to be independent of the URLs
it opens, per dolske.

Some tests explicitly set browser.startup.homepage, but only through
SpecialPowers.putPrefEnv. That's a good compromise, given the extra
functionality there.

MozReview-Commit-ID: FPLxzi3jQAP

--HG--
extra : rebase_source : c2b014f2fb1c78ce04859344bd1803ef48d5d68d
2018-05-28 12:38:01 +02:00
Michael Kelly
41a5d0da21 Bug 1470505: Disable browser error collection for webextension errors. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D1792

--HG--
extra : moz-landing-system : lando
2018-07-09 18:27:22 +00:00
Michael Kelly
b6450821b2 Bug 1471204: Disable browser error telemetry tests when scalars expire. r=Gijs,chutten
Differential Revision: https://phabricator.services.mozilla.com/D1891

--HG--
extra : moz-landing-system : lando
2018-07-05 16:12:13 +00:00
Michael Kelly
38fdedebf7 Bug 1451702: Mangle file: and jar: paths in browser error reports. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D1868

--HG--
extra : rebase_source : 65ce32dac6b61414acd685f8787b5709a0070b54
extra : amend_source : 51fb635ec9b8cbdc27917f95f72583d03b5322a2
extra : intermediate-source : 28564cd34c706e909df136c4c0ea374f4836a344
extra : source : 71156adbd18ecb9f5b4d09638881a3714c71244b
2018-06-28 11:19:24 -07:00
shindli
575a9e53cb 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
fd2c510573 Bug 1451702: Mangle file: and jar: paths in browser error reports.
--HG--
extra : rebase_source : d57ca43e7e9310516d3e7568bee7c4e658f60ef6
extra : intermediate-source : 523b4c1d489c29d79e5782b62f01d21b9fc07eb2
extra : source : 71156adbd18ecb9f5b4d09638881a3714c71244b
2018-05-18 15:34:11 -07:00
Michael Kelly
80e7768083 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
102c99a2d0 Bug 1461439: Enable browser error telemetry on non-Nightly channels. r=Gijs
MozReview-Commit-ID: GAwbFC49b8H

--HG--
rename : browser/modules/test/browser/browser_BrowserErrorReporter.js => browser/modules/test/browser/browser_BrowserErrorReporter_nightly.js
extra : rebase_source : 34673db22aa83be183cff403b719f97884400cac
extra : source : 679189574ff3e79298ead44b35484c549356b086
2018-06-05 11:15:54 -07:00
Dale Harvey
4696947f19 Bug 1461656 - Ask permission when site wants to autoplay media. r=flod,johannh
MozReview-Commit-ID: Fc2IUZK90eu

--HG--
extra : rebase_source : 197ea2f48d6ad07cf1cf3c0b572121bbb3d69252
2018-05-18 12:54:33 +01:00
Mark Banner
cb46607905 Bug 1453667 - Remove BrowserUITelemetry. r=gfritzsche
MozReview-Commit-ID: Co31OPRrdpi

--HG--
extra : rebase_source : 85eb06471105e4142e7c235da65c68c1a81603d7
2018-06-06 20:29:09 +01:00
Michael Kelly
d8725aa754 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

--HG--
extra : rebase_source : 0292ae57272f903a6aef176ef4403d56503fc0db
2018-06-12 21:49:58 -07:00
Joel Maher
50b91c0a14 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
17b8e2a81c 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

--HG--
extra : rebase_source : 40a5c5a2cdb14bf7bf9a7fd9493efdda9e7bacd7
2018-06-05 08:58:45 -07:00
Mark Banner
7b90b63d69 Bug 1465385 - Enable ESLint rule require-expected-throws-or-rejects for browser/. r=MattN
MozReview-Commit-ID: GoVFNM7CFDu

--HG--
extra : rebase_source : f1e9bfdaa1396b2ce27ee499fc547f239ca132a9
2018-05-30 11:50:45 +01:00
Andrea Marchesini
612caa865c 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
63954a642e 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
c0f1056898 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
6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
Narcis Beleuzu
7521c770a6 Bug 1456807 - Disable browser_taskbar_preview.js for frequent failures. r=jmaher 2018-05-12 19:53:43 +03:00
Kris Maglione
01c298aca6 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

--HG--
extra : rebase_source : 86a43837659aa2ad83a87eab53b7aa8d39ccf55b
2018-05-08 18:36:22 -07:00
Margareta Eliza Balazs
eb6c5214a6 Merge inbound to mozilla-central. a=merge 2018-05-09 12:33:51 +03:00
Tooru Fujisawa
c12bdc0642 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
de05fd66c8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-09 02:02:05 +03:00
Mark Banner
9c03ace970 Bug 1458235 - Fix various cases where Assert.ok or Assert.equal have been called wrongly. r=Gijs
MozReview-Commit-ID: Br3lKpKNVQJ

--HG--
extra : rebase_source : 972c69ecf63bb522b0f368e3c388f4eff558bbe3
2018-05-01 22:15:43 +01:00
Stephen A Pohl
339982e013 Bug 1366808: Add telemetry probe for about:restartrequired page. r=jimm,chutten 2018-05-08 10:31:59 -04:00
Chris Pearce
4c40136611 Bug 1457048 - Fix permissions tests to accomodate autoplay-media. r=johannh
MozReview-Commit-ID: E0BPcXPox7p

--HG--
extra : rebase_source : 54894acffa355de817783ae7ed5b6dadeea5b2f9
2018-05-04 13:49:14 +12:00
Kris Maglione
a259026c9d 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

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Mike de Boer
43e19414f5 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

--HG--
extra : rebase_source : e04e567cf31d1a10e78647d75403b700bc65136b
2018-04-11 12:06:03 +02:00
Dale Harvey
80d9ecb796 Bug 1449338 - Show currently selected engine in newtabs search input. r=mikedeboer
MozReview-Commit-ID: GTsx9dReoxS

--HG--
extra : rebase_source : f44ae3d3eed6c5bbb6fc055fa0cdb3067b7841a1
2018-04-17 13:30:54 +01:00
Noemi Erli
3ef9e9fbe3 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
9a64d286fc Bug 1449338 - Show currently selected engine in newtabs search input. r=mikedeboer
MozReview-Commit-ID: GTsx9dReoxS

--HG--
extra : rebase_source : 557d8d5df14dbbaab4195034fcdd4f3a54ef91d0
2018-04-17 13:30:54 +01:00
Kris Maglione
0f40271841 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

--HG--
extra : rebase_source : c0028e0cd55ba1643610cd30c55c6f4bca7d6e58
extra : histedit_source : ebc84fdec9c2db6176632d62de4e7bdad2a7829d
2018-04-12 21:10:04 -07:00
Marco Bonardo
257c0cb28b Bug 1452890 - Move address bar right-click selection from 'enterSelection' to its own histogram bucket. r=adw
MozReview-Commit-ID: AcP7Spl0sdZ

--HG--
extra : rebase_source : 9de517c50674956526c0de4bc91fbf2ab6e02afc
2018-04-13 16:11:19 +02:00
Michael Kohler
4c381de5f6 Bug 1428306 - Remove browser.storageManager.enabled pref r=baku,johannh
MozReview-Commit-ID: GodyYuGxVD

--HG--
extra : rebase_source : 0ba78e764ea2c77ecaafcd35a502940ea1a37ac2
2018-04-09 20:46:45 +02:00