Commit graph

1451 commits

Author SHA1 Message Date
Rob Wu
14dd429c5a Bug 1515810 - Fix intermittent issue in bookmark menu tests r=mixedpuppy
Depends on D16414

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

--HG--
extra : moz-landing-system : lando
2019-01-14 15:44:32 +00:00
Peter Simonyi
e5ce9dc61b Bug 1419195: Show items from WebExtensions in Places Library context menu r=mixedpuppy
Depends on D16413

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

--HG--
extra : moz-landing-system : lando
2019-01-14 15:43:29 +00:00
Peter Simonyi
b60acb13d1 Bug 1419195: Show items from WebExtensions in bookmarks sidebar context menu r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D16413

--HG--
extra : moz-landing-system : lando
2019-01-14 15:41:27 +00:00
Mark Striemer
7aba48c482 Bug 1303384 - Part 4: Localize command descriptions r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D6346

--HG--
extra : moz-landing-system : lando
2019-01-12 02:25:23 +00:00
Mark Striemer
50cfffaeaa Bug 1303384 - Part 2: Move some extension shortcut utils to ShortcutUtils r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D4506

--HG--
extra : moz-landing-system : lando
2019-01-11 22:32:39 +00:00
Luca Greco
936e293c1c Bug 1518883 - Fix browser_ext_optionsPage_popups.js high intermittency on linux32-debug. r=mixedpuppy
This patch applies the following small change to the openContextMenuInOptionsPage test helper:

Instead of using BrowserTestUtils.synthesizeMouseAtCenter, the new version of the test helper
triggers a contextmenu event directly on the target element, to prevent intermittent failures
on debug builds (especially linux32-debug).

The intermittent failures seem to be originated by an unexpected behavior of DOMWindowUtils's
sendMouseEvent method, which is randomly triggering mouse events targeting the entire HTML document
instead of the intended DOMElement (despites the EventUtils.js "synthesizeMouseAtPoint" method is
computing the same `left` and `top` position in both the cases).

It seems that there could be some timing reasons behind the issue, because the intermittency
is reduced by adding an arbitrary long delay before triggering the mouse event.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 11:48:52 +00:00
Luca Greco
0a6194aedc Bug 1519121 - Fix browser_ext_optionsPage_popups.js test failure on 66 Beta due to userContext feature disabled. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D16219

--HG--
extra : moz-landing-system : lando
2019-01-10 19:12:41 +00:00
Luca Greco
49a13352a4 Bug 1468460 - Fix and test extension menus and menus.overrideContext on options_ui pages. r=mixedpuppy,robwu
Depends on D9920

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

--HG--
extra : moz-landing-system : lando
2019-01-08 22:23:00 +00:00
Luca Greco
b003d66246 Bug 1468460 - Support context menu in WebExtensions options pages embedded inside an about:addons tab. r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D9920

--HG--
extra : moz-landing-system : lando
2019-01-07 20:53:13 +00:00
alwu
b19b9b34f5 Bug 1513039 - part11 : remove pref 'media.autoplay.ask-permission'. r=cpearce
Depends on D14335

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

--HG--
extra : moz-landing-system : lando
2019-01-07 18:41:58 +00:00
Timothy Guan-tin Chien
bd38b39f8a Bug 1512048 - Convert tabmodalprompt binding to JSM module r=Gijs
This converts the tabmodalprompt binding to a class, to be constructed along side with the element
by TabModalPromptBox.

TabModalPromptBox will keep the instances in a map and pass it to the callers, instead of the element.
The tests and callers can access the class instance by passing the element reference to the map.

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

--HG--
rename : toolkit/components/prompts/content/tabprompts.xml => toolkit/components/prompts/content/tabprompts.jsm
extra : moz-landing-system : lando
2019-01-04 19:29:34 +00:00
Cosmin Sabou
eb8c25f1d5 Bug 1433892 - Disable browser_ext_menus_events.js on Linux for frequent failures. r=jmaher 2018-12-26 17:39:00 +02:00
Raul Gurzau
aff4f71c95 Bug 1483701 - Disable browser_ext_browserAction_popup_resize.js on Windows, Linux and Mac, debug and verify. r=jmaher 2018-12-23 14:23:00 +02:00
Cosmin Sabou
e12cb4cd66 Bug 1504096 - disabled browser_ext_browserAction_context.js on linux debug r=jmaher 2018-12-22 21:13:09 +02:00
Shane Caraveo
b41b05810e Bug 1514673 allow WINDOW_ID_NONE in focus listener, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D14881

--HG--
extra : moz-landing-system : lando
2018-12-19 16:06:35 +00:00
Shane Caraveo
86f1948e8b Bug 1513717 fix browser_ext_tabs_events intermittent failure, r=rpl
The test failed if onHighlighted was received late, since it has an array of IDs.  This change should address any case where we need to get the tab from id.

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

--HG--
extra : moz-landing-system : lando
2018-12-19 15:54:53 +00:00
Andrew Swan
57a0ea1bc6 Bug 1498027 Defer window/browser creation for extension pages r=kmag
Also, use a single hidden window to hold <browser> elements
for multiple extensions.

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

--HG--
rename : browser/components/extensions/test/browser/browser_ext_tabs_cookieStoreId.js => browser/components/extensions/test/browser/browser_ext_tabs_cookieStoreId_private.js
extra : moz-landing-system : lando
2018-12-14 03:36:14 +00:00
Shane Caraveo
b8b0e4b612 Bug 1506653 support disabling page action for private windows, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D11805

--HG--
extra : moz-landing-system : lando
2018-11-20 18:24:38 +00:00
Shane Caraveo
dccda62965 Bug 1345474 - support showInPrivateBrowsing in browserAction, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D11670

--HG--
extra : moz-landing-system : lando
2018-12-10 21:32:04 +00:00
Shane Caraveo
71f6118fe9 Bug 1345474 - Check incognito access for windows api r=rpl
Depends on D4111

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

--HG--
extra : moz-landing-system : lando
2018-12-10 21:30:05 +00:00
Shane Caraveo
a266d2a772 Bug 1345474 - Check incognito access for tabs api r=rpl
Depends on D4110

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

--HG--
extra : moz-landing-system : lando
2018-12-12 13:54:55 +00:00
Shane Caraveo
712e57664e Bug 1345474 - protect access to base window and tab classes r=rpl
Depends on D4109

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

--HG--
extra : moz-landing-system : lando
2018-12-10 21:28:33 +00:00
Shane Caraveo
593042d7b1 Bug 1345474 - Check incognito access for content scripts r=rpl
Depends on D4100

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

--HG--
extra : moz-landing-system : lando
2018-12-10 21:27:45 +00:00
Noemi Erli
a5c0369219 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-08 00:18:17 +02:00
Emilio Cobos Álvarez
6729b2a1c2 Bug 1511138 - Fix / update tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D13550
2018-12-07 14:23:31 -05:00
arthur.iakab
168846ee68 Backed out 5 changesets (bug 1511138) for causing eslint failure on SelectChild.jsm CLOSED TREE
Backed out changeset daee82295b3c (bug 1511138)
Backed out changeset d23c9c3e1566 (bug 1511138)
Backed out changeset a99600391704 (bug 1511138)
Backed out changeset 4ef293b90887 (bug 1511138)
Backed out changeset 4df286b234b3 (bug 1511138)
2018-12-07 20:55:24 +02:00
Emilio Cobos Álvarez
3767b3a6d1 Bug 1511138 - Fix / update tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D13550
2018-12-07 13:01:01 -05:00
Luca Greco
5555f4c1cc Bug 1512421 - contextMenus documentUrlPatterns should allow unrestricted schemes on privileged mozilla addons. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D13907

--HG--
extra : moz-landing-system : lando
2018-12-07 16:46:32 +00:00
Luca Greco
dfbc857688 Bug 1511483 - pageAction show_matches/hide_matches should allow unrestricted schemes on privileged mozilla addons. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D13582

--HG--
extra : moz-landing-system : lando
2018-11-30 22:30:39 +00:00
Razvan Maries
d696b8eb57 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-11-29 23:46:52 +02:00
Luca Greco
93075fc624 Bug 1472740 - Avoid LWT aliases in theme API tests that are not specifically about LWT aliases. r=ntim,jaws
This patch replace the LWT aliases with their related non-deprecated alias in all the theme API tests
that don't seem to be specifically testing the LWT aliases (e.g. browser_ext_themes_lwtsupport.js is
leaved unmodified for this reason).

The main reason to replace them in the "not stricly LWT-related" tests before their final removal
(currently planned for Firefox 69) is that the deprecation warnings will make these tests more
noisy (and so they may be making harder to investigate failures, without any actual gain in terms
of coverage).

Depends on D12297

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

--HG--
extra : moz-landing-system : lando
2018-11-26 16:10:36 +00:00
Coroiu Cristina
47323ec73b Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-11-28 23:56:03 +02:00
Coroiu Cristina
d4aafa8e1c Merge inbound to mozilla-central a=merge 2018-11-28 23:49:09 +02:00
hawaiianchimp
53d1150f9c Bug 1500320 - Updating the omnibox keyword regex to allow trailing slashes r=robwu,aswan
Previously the omnibox keyword would not allow trailing slashes, such as go/
Chrome allows this keyword, and Firefox should allow this too.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 23:16:22 +00:00
Ryan Hendrickson
c81dc8dd55 Bug 1500479 - Part 2: expose tab successors in browser.tabs; r=mixedpuppy,rpl
1. Add successorTabId to the Tab type, so that it will be returned in, e.g.,
   browser.tabs.get calls

2. Extend or create the following methods on the browser.tabs API:
  - update: add successorTabId as an optional property on the provided
    updateProperties object
  - moveInSuccession: new method that manipulates tab successors in bulk

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

--HG--
extra : moz-landing-system : lando
2018-11-26 04:17:00 +00:00
Ryan Hendrickson
86f002c544 Bug 1500479 - Part 1: browser.tabs.onActivated; r=mixedpuppy,rpl,JanH
Add an optional previousTabId property to the onActivated event,
which is present if the previously activated tab is still open.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 04:16:30 +00:00
Andrea Marchesini
f399725b04 Bug 1503681 - rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set - fix tests, r=me 2018-11-28 08:22:06 +01:00
Brindusan Cristian
025923e8bc Backed out 3 changesets (bug 1503681) for geckoview failures on org.mozilla.geckoview.test.GeckoSessionTestRuleTest.waitForChromeJS. CLOSED TREE
Backed out changeset 211c7dfdc408 (bug 1503681)
Backed out changeset 076cc5bece1d (bug 1503681)
Backed out changeset 7a19fe6be68c (bug 1503681)
2018-11-28 11:10:48 +02:00
Andrea Marchesini
d69ebc1ae7 Bug 1503681 - rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set - fix tests, r=me 2018-11-28 08:22:06 +01:00
Siddhant085
87b814fa1e Bug 1453264 - Dropping nsIBrowserSearchService::currentEngine in favour of defaultEngine. r=Standard8
All instances of nsIBrowserSearchService::currentEngine have been replaced by nsIBrowserSearchService::defaultEngine. Dropping this variable now.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 15:21:11 +00:00
Rob Wu
66c7ebb828 Bug 1508144 - Ignore clicks on non-clickable menu items r=mixedpuppy
Bug 1469148 added support for detecting which mouse button was used,
by synthetizing "command" events when a "click" event was captured.
The implementation did not account for unclickable menu items, such
as items that act as the parent of a submenu (see bug report),
separators and disabled menu items.

This patch adds the necessary checks and regression tests for these
scenarios to make sure that such clicks are ignored, as expected.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 15:09:26 +00:00
Nazım Can Altınova
52910a3163 Bug 1476775 - Part 1: Discard samples that are older than given duration r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6267

--HG--
extra : moz-landing-system : lando
2018-11-21 14:13:15 +00:00
Jan Varga
3177670987 Bug 1286798 - Part 42: Implement snapshot reusing; r=asuth
This improves performance by keeping snapshots around for some time if there are no changes done by other processes. If a snapshot is not destroyed immediately after getting into the stable state then there's a chance that it won't have to be synchronously created again when a new opeartion is requested.
2018-11-29 21:49:31 +01:00
Jan Varga
7313de76cd Bug 1286798 - Part 15: Fix clearLocalStorage() in browser extensions; r=asuth 2018-11-29 21:48:01 +01:00
Jan Varga
709a73dabf Bug 1286798 - Part 14: Enhance clearStoragesForPrincipal() to support clearing of storages for specific quota client; r=asuth
See also bug 1402254, original patch by baku.
2018-11-29 21:47:58 +01:00
Jan Varga
60831f2e38 Bug 1286798 - Part 3: New basic (memory only) implementation of LocalStorage; r=asuth,mccr8
The implementation is based on a cache (datastore) living in the parent process and sync IPC calls initiated from content processes.
IPC communication is done using per principal/origin database actors which connect to the datastore.
The synchronous blocking of the main thread is done by creating a nested event target and spinning the event loop.
2018-11-29 21:47:20 +01:00
Nicklas Boman
a9556eefe3 Bug 1370224 - Fallback to extension icon for browser/page action r=mstriemer,mixedpuppy
--HG--
extra : rebase_source : 5c443503c9918b4ed9b0cbf79a2263c4b290ef7b
extra : amend_source : b0e2068e77cde6003a5159d189b6f88027472896
2018-11-04 20:03:15 +01:00
arthur.iakab
c0b26c4076 Merge inbound to mozilla-central a=merge 2018-11-15 11:54:15 +02:00
Timothy Guan-tin Chien
2b5881e46b Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

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

--HG--
extra : moz-landing-system : lando
2018-11-15 06:51:07 +00:00
Andreea Pavel
d51566f085 Backed out 2 changesets (bug 1503019) for failing crashtests at dom/base/crashtests/1505811.html on a CLOSED TREE
Backed out changeset 06b12fd41ff1 (bug 1503019)
Backed out changeset 7b845eac9dd7 (bug 1503019)
2018-11-15 01:52:30 +02:00
Andreea Pavel
9cabbb0b47 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-11-15 00:35:07 +02:00
Paolo Amadini
f6b106efb2 Bug 1496827 - Remove the "notification" binding. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D11650

--HG--
rename : browser/components/customizableui/content/.eslintrc.js => browser/components/translation/content/.eslintrc.js
rename : browser/components/translation/jar.mn => browser/components/translation/content/jar.mn
rename : browser/components/translation/microsoft-translator-attribution.png => browser/components/translation/content/microsoft-translator-attribution.png
rename : browser/components/customizableui/content/moz.build => browser/components/translation/content/moz.build
rename : browser/components/translation/translation-infobar.xml => browser/components/translation/content/translation-notification.js
extra : rebase_source : 598396d2da96b04782413946976f7bb9fb6be75f
2018-11-13 12:56:42 +00:00
Timothy Guan-tin Chien
c0cc4f74e7 Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

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

--HG--
extra : moz-landing-system : lando
2018-11-14 19:34:52 +00:00
Andreea Pavel
71b3a6709d Backed out 2 changesets (bug 1500479) for failing bc at browser/components/extensions/test/browser/browser_ext_tabs_events.js on a CLOSED TREE
Backed out changeset 6f209bee42c5 (bug 1500479)
Backed out changeset 02ea631f55c3 (bug 1500479)
2018-11-14 21:09:19 +02:00
Ryan Hendrickson
180811af32 Bug 1500479 - Part 2: expose tab successors in browser.tabs; r=mixedpuppy,rpl
1. Add successorId to the Tab type, so that it will be returned in, e.g.,
   browser.tabs.get calls

2. Extend or create the following methods on the browser.tabs API:
  - update: add successorTabId as an optional property on the provided
    updateProperties object
  - moveInSuccession: new method that manipulates tab successors in bulk

Depends on D4731

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

--HG--
extra : moz-landing-system : lando
2018-11-14 17:24:36 +00:00
Ryan Hendrickson
253883c531 Bug 1500479 - Part 1: browser.tabs.onActivated; r=mixedpuppy,rpl,JanH
Add an optional previousTabId property to the onActivated event,
which is present if the previously activated tab is still open.

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

--HG--
extra : moz-landing-system : lando
2018-11-14 17:22:26 +00:00
Siddhant085
6218cd4d20 Bug 1503851 - Replace Services.search.currentEngine by defaultEngine in test code r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D11553

--HG--
extra : moz-landing-system : lando
2018-11-13 09:34:00 +00:00
Brian Grinstead
b57202f633 Bug 1503342 - Rename richlistbox.children to richlistbox.itemChildren so .children will refer to the normal DOM API;r=paolo
In Bug 1479125 we put calls to .children that were intended to access child elements into the custom
method, which is a slower path. We may eventually want to remove itemChildren altogether and just assume
that all children are items, but that's out of scope for a perf fix like this.

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

--HG--
extra : moz-landing-system : lando
2018-11-11 13:21:18 +00:00
Jared Wein
5a6ffe9618 Bug 1505328 - Remove the theme transition from the title bar. r=dao
This patch solves half of the problem but it will still show the transition when the window regains focus. I am OK with removing the transition on the title bar, we will still have it on the navbar and bookmarks toolbar.

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

--HG--
extra : moz-landing-system : lando
2018-11-08 22:35:51 +00:00
Andrew Swan
cec5e01ad1 Bug 1500265: Remove support for hybrid WebExtensions. r=kmag
--HG--
extra : rebase_source : 92eeb2fd34cc6e9f3361bc0ee33b40f59379ea86
extra : amend_source : 7126a6de6953affabc4530638ab23fe230dcd9c4
2018-11-14 15:47:21 -08:00
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