Commit graph

1830 commits

Author SHA1 Message Date
Oriol Brufau
6133d88831 Bug 1498917 - Make ext-sidebarAction.js consistent with ext-browserAction.js after Bug 1498917. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D8676

--HG--
extra : moz-landing-system : lando
2018-10-15 17:05:15 +00:00
tb120
fbd68cb587 Bug 1424708 - trigger a shortcut even when the number pad is used for the key r=mstriemer,mixedpuppy
Prior to this patch, if a user attempted to use a keyboard shortcut that used a numeric key, the action would not be triggered if they used the numeric key from the number pad. This patch triggers the shortcut regardless of the source.

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

--HG--
extra : moz-landing-system : lando
2018-10-15 16:43:41 +00:00
vinoth
7b887cfbbc Bug 1498885 - Assertion added in ContentSecurityPolicyPermitsJSAction() to not allow eval with SystemPrincipal r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D8683

--HG--
extra : moz-landing-system : lando
2018-10-15 08:02:04 +00:00
Tiberius Oros
81443c0ab3 Disable bug 1393760 for frequent failures on multiple platforms and build types 2018-10-13 06:28:00 +03:00
Gijs Kruitbosch
d36a59550f Bug 1497921 - make sure the window in which we try to show the ExtensionControlledPopup can show popups, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D8240

--HG--
extra : moz-landing-system : lando
2018-10-12 11:29:39 +00:00
Rob Wu
44a8b6f990 Bug 1488914 - Use about:home / about:privatebrowsing in windows.create r=rpl,dao
Use a homepage URL instead of a new tab URL by default in
browser.windows.create.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 08:47:00 +00:00
shindli
6dbc16f83e Backed out changeset 7bd7b375eb2e (bug 1497921) per developer's request CLOSED TREE 2018-10-12 01:19:46 +03:00
Gijs Kruitbosch
e05e19fa8b Bug 1497921 - make sure the window in which we try to show the ExtensionControlledPopup can show popups, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D8240

--HG--
extra : moz-landing-system : lando
2018-10-11 14:56:40 +00:00
Brindusan Cristian
a58b2b1762 Backed out changeset c844033d55eb (bug 1488914) for bc failures in /browser_ext_windows_create_cookieStoreId.js. CLOSED TREE 2018-10-11 21:58:59 +03:00
Rob Wu
1417e3ed06 Bug 1488914 - Use about:home / about:privatebrowsing in windows.create r=rpl,dao
Use a homepage URL instead of a new tab URL by default in
browser.windows.create.

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

--HG--
extra : moz-landing-system : lando
2018-10-11 14:14:50 +00:00
Eric Rahm
58f8f5b7f9 Bug 1470280 - Part 3: Use the default process count in browser_ext_slow_script.js. r=kmag
This updates the test to use a multiple of the default process count rather
than hardcoding 8.

--HG--
extra : rebase_source : b5d7d34b4994ea7e2e453ec833f218919146636f
extra : source : 403c3d0daf6a24a7bb21e9f8ca2493cb4956fb4c
2018-10-06 12:53:41 -07:00
Eric Rahm
7eab6ed58c Bug 1498054 - Increase timeout for browser extension tests under asan. r=kmag
--HG--
extra : rebase_source : 865401e41aa1090bd1bb654bcaa84cdb4b65928f
2018-10-10 15:57:53 -07:00
Dorel Luca
65f9687eb1 Backed out 4 changesets (bug 1470280) for browser-chrome failure in layout/xul/test/browser_bug703210.js. a=backout
Backed out changeset 72e7ef77480d (bug 1470280)
Backed out changeset 403c3d0daf6a (bug 1470280)
Backed out changeset fe7ccd9fee76 (bug 1470280)
Backed out changeset 60699c2387f6 (bug 1470280)
2018-10-10 10:00:19 +03:00
Gurzau Raul
2ab30dfc12 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-10 01:04:25 +03:00
shindli
115b6f10ca Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-09 19:29:29 +03:00
shindli
089182bee5 Merge inbound to mozilla-central. a=merge 2018-10-09 19:24:28 +03:00
Doug Thayer
218843ef6a Bug 1426245 - Replace OnItemAdded with bookmark-item-added r=mak
See https://docs.google.com/document/d/1G45vfd6RXFXwNz7i4FV40lDCU0ao-JX_bZdgJV4tLjk/edit#
for further info. This essentially follows the same philosophy as
the onVisits migration.

MozReview-Commit-ID: I4bOvFH0ZQR

Depends on D4605

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

--HG--
extra : moz-landing-system : lando
2018-10-09 14:47:27 +00:00
Nazım Can Altınova
ca2124b63c Bug 1414383 - Return an error if nm requires xcode license to be accepted during symbolication r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D8037

--HG--
extra : moz-landing-system : lando
2018-10-09 03:08:43 +00:00
Diego Pino Garcia
45377e5099 Bug 1481199 - Drop the obsolete dataType parameter for nsIBrowserSearchService.addEngine. r=mkaply 2018-10-09 13:39:35 +01:00
Eric Rahm
756fa95899 Bug 1470280 - Part 3: Use the default process count in browser_ext_slow_script.js. r=kmag
This updates the test to use a multiple of the default process count rather
than hardcoding 8.

--HG--
extra : rebase_source : 2aa15de90a58e38e480aca5e10f0b680820ecb2c
2018-10-06 12:53:41 -07:00
Tomislav Jovanovic
7910836509 Bug 1496532 - Stop running content scripts on preallocated new tab page r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D7976

--HG--
extra : moz-landing-system : lando
2018-10-08 19:40:20 +00:00
Siddhant085
a3f1e05d1b Bug 1479445: Update the validation of PageInfo to use validateItemProperties r=mak,Standard8
Changed the validation function for PageInfo to use a more general validateItemProperties.
This changes the error message being thrown. Changed the respective test cases to accomodate the change.

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

--HG--
extra : moz-landing-system : lando
2018-10-02 15:30:24 +00:00
Oriol Brufau
82cfa8e2d9 Bug 1489814 - Add 'populate' parameter in 'tabs.highlight'. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D7240

--HG--
extra : moz-landing-system : lando
2018-10-05 13:42:33 +00:00
Luca Greco
f46cd9fd49 Bug 1496163 - Add installTelemetryInfo to the webext themes installed using the management.install API method. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D7709

--HG--
extra : moz-landing-system : lando
2018-10-04 18:34:44 +00:00
Luca Greco
bf9a555beb Bug 1493470 - pageAction icon should not be reset on subframe navigations. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D7600

--HG--
extra : moz-landing-system : lando
2018-10-03 18:46:36 +00:00
Shane Caraveo
7a2b571838 Bug 1486819 move search engine specific logic into search service, r=mkaply
refactor some code into the search service.  This is necessary to
allow the searchservice to pull multiple locales or regions from a single
extension, based on data the searchservice maintains.

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

--HG--
extra : moz-landing-system : lando
2018-10-03 21:35:22 +00:00
Shane Caraveo
ea0139912f Bug 1486819 - support mozParams in webext search engines r=aswan,adw,mkaply
mkaply for overall search engine api changes
adw for searchservice changes.  note that a small part of it will be removed in favor of the fix from bug 1485508
aswan for webextension side.  note that I want to do better with the distribution signal, that can be in bug 1488517

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

--HG--
extra : moz-landing-system : lando
2018-10-03 20:23:16 +00:00
Luca Greco
c0768c8f7c Bug 1398734 - Support devtools.panels.elements sidebar.setPage API method. r=mixedpuppy
Depends on D5420

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

--HG--
extra : moz-landing-system : lando
2018-10-03 18:26:39 +00:00
Shane Caraveo
823fef0e70 Bug 1494135 add pinned option to page_action manifest, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D7098

--HG--
extra : moz-landing-system : lando
2018-10-02 15:39:16 +00:00
Markus Stange
8ec57ee636 Bug 1494488 - Stop demangling in the geckoProfiler WebExtension API because perf.html knows how to demangle now. r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D7335

--HG--
extra : moz-landing-system : lando
2018-10-01 22:39:28 +00:00
Rob Wu
4cb234ed7e Bug 1416839 - Add viewType/viewTypes to menus API r=mixedpuppy
- Support viewTypes property in menus.create / menus.update.
- Add info.viewType to menus.onShown / menus.onClicked event.
- This "viewType" reuses the existing extension.ViewType enum,
  which is a "tab", "popup" (pageAction/browserAction) or "sidebar".

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

--HG--
extra : moz-landing-system : lando
2018-10-01 16:56:53 +00:00
Rob Wu
89cd46a436 Bug 1494957 - Stop throwing outside of contextmenu events r=mixedpuppy
Stop checking whether `browser.menus.overrideContext` is called during
a `contextmenu` event, because the implementation cannot rely on
`window.event` due to bug 1493869.
Because of the removed check, `overrideContext` does not throw any more
when called outside of a "contextmenu" event. An extra check was added
to make sure that this does not impact menus of non-extension documents.

The new implementation has the following other effects:
- overrideContext can be called from shadow DOM (+tests).
- overrideContext can be called for context menu in a different
  (same-origin) document (e.g. a menu in a blank child frame).

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

--HG--
extra : moz-landing-system : lando
2018-10-01 15:43:54 +00:00
Alexandre Poirot
d13f51a0cb Bug 1494281 - Fix possible race around devToolsTarget promise creation r=rpl
MozReview-Commit-ID: DlB05jFPtGL

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

--HG--
extra : moz-landing-system : lando
2018-10-01 14:45:11 +00:00
arthur.iakab
6d5ae40a02 Merge inbound to mozilla-central a=merge 2018-09-29 07:16:35 +03:00
Michael Kaply
7f9771ca36 Bug 1474934 - Add support for POST search to WebExtensions r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4004

--HG--
extra : moz-landing-system : lando
2018-09-28 22:03:04 +00:00
Rob Wu
e1571e4a5a Bug 1280347 - Remove <all_urls> requirement for the "tab" context r=mixedpuppy
See https://bugzilla.mozilla.org/show_bug.cgi?id=1280347#c28

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

--HG--
extra : moz-landing-system : lando
2018-09-27 15:32:14 +00:00
Rob Wu
fd1f17a6e3 Bug 1280347 - Require a permission for the API r=mixedpuppy
The new permission is added to make it easier to audit the usage of the
API. It is an optional permission, in case we ever decide to introduce
a permission warning for it.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 08:21:07 +00:00
Rob Wu
444c304d8b Bug 1280347 - Add tests for overriding context type of extension menus r=mixedpuppy
Depends on D6624

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

--HG--
extra : moz-landing-system : lando
2018-09-27 08:21:06 +00:00
Rob Wu
7939207209 Bug 1280347 - Support changing context type to tab and bookmark r=mixedpuppy
This allows extensions to include tab/bookmark menu items from other
extensions. Built-in menu items from the browser are *not* added.

Depends on D6623

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

--HG--
extra : moz-landing-system : lando
2018-09-27 08:21:05 +00:00
Rob Wu
3e9552cda5 Bug 1367160 - Add tests for overriding extension menus r=mixedpuppy
Depends on D6622

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

--HG--
extra : moz-landing-system : lando
2018-09-25 12:18:19 +00:00
Rob Wu
ee0928a251 Bug 1367160 - Allow extensions to hide default menu items r=mixedpuppy
The new method allows extensions to modify menu items in their own
moz-extension:-pages, with the following features:

- All matching extension items are shown in the root menu (instead of
  being moved into a submenu), above other menu items, if any.
- The icons for these menu items are customizable.
- Optionally, the default menu items (including those from other
  extensions) can be hidden.

Depends on D6621

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

--HG--
extra : moz-landing-system : lando
2018-09-25 16:41:47 +00:00
Rob Wu
98a3f6c5a3 Bug 1367160 - Refactor to support multiple menu items in the root menu r=mixedpuppy
This refactor is mainly meant to support bug 1367160, but it also eases
the implementation of bug 1294429, bug 1325758 or bug 1370735 if we ever
decide to fix those bugs.

Previously, the menu was constructed by creating one root menu item
and moving the submenu to the root if there was only one item.

The refactored code constructs the menu items by generating a list of
(potentially more than one) top-level menu items, and moving excess menu
items to a submenu (as before). Besides the ability to support an
arbitrary number of top-level menu items, this new implementation also
makes it easier to insert menu items and optionally separators at
arbitrary locations in the menu.

The refactored code obsoletes some separate code paths for browserAction
and pageAction menus, which improves the maintainability of the code.

There are two user-visible functional changes in this commit:
- Excess action menu items (more than ACTION_MENU_TOP_LEVEL_LIMIT = 6)
  are not silently discarded, but shown in a submenu. See updated test.
- menus.onShown/onHidden are now always fired when the action menu is
  shown, even if the extension has not created any action menu items.

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

--HG--
extra : moz-landing-system : lando
2018-09-24 17:33:17 +00:00
shindli
a8d55dae12 Merge inbound to mozilla-central. a=merge 2018-09-27 00:52:12 +03:00
Gijs Kruitbosch
76afb51661 Bug 1493655 - make nsISecureBrowserUI initialize from a docshell instead of a window, r=keeler,nika
This also removes the (afaict, unused) stub implementation from TabParent. The netwerk header
inclusions were necessary because those files included TabParent.h and through it,
nsISecureBrowserUI, but now TabParent.h no longer does that.

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

--HG--
extra : moz-landing-system : lando
2018-09-26 17:48:38 +00:00
Jason Chapin
98b0880306 Bug 1451715 - Rename {get,set,delete}{Window,Global}Value to match {get,set,delete}CustomTabValue. r=dao 2018-09-25 14:21:57 -04:00
Rob Wu
b01f6cff04 Bug 1494304 - Avoid duplicate head.js in browser extension tests r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D6907

--HG--
extra : moz-landing-system : lando
2018-09-26 15:14:12 +00:00
Tiberius Oros
edaadd3804 Backed out changeset d4c858c70bc9 (bug 1479445) for failing xpcshell at services/sync/tests/unit/test_corrupt_keys.js on a CLOSED TREE 2018-09-25 23:14:52 +03:00
Siddhant085
2bd3beeba9 Bug 1479445: Update the validation of PageInfo to use validateItemProperties r=mak,Standard8
Changed the validation function for PageInfo to use a more general validateItemProperties.
This changes the error message being thrown. Changed the respective test cases to accomodate the change.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 18:21:56 +00:00
Andrew Swan
1c46cdfb02 Bug 1494023 Add missing head.js for extension browser tests r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D6816

--HG--
extra : moz-landing-system : lando
2018-09-25 17:10:59 +00:00
Alexandre Poirot
fc8714580a Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: KmFi1LIUBga
2018-09-24 09:52:57 -07:00