Commit Graph

2190 Commits

Author SHA1 Message Date
Marco Bonardo
dcf02274b4 Bug 1570434 - Add an API to toggle engagement event telemetry. r=adw,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D40194
2019-08-01 16:37:17 +00:00
Shane Caraveo
c8966f87d5 Bug 1521363 fix timing issue in tabs events test r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D39786
2019-07-30 08:50:02 +00:00
Drew Willcoxon
9e7fab37a2 Bug 1569812 - Quantumbar: Allow extensions to specify search engines by name, URL, or alias. r=mak
`UrlbarResult` objects for search results have a `payload.engine` property, the name of the engine, but extensions won't always know the name Firefox uses internally or even any name at all. For example, the top sites API returns search results with aliases but not names. We should let extensions specify engine URLs and aliases, and we can use them to look up the engine name.

The UrlbarResult.jsm change is unrelated but fixes a minor annoyance I found while working on the top-sites extension. My background script returns results with `isKeywordOffer: true`, but that causes an error in `UrlbarResult.payloadAndSimpleHighlights` because it converts string values to arrays and then expects non-string values to be arrays. Instead, it should be converting non-array values to arrays.

Differential Revision: https://phabricator.services.mozilla.com/D39800
2019-07-31 17:00:07 +00:00
Ciure Andrei
eab870f25d Bug 1394984 - browser_ext_sessions_window_tab_value.js disabled on debug builds on all platforms due to high frequency failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38954
2019-07-25 08:48:54 +00:00
Paul Zuehlcke
064380bb16 Bug 630614 - Show an indicator when geolocation is in use. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D35428
2019-07-30 08:28:31 +00:00
Drew Willcoxon
1208ce030d Bug 1568617 - Add a newtab option to browser.urlbar.topSites.get that returns the top sites exactly as shown on newtab r=mixedpuppy,Mardak
This is based on D39589, which moves the top sites API from toolkit to browser.

* Add a `newtab` option to `browser.urlbar.topSites.get` (similar to the abandoned D36200) that returns exactly the top sites shown on newtab
* Add a `AboutNewTab.getTopSites` function that returns those sites from activity stream
* Keep the changes made in bug 1547669

There are a couple of missing things related to the default top sites that this doesn't address but ideally we would have. I think we can come back to these if necessary.

* Actual favicons for the default top sites instead of using the bigger tile images since they don't seem to be the same for every site.
* Proper names names for the default sites. There's a `hostname` property, but it would be nice to have e.g. "YouTube" instead of "youtube".

Differential Revision: https://phabricator.services.mozilla.com/D39591
2019-07-29 18:30:59 +00:00
Drew Willcoxon
1541151a21 Bug 1569366 - Move the top sites API from toolkit to browser r=mixedpuppy
Bug 1547669 added some things to the top sites API, but it turned out to be not quite what we (the quantumbar team) needed (see bug 1568617). What we need is the list of top sites exactly as it appears on newtab. That list is determined by activity stream, which lives in browser. But the top sites API lives in toolkit.

There was an earlier, now abandoned revision for that bug [1] where it was suggested that top sites be moved to browser. So we should do that.

[1] https://phabricator.services.mozilla.com/D36200

Differential Revision: https://phabricator.services.mozilla.com/D39589
2019-07-29 17:00:19 +00:00
Csoregi Natalia
16534798cd Backed out changeset 3855d35999dd (bug 630614) for causing failures on browser_ext_tabs_sharingState.js. CLOSED TREE 2019-07-29 14:32:05 +03:00
Paul Zuehlcke
2ba3aac2e1 Bug 630614 - Show an indicator when geolocation is in use. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D35428
2019-07-29 08:37:55 +00:00
Kris Maglione
a12186c6f5 Bug 1568035: Part 2 - Skip tests which cause shutdown crashes under Fission. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D39460
2019-07-22 13:55:23 -07:00
Rob Wu
0e616d6bb1 Bug 1559216 - Let tabs API wait until tab has been restored r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D37323
2019-07-25 17:55:57 +00:00
Andreea Pavel
8480e23cca Backed out 3 changesets (bug 1559244) for causing bug 1370046
Backed out changeset de76712278a6 (bug 1559244)
Backed out changeset 467caef2ef9c (bug 1559244)
Backed out changeset 17ab0c52dca0 (bug 1559244)
2019-07-25 17:42:32 +03:00
Abdoulaye O. Ly
a0f4d1165b Bug 1559244 - Step 2: Add support for crashing sub-frame. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37780
2019-07-24 18:43:14 +00:00
Edwin Gao
f78650f34c Bug 1555454 - disable permafailing tests on macosx1014, migrate mochitest-browser-chrome to macosx1014 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38783
2019-07-23 18:30:26 +00:00
Bogdan Tara
7bb7cb8fa1 Backed out changeset ad5e0980c273 (bug 1555454) for central permafails on browser_devices_get_user_media.js a=backout 2019-07-22 07:45:40 +03:00
Edwin Gao
e92fed79bc Bug 1555454 - disable permafailing tests on macosx1014, migrate mochitest-browser-chrome to macosx1014 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38783
2019-07-21 09:27:47 +00:00
Dão Gottwald
d9573715fd Bug 1567406 - Use ids instead of classes for urlbar-input and urlbar-scheme. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D38631
2019-07-19 13:22:23 +00:00
Luca Greco
1a475f0cd3 Bug 1472740 - Remove usage of deprecated lwt aliased from browser_ext_manager.js. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D37889
2019-07-19 11:31:13 +00:00
Alexandre Poirot
50cc9ad5c6 Bug 1566457 - Only export require, loader and DevToolsLoader from Loader.jsm r=jdescottes
The rest was legacy code to support old xul add-ons.
All mozilla-central code used to be refactored, but a few places
were still using the old codepaths.

Differential Revision: https://phabricator.services.mozilla.com/D38283
2019-07-18 12:25:03 +00:00
Ciure Andrei
48dbfa7888 Merge inbound to mozilla-central. a=merge 2019-07-18 06:46:41 +03:00
Kris Maglione
9f00b7395d Bug 1566182: Annotate mochitests that fail with Fission enabled. r=mccr8
My preference was to annotate most of the failing tests with `fail-if` so that
if they start passing, the `fail-if` needs to be removed and they need to keep
passing. That doesn't work for tests that timeout, or which trigger failures
from their cleanup functions, however, so those tests need skip-if. And tests
with fail in their cleanup functions likely leave the browser in an
inconsistent state for subsequent tests, anyway, so really should be skipped
regardless.

There are some remaining tests which still fail because of crashes. I chose
not to skip them here, but to fix the crashes in separate bugs instead.

Differential Revision: https://phabricator.services.mozilla.com/D38247
2019-07-15 16:19:32 -07:00
Luca Greco
a05190d93d Bug 1369197 - Wait for customizationready when exiting customize mode in browserAction contentMenu tests. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D38123
2019-07-15 21:15:14 +00:00
Brindusan Cristian
fa58466122 Backed out 2 changesets (bug 1556789) on request from aryx for causing Bug 1565836. a=backout
Backed out changeset ca5fdf3a0ddd (bug 1556789)
Backed out changeset 19419ff4e756 (bug 1556789)
2019-07-13 20:52:45 +03:00
Shane Caraveo
d24d4ba91c Bug 1556789 - Refactor extension install in searchservice to use promises r=robwu,daleharvey
This provides a set of promises that the searchservice resolves once the search engine has been configured

Differential Revision: https://phabricator.services.mozilla.com/D33660
2019-07-12 19:33:32 +00:00
Gijs Kruitbosch
22035152ef Bug 1560178 - adjust webextension tests that rely on loading untrusted URIs in the parent process when remote webextensions are turned off, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D36309
2019-07-12 16:27:39 +00:00
Dorel Luca
a2abe7cb8f Backed out 5 changesets (bug 1560178) for Browser-chrome failures in builds/worker/workspace/build/src/dom/base/Document.cpp. CLOSED TREE
Backed out changeset 1ff8a41dd3c1 (bug 1560178)
Backed out changeset 4aaeda889656 (bug 1560178)
Backed out changeset b1dfc0b5a14c (bug 1560178)
Backed out changeset 45fca0f1b675 (bug 1560178)
Backed out changeset fc2be64e4ece (bug 1560178)
2019-07-12 18:38:34 +03:00
Gijs Kruitbosch
f846b8be4d Bug 1560178 - adjust webextension tests that rely on loading untrusted URIs in the parent process when remote webextensions are turned off, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D36309
2019-07-12 12:35:46 +00:00
Gurzau Raul
719f78a402 Backed out 2 changesets (bug 1556789) for assertion failures in FF functional tests on a CLOSED TREE.
Backed out changeset 2d10e95cf0cd (bug 1556789)
Backed out changeset 0acf6bafda0f (bug 1556789)
2019-07-12 04:45:46 +03:00
Shane Caraveo
5e55c6af34 Bug 1556789 - Refactor extension install in searchservice to use promises r=robwu,daleharvey
This provides a set of promises that the searchservice resolves once the search engine has been configured

Differential Revision: https://phabricator.services.mozilla.com/D33660
2019-07-11 18:42:00 +00:00
Andrew Swan
1e7925cc52 Bug 1563062 Part 1: Remove tests of old about:addons r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D36693
2019-07-08 11:04:06 -07:00
harry
2c58cfd2ac Bug 1551233 - Remove legacy urlbar mochitests. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D36346
2019-07-09 21:48:05 +00:00
Dorel Luca
7d5d296184 Backed out 2 changesets (bug 1563062) for Browser-chrome failure in toolkit/mozapps/extensions/test/browser/browser_gmpProvider.js. CLOSED TREE
Backed out changeset 59255dd51e9a (bug 1563062)
Backed out changeset 46ad01c26df8 (bug 1563062)
2019-07-10 01:29:53 +03:00
Andrew Swan
326bbd3f71 Bug 1563062 Part 1: Remove tests of old about:addons r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D36693
2019-07-09 19:33:33 +00:00
Tim Huang
f6db22791f Bug 1562881 - Part 6: Update tests and add a test for insuring identity icon loads a correct image. r=johannh
This patch updates tests and adds a new test. This new test will
ensuring the identity icon will load a correct image with different
circumstances. For example, it should load a secure lock image if it is
a https page, an insecure lock image for http page and a brand image for
chrome page.

Differential Revision: https://phabricator.services.mozilla.com/D37792
2019-07-17 13:25:03 +00:00
Victor Porof
bf2b98e8c1 Bug 1561435 - Fix linting errors for browser/, r=standard8
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35950
2019-06-28 20:02:37 +02:00
Victor Porof
8eb72fd3fc Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36042
2019-07-05 09:53:32 +02:00
shindli
5356b3d2b1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-06-29 02:23:28 +03:00
Cosmin Sabou
ae7abc18f4 Merge mozilla-central to mozilla-inbound. 2019-06-28 19:16:36 +03:00
Julian Descottes
c228d1a98c Bug 1543710 - Do not run devtools extension tests in non-oop r=rpl
Depends on D34627

Differential Revision: https://phabricator.services.mozilla.com/D34732
2019-06-28 12:18:09 +00:00
Gabriele Svelto
cb4cae2d22 Bug 1536221 - Re-enable mochitests and xpcshell tests that depend on the crash reporter on Windows/AArch64 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D35995
2019-06-26 13:15:24 +00:00
rdalal
f992570e8a Bug 1522214 - Bug 1536658 - Implement privileged web extension API for Normandy addon studies r=mythmon,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D29913
2019-06-27 21:17:47 +00:00
Drew Willcoxon
f3d90ab94f Bug 1547666 - Quantumbar extension API: Add onBehaviorRequested, onResultsRequested, onQueryCanceled, and Result type, and change some internals. r=mak,mixedpuppy
* Rename the browser.urlbar.onQueryReady event onBehaviorRequested to make its purpose and return value clear.
* Add a browser.urlbar.onResultsRequested event that's fired when a query starts so that providers can add results. Listeners should return an array of Result objects. Add the Result type. It has a `payload` property that can be an arbitrary object depending on the result type.
* Add a browser.urlbar.onQueryCanceled event that's fired when a query is canceled.
* Rename the QueryContext type to just Query. From an extension's point of view, there's no difference between Query and QueryContext like there is for the internal implementation, so "Context" is unnecessary imo.
* Internally, remove the extension listeners map from UrlbarProvidersManager. Instead, extension listeners are added directly to UrlbarProviderExtension instances, and then UrlbarProvidersManager just loops through extension providers, not a separate map of listeners.
* Since UrlbarProviderExtension is getting a little bigger, move it to its own file.
* Fix a bug in UrlbarMuxerUnifiedComplete where the heuristic result sometimes does not come first in the sorted results, depending on the timing of when results from UrlbarProviderUnifiedComplete and other providers are added.
* Move SkippableTimer to UrlbarUtils.jsm, add a logger property, and add a name property so that it's easy to figure out which timers time out.
* Add lots of tests.

Differential Revision: https://phabricator.services.mozilla.com/D34809
2019-06-26 23:35:50 +00:00
Michael Krasnov
05766f3012 Bug 1547295 - Make use of browser.test.assertRejects and browser.test.assertThrows wherever possible r=robwu,rpl
Differential Revision: https://phabricator.services.mozilla.com/D32623
2019-06-26 13:40:31 +00:00
Andrew Swan
dc310fd612 Bug 1555060 Rewrite webextension tabs.move tests r=kmag
These tests are full of too many problems to catalog here.
This patch just rewrites them to make them less insane.

Differential Revision: https://phabricator.services.mozilla.com/D34647
2019-06-03 21:10:14 -07:00
Rob Wu
d89a16f2b3 Bug 1559692 - Fix support for regexp filter in TelemetryTestUtils.assertEvents r=chutten
and migrate an existing test to use `TelemetryTestUtils.assertEvents`,
with a regular expression as filter.

Differential Revision: https://phabricator.services.mozilla.com/D35156
2019-06-21 21:48:42 +00:00
Dão Gottwald
e2cb395d0d Bug 1547301 - Add openViewOnFocus API. r=mak,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D34509
2019-06-19 00:46:40 +00:00
Narcis Beleuzu
2fa730ef62 Backed out changeset e9e24264e20d (bug 1547301) for bc failures on UrlbarInput.jsm. CLOSED TREE 2019-06-19 02:28:41 +03:00
Dão Gottwald
75cd8d5393 Bug 1547301 - Add openViewOnFocus API. r=mak,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D34509
2019-06-18 21:09:46 +00:00
Narcis Beleuzu
5cbfe9fdd6 Backed out changeset 93ccef162814 (bug 1547301) for mochitest leaks on browser_page_bringToFront.js. CLOSED TREE 2019-06-18 22:48:05 +03:00
Dão Gottwald
b5f714606b Bug 1547301 - Add openViewOnFocus API. r=mak,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D34509
2019-06-18 19:02:53 +00:00