Commit graph

1341 commits

Author SHA1 Message Date
Jan-Erik Rediger
50555e7773 Bug 1468761 - Migrate external Telemetry tests to handle packed histograms r=chutten
Depends on D9236

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

--HG--
extra : moz-landing-system : lando
2018-11-01 13:46:59 +00:00
Oriol Brufau
d57ad11213 Bug 1503600 - Reorder "Manage Extension" and "Remove Extension" in browserAction context menu. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D10382

--HG--
extra : moz-landing-system : lando
2018-10-31 16:55:06 +00:00
Rob Wu
4fb6b2bad9 Bug 1501006 - Reject cookieStoreId when contextual identities are disabled r=mixedpuppy
Depends on D9517

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

--HG--
extra : moz-landing-system : lando
2018-10-29 13:23:12 +00:00
Rob Wu
e757ef0aee Bug 1501006 - Reject cookieStoreId in perma-private browsing mode r=mixedpuppy
Until container tabs are supported in private browsing mode
(bug 1320757), extensions should not be able to open container tabs when
perma-private browsing mode is off.

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

--HG--
extra : moz-landing-system : lando
2018-10-29 13:23:00 +00:00
Dão Gottwald
5a62defc27 Bug 1501624 - Add a method for setting the value from a result and migrate urlbar tests away from setting textValue. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D9764

--HG--
extra : moz-landing-system : lando
2018-10-26 09:52:23 +00:00
Ciure Andrei
3498e5207f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-10-23 19:51:00 +03:00
YUKI "Piro" Hiroshi
1451abf5f2 Bug 1500180 - Take around only geometry data of the fallback tab for pended operations. r=mixedpuppy 2018-10-23 10:12:46 +09:00
Julian Descottes
2fcd6cb020 Bug 1499096 - Update tests using ok() to is();r=Standard8
This changeset updates all the test that were wrongly using ok() and wanted to
use is() AND for which the assert is still passing without any modification
required.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 07:12:23 +00:00
Csoregi Natalia
6ddd7d4134 Backed out 3 changesets (bug 1468761) for telemetry related xpcshell failures. CLOSED TREE
Backed out changeset 8c08dcec61d8 (bug 1468761)
Backed out changeset 9ee8406cf1d3 (bug 1468761)
Backed out changeset 65bfae07e0f4 (bug 1468761)
2018-10-22 19:28:56 +03:00
Jan-Erik Rediger
2cb5051a6c Bug 1468761 - Migrate external Telemetry tests to handle packed histograms r=chutten
Depends on D9236

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

--HG--
extra : moz-landing-system : lando
2018-10-22 15:26:34 +00:00
Rob Wu
3644913b9c Bug 1498896 - Apply documentUrlPatterns to original target document when viewTypes is set r=mixedpuppy
Usually, documentUrlPatterns applies to the URL of the document where
the context menu is opened. In some cases, there is no document, such
as menus on browser UI (extension action buttons, tools menu, tabs).
In these cases, `documentUrlPatterns` matches the (active) tab's URL.

This causes ambiguity when `browser.menus.overrideContext` is used to
change the context to the "tab" context.
Before this patch, `documentUrlPatterns` applied to the tab's URL.
After this patch, `documentUrlPatterns` applies to the URL of the
document where the menu was opened, *if* `viewTypes` is also set.
Using this property is a strong signal from the extension that the menu
is meant to be shown in a document rather than browser UI, so extensions
can reasonably expect `documentUrlPatterns` to match the original
document's URL instead of the URL of the spoofed tab context.

There was no existing test coverage for documentUrlPatterns on tab
contexts, so this does not only add tests for documentUrlPatterns on
overridden contexts (browser_ext_menus_replace_menu_context.js), but
also documentUrlPatterns in normal tab contexts (browser_ext_menus.js).

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

--HG--
extra : moz-landing-system : lando
2018-10-22 14:17:29 +00:00
Luca Greco
997341a428 Bug 1393760 - Fix intermittency and re-enabled browser_ext_devtools_panels_elements. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D8717

--HG--
extra : moz-landing-system : lando
2018-10-16 16:58:31 +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
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
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
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
Diego Pino Garcia
45377e5099 Bug 1481199 - Drop the obsolete dataType parameter for nsIBrowserSearchService.addEngine. r=mkaply 2018-10-09 13:39:35 +01: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
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
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
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
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
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
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
082e20e693 Bug 1485676 - Connect to local server from TargetFactory.forTab and make TabTarget always remote-like. r=yulia
Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: JAwiySsBZBu
2018-09-24 09:52:55 -07:00
Alexandre Poirot
dc5f0efff6 Bug 1485676 - Refactor gDevTools.getTargetForTab callsites to assume getTargetForTab is async. r=yulia
Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: FyERWaYipZo
2018-09-24 09:52:47 -07:00
shindli
51a3c01ced Backed out 9 changesets (bug 1485676) for failures in browser/tools/mozscreenshots/devtools/browser_devtools.js CLOSED TREE
Backed out changeset d358feec4ca1 (bug 1485676)
Backed out changeset ed554dbb062f (bug 1485676)
Backed out changeset 6e78058df94d (bug 1485676)
Backed out changeset 3a6f1b0e71f4 (bug 1485676)
Backed out changeset 16d2403aa787 (bug 1485676)
Backed out changeset 454eddf52157 (bug 1485676)
Backed out changeset 926f725f2183 (bug 1485676)
Backed out changeset fb03f174bd5f (bug 1485676)
Backed out changeset ceb93dd1799a (bug 1485676)
2018-09-24 15:27:27 +03:00
Andrea Marchesini
b958c6f170 Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 3 - nsICookieManager.cookieExists, r=ehsan 2018-09-24 11:37:57 +02:00
Andrea Marchesini
61a7f9a598 Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 1 - nsICookieManager.add(), r=ehsan 2018-09-24 11:37:56 +02:00
Alexandre Poirot
631e7bfdf9 Bug 1485676 - Connect to local server from TargetFactory.forTab and make TabTarget always remote-like. r=yulia
Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: JAwiySsBZBu
2018-09-24 01:25:01 -07:00
Alexandre Poirot
35bc2e7546 Bug 1485676 - Refactor gDevTools.getTargetForTab callsites to assume getTargetForTab is async. r=yulia
Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: FyERWaYipZo
2018-09-24 01:24:58 -07:00
Rob Wu
6a8bd50325 Bug 1393570 - Support cookieStoreId in windows.create extension API r=Gijs,rpl
Other (internal API) changes besides extension API changes:

- This also introduces support for opening a window with multiple tabs
  in a non-default container tab.

- This also adds LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL to the
  gBrowser.loadTabs call, unless allowInheritPrincipal is set.
  For backwards-compatibility, this flag defaults to true.

Depends on D4928

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

--HG--
extra : moz-landing-system : lando
2018-09-19 10:57:48 +00:00