Commit Graph

2113 Commits

Author SHA1 Message Date
Cosmin Sabou
ae7abc18f4 Merge mozilla-central to mozilla-inbound. 2019-06-28 19:16:36 +03: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
Gijs Kruitbosch
572dbf7379 Bug 1519434 - remove plugin click to play pref as running without it won't make sense anymore, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D34212
2019-06-13 08:40:59 +00:00
Ehsan Akhgari
5f57b1b6e4 Bug 1557887 - Part 5: Pass a storage principal argument through the browser loadURI()/addTab() APIs; r=baku,mconley
Differential Revision: https://phabricator.services.mozilla.com/D34459
2019-06-12 23:05:36 +00:00
Andreea Pavel
cc37a3c8a9 Backed out 7 changesets (bug 1519434) for mochiest failures e.g test_bug1165981.html on a CLOSED TREE
Backed out changeset 1314623831ad (bug 1519434)
Backed out changeset 6dd4fa67e209 (bug 1519434)
Backed out changeset b241c580b293 (bug 1519434)
Backed out changeset b48dca2f487f (bug 1519434)
Backed out changeset 49c64ed2e67b (bug 1519434)
Backed out changeset dd009a001c6c (bug 1519434)
Backed out changeset 5b6ec4d2f0ab (bug 1519434)
2019-06-12 23:31:16 +03:00
Gijs Kruitbosch
74e20f32e6 Bug 1519434 - remove plugin click to play pref as running without it won't make sense anymore, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D34212
2019-06-12 18:49:30 +00:00
Rob Wu
2c14a0b120 Bug 1551490 - Fix browser_ext_browserAction_contextMenu.js when HTML about:addons is enabled r=rpl
When HTML `about:addons` is enabled, the "Manage extension" button still
opens the add-on's details page, but without automatically loading the
inline options.

The test assumed that it did and failed. This patch switches to a
different way of detecting that the menu item works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D34209
2019-06-08 12:37:40 +00:00
Rob Wu
cd1d601702 Bug 1551490 - Fix test failures with inline options in HTML about:addons r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D34078
2019-06-09 11:18:54 +00:00
Mike Conley
feac13f4b4 Bug 1505909 - Update WebExtension menus API to use updated, Fission-aware ContextMenuChild. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D33163
2019-06-08 01:10:03 +00:00
Noemi Erli
7401f1586b Backed out 6 changesets (bug 1505909) for failures in browser_ext_webNavigation_onCreatedNavigationTarget_contextmenu.js CLOSED TREE
Backed out changeset 57336967a6c7 (bug 1505909)
Backed out changeset 8adcacadd689 (bug 1505909)
Backed out changeset bcca6bb913ef (bug 1505909)
Backed out changeset afc11a5ebb6d (bug 1505909)
Backed out changeset 40f0a56ed3af (bug 1505909)
Backed out changeset 3e31f9726798 (bug 1505909)
2019-06-07 19:19:14 +03:00
Mike Conley
2bb4218aa7 Bug 1505909 - Update WebExtension menus API to use updated, Fission-aware ContextMenuChild. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D33163
2019-06-07 14:29:17 +00:00
Bogdan Tara
ea3799bc30 Backed out 6 changesets (bug 1505909) for bc failures complaining about WebNavigationChild and browser_e10s_about_page_triggeringprincipal.js CLOSED TREE
Backed out changeset 56449fd37aee (bug 1505909)
Backed out changeset 3ff09b79821c (bug 1505909)
Backed out changeset a1a2a9efe22f (bug 1505909)
Backed out changeset 8aeb77291207 (bug 1505909)
Backed out changeset 4aa17e28ee54 (bug 1505909)
Backed out changeset dbe6803d979e (bug 1505909)
2019-06-07 06:15:16 +03:00
Mike Conley
ea4da90b9f Bug 1505909 - Update WebExtension menus API to use updated, Fission-aware ContextMenuChild. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D33163
2019-06-06 20:33:02 +00:00
shindli
e799adf87f Merge inbound to mozilla-central. a=merge 2019-06-06 12:57:52 +03:00
Edouard Oger
64400aec84 Bug 1555771 p2 - Disable test_tab_events_incognito_monitored. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D33815
2019-06-05 18:15:53 +00:00
Kris Maglione
b78162a8a0 Cleanup some nonsense. r=me,test-only (no bug) 2019-06-03 13:39:54 -07:00
Jonathan Watt
9dfe17b68b Bug 1552785. Remove internal code for various frameset printing behaviors. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D33624
2019-05-21 16:01:34 +01:00
Daniel Varga
3cc8938b87 Merge mozilla-central to mozilla-inbound 2019-06-01 12:45:58 +03:00
Mark Striemer
d06bb40abc Bug 1532724 - Part 2: Handle HTML about:addons options page in APIs r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D30731
2019-05-31 16:21:02 +00:00
Marco Bonardo
dfc3f5f327 Bug 1547285 - Add the registerProvider function API. r=adw,mixedpuppy
This implements the first part of the new urlbar API to be used by many future
mozilla-signed experiments. This part sets the foundation for the "urlbar"
permission and API, and introduces a first API to register an extension provider.

Further API calls will be added in dependencies of Bug 1547279, and in particular
Bug 1547666 will add a way for these extension providers to return results for
the urlbar.

Differential Revision: https://phabricator.services.mozilla.com/D32332
2019-05-31 09:30:15 +00:00
Andrea Marchesini
5cde15b155 Bug 1554464 - Merge nsICookie2 and nsICookie in 1 single interface, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33031
2019-05-31 09:36:44 +00:00
Brian Grinstead
5caf04c8f7 Bug 1553188 - Part 4 - Update remaining references to browser.xul;r=bdahl
These are generally:
- Code comments to browser.xhtml
- Testcases, assertions that were mostly using browser.xul as a generic chrome URL
- References to the browser.xul path in tree

Differential Revision: https://phabricator.services.mozilla.com/D33208
2019-05-28 16:40:42 -07:00
Andrea Marchesini
da871a46a1 Bug 1551798 - Rename nsICookie2.SAMESITE_UNSET to nsICookie2.SAMESITE_NONE, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31214
2019-05-29 15:55:03 +00:00
arthur.iakab
f6d085aa58 Backed out 5 changesets (bug 1551798) for multiple build bustages on StaticPrefList.h CLOSED TREE
Backed out changeset c89daff34d97 (bug 1551798)
Backed out changeset bbc3f88b8c03 (bug 1551798)
Backed out changeset b87996b8a411 (bug 1551798)
Backed out changeset d88b0002d736 (bug 1551798)
Backed out changeset 0fe740c90e2b (bug 1551798)
2019-05-29 18:07:26 +03:00
Andrea Marchesini
f2a2bcb708 Bug 1551798 - Rename nsICookie2.SAMESITE_UNSET to nsICookie2.SAMESITE_NONE, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31214
2019-05-24 15:18:49 +00:00
Alexander Surkov
3e72225bf3 Bug 1519514 - convert tabbrowser-tab binding to a Custom Element, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D28662
2019-05-28 22:00:28 +00:00
Cosmin Sabou
61c6a5e4c5 Backed out 4 changesets (bug 1519514) for causing several browser chrome failures. CLOSED TREE
Backed out changeset 485c2c76fab6 (bug 1519514)
Backed out changeset 8488d800a785 (bug 1519514)
Backed out changeset 858b9456eb3c (bug 1519514)
Backed out changeset 2cd983857de6 (bug 1519514)
2019-05-29 11:01:47 +03:00
Alexander Surkov
fae3d434df Bug 1519514 - convert tabbrowser-tab binding to a Custom Element, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D28662
2019-05-28 22:00:28 +00:00
Kartikaya Gupta
16b91885f0 Bug 1553593 - Turn on browser-mochitests for windows-qr. r=jrmuizel
Depends on D32471

Differential Revision: https://phabricator.services.mozilla.com/D32472
2019-05-24 13:44:35 +00:00
Andrew Swan
1ab513d145 Bug 1519577 Convert toolbarbutton to a custom element r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D31941
2019-05-20 10:01:02 -07:00
Christoph Kerschbaumer
1b1bace614 Bug 965637: Move CSP from Principal into Client, part 3: frontend changes. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D27656
2019-05-21 23:15:08 +00:00
Cosmin Sabou
64ec5323ab Backed out 7 changesets (bug 1519577) for mochitest failures. CLOSED TREE
Backed out changeset 5192370c4f79 (bug 1519577)
Backed out changeset 2999bbc0422b (bug 1519577)
Backed out changeset bcedf1e9b09c (bug 1519577)
Backed out changeset 293af339be51 (bug 1519577)
Backed out changeset 9f311461ad1e (bug 1519577)
Backed out changeset cf4e91d423b4 (bug 1519577)
Backed out changeset 4f53ad1e3674 (bug 1519577)
2019-05-22 02:20:08 +03:00
Cosmin Sabou
14c92458c7 Bug 1519577 - Fix browser chrome failures. r=aswan 2019-05-22 01:56:55 +03:00
Andrew Swan
821cc3513a Bug 1519577 Convert toolbarbutton to a custom element r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D31941
2019-05-21 19:26:48 +00:00
Csoregi Natalia
77f2218ee7 Merge mozilla-central to autoland. CLOSED TREE 2019-05-17 00:58:59 +03:00
Doug Thayer
d72fe888e9 Bug 1547351 - Set renderroot of extension popup on browser element r=mattwoodrow
I'm not sure when/if this stopped working, but it appears the -moz-stack
display of the stack element doesn't send us through the admittedly
brittle pathways that allow us to create nsDisplayRenderRoots. This
brittleness is a consequence of copying the use of the "layer"
attribute and is discussed in the core document splitting bug. It's
outside the scope of this bug to fix that.

Differential Revision: https://phabricator.services.mozilla.com/D31006
2019-05-14 16:58:40 +00:00
Boris Zbarsky
6babe3ddd4 Bug 1551657 part 3. Stop using [array] in findLogins. r=MattN
I audited the results from
https://searchfox.org/mozilla-central/search?q=%5B%5EA-Za-z_%5D%5BFf%5DindLogins%5B%5EA-Za-z_%5D&case=true&regexp=true&path=

Differential Revision: https://phabricator.services.mozilla.com/D31119
2019-05-14 19:28:52 +00:00
Andreea Pavel
5f160b33cb Merge mozilla-inbound to mozilla-central. a=merge 2019-05-14 07:10:36 +03:00
Luca Greco
8990e1c8fb Bug 1550529 - Load tabprompts.css as document stylesheet in the XUL about:addons page. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D30655
2019-05-13 20:29:48 +00:00
Andrew Swan
40b80dc372 Bug 1549192 Remove extension shutdownReason footgun r=kmag
Checking extension.shutdownReason for any purpose other than detecting
app shutdown is unreliable, since actions such as disabing, uninstalling,
etc. may happen ito an extension after it has shut down.  Remove the
temptation for api authors to write incorrect code by removing
extension.shutdownReason and replacing it with an isAppShutdown boolean
passed to shutdown handlers.

Differential Revision: https://phabricator.services.mozilla.com/D30605
2019-05-09 19:46:38 -07:00