Commit graph

3061 commits

Author SHA1 Message Date
Edwin Gao
e7669e0875 Bug 1525785 - include aarch64 in list of validArchs for xpcshell test that checks architecture r=jmaher,gbrown
This should address the bug noted above, as well as several other bugs where `validArchs` is responsible for TEST-UNEXPECTED-FAIL.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 22:47:49 +00:00
Shane Caraveo
5b5b01194d Bug 1524001 update manifest to validate manifest.icons, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18105

--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_manifest.js => browser/components/extensions/test/xpcshell/test_ext_manifest.js
extra : moz-landing-system : lando
2019-02-14 01:32:31 +00:00
Brindusan Cristian
44cac3f90f Backed out changeset eac52dd0d152 (bug 1525846) for mochitest failures at test_chrome_ext_permissions.html and bc failures at browser_webext_incognito.js. 2019-02-14 03:29:33 +02:00
Shane Caraveo
1e955787e8 Bug 1525846 ensure ExtensionPermissions is fully initialized prior to changing r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D19199

--HG--
extra : moz-landing-system : lando
2019-02-14 00:34:19 +00:00
Rob Wu
861487eec5 Bug 1522918 - Fully remove optional permission data upon uninstall r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D18217

--HG--
extra : moz-landing-system : lando
2019-02-12 14:04:39 +00:00
Luca Greco
d787d73489 Bug 1527330 - Fix test_ext_userScript_exports.js failure on beta. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D19533

--HG--
extra : moz-landing-system : lando
2019-02-13 17:30:20 +00:00
Shane Caraveo
d826634cd4 Bug 1516709 support incognito in downloads api r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D17426

--HG--
extra : moz-landing-system : lando
2019-02-13 15:20:04 +00:00
Logan Smyth
e962578670 Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 02:55:21 +00:00
Andreea Pavel
e754faad17 Backed out 3 changesets (bug 1518661) for failing test_promise_rejections_from_jsimplemented.html
Backed out changeset d381785b0c4c (bug 1518661)
Backed out changeset 4a8b38e5373b (bug 1518661)
Backed out changeset 64ebb085a6b3 (bug 1518661)

--HG--
extra : rebase_source : 7e4c5c4cd0b2ea9e48238e6083fdfc01b3f9bd16
2019-02-13 04:27:22 +02:00
Logan Smyth
2efd56750c Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 23:46:27 +00:00
Andreea Pavel
7b1605af56 Backed out 3 changesets (bug 1525959, bug 1526002) for failing android
Backed out changeset de0efca1118e (bug 1526002)
Backed out changeset 503cbc86e442 (bug 1525959)
Backed out changeset 33ea61c54aea (bug 1525959)
2019-02-12 23:53:05 +02:00
Jonathan Kingston
3421b8fcff Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

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

--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
James Willcox
c7a8bf9699 Bug 1526002 - Replace 'isFennec' with 'is_fennec' in mochitest.ini r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D19038

--HG--
extra : moz-landing-system : lando
2019-02-10 19:07:57 +00:00
James Willcox
228b5844d5 Bug 1525959 - Skip some mochitests tests under GeckoView r=geckoview-reviewers,esawin
There are few things that are either Fennec-specific or don't work
currently under GeckoView w/ e10s under TestRunnerActivity. Disable
these so we can get some testing going in automation.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 15:15:28 +00:00
Csoregi Natalia
5d10478fe1 Backed out 3 changesets (bug 1518661) for failures on dom/bindings/test/test_exception_options_from_jsimplemented.html. CLOSED TREE
Backed out changeset aeaa74707320 (bug 1518661)
Backed out changeset 12df8c46ef78 (bug 1518661)
Backed out changeset a4ff0bd9ff80 (bug 1518661)
2019-02-12 06:25:57 +02:00
Logan Smyth
1677d55556 Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 01:28:27 +00:00
Luca Greco
6f372ca372 Bug 1525200 - Add an xpcshell test which loads all the WebExtensions API modules. r=zombie
This patch defines a new xpcshell test which loads all the WebExtensions API modules twice,
first in alphabetic order and then again in reversed order.

The goal of this new test is to make it easier to detect issues with API module loading,
because all these API modules are loaded lazily in a shared global and it can fail
if multiple API modules defines the same global in incompatible ways (e.g. something which
is defined as a `const` in one module, and then as a `var` in a different one).

Depends on D18683

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

--HG--
extra : moz-landing-system : lando
2019-02-11 20:08:59 +00:00
Luca Greco
292c6a749e Bug 1512741 - Split userScripts xpcshell test and re-enable it on android debug build. r=robwu
This patch move the part of test_ext_userScripts.js that is testing the userScripts' export API helpers
(script.defineGlobals and script.export) into a separate test_ext_userScripts_exports.js test file.

Based on the logs from the intermittent failures of the test_ext_userScripts.js test file
on android debug builds, it seems that this xpcshell test was just timing out while exiting after all
the test tasks were actually completed.

The results got from pushing to try this patch seems to confirm that once the test tasks are splitted
over two test files, the intermittent failures are not being triggered anymore on the android debug
builds.

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

--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_userScripts.js => toolkit/components/extensions/test/xpcshell/test_ext_userScripts_exports.js
extra : moz-landing-system : lando
2019-02-06 11:45:51 +00:00
shindli
346a7d1be9 Backed out 4 changesets (bug 1518661) for spidermonkey build bustages CLOSED TREE
Backed out changeset 6c45ce836a12 (bug 1518661)
Backed out changeset dd2caed01823 (bug 1518661)
Backed out changeset 02ddcca425a2 (bug 1518661)
Backed out changeset 8bad1d8c8944 (bug 1518661)
2019-02-09 03:16:14 +02:00
Logan Smyth
4ea937d283 Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-08 22:39:23 +00:00
Andrew Swan
34eebd4863 Bug 857458 Remove addon manager update.rdf support r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18793

--HG--
extra : rebase_source : ba8d6ebc630c020dc46951ce72f93a91cf8d0349
extra : source : 55736daf0dc59cb10ce4ade6709312c9f317f549
2019-02-05 10:22:20 -08:00
Alex Gaynor
0f01791ffc Bug 1512990 - Part 4 - remove declarations of Recv/Answer methods from IPDL protocol base class; r=froydnj
For cases where the class has direct calls (that is, we cast `this` to the
subclass before making the call) no longer declare Recv/Answer methods on the
base class at all. This should ensure that slots for them are not generated in
vtables, and also allow the derived class to choose the method signature (e.g.
whether it wants to take something by reference or by value).

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

--HG--
extra : moz-landing-system : lando
2019-02-06 15:58:43 +00:00
Alex Gaynor
75c7d1fa76 Bug 1512990 - Part 2 - implement direct calls in the IPDL compiler; r=froydnj
When calling a Recv/Alloc/Dealloc method on most types, cast `this` to the
derived class.

There is a heuristic to figure out what the correct derived type is. There is a
blacklist of types which we can't do direct calls on for the moment, as well as
an override for types that do work with direct calls but which don't match the
heuristic.

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

--HG--
extra : moz-landing-system : lando
2019-02-06 15:57:37 +00:00
Andrew Swan
84de729f2c Bug 1525445 Part 2: Move users of Extension.generate to ExtensionTestCommon r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18753

--HG--
extra : rebase_source : 8df66f0ae26dbe126a6bf426532ea3f3ec030f0e
2019-01-03 14:22:44 -08:00
Andrew Swan
f527f0e6ff Bug 1504056 Part 1: Refactor AddonManager.getInstallForURL() arguments r=kmag
AddonManagergetInstallForURL() has a number of optional arguments, most
of which are passed infrequently.  Convert them from positional arguments
to a single options object.

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

--HG--
extra : rebase_source : 503c09b54fab90cefe69286b05def43ef70074df
2019-02-01 15:23:55 -08:00
Mike de Boer
481ae95c00 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

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

--HG--
rename : netwerk/base/nsIBrowserSearchService.idl => toolkit/components/search/nsISearchService.idl
extra : moz-landing-system : lando
2019-02-02 11:27:21 +00:00
Jared Wein
49653012dd Bug 1520966 - Make toolkit/components/passwordmgr/test/text_xhr.html work with e10s. r=MattN
I didn't use the checkPromptModal function because the implementation in chromeScript was getting a null document reference. Since handlePrompt already has access to this information it made sense to extend handlePrompt to cover more cases.

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

--HG--
rename : toolkit/components/passwordmgr/test/test_xhr.html => toolkit/components/passwordmgr/test/mochitest/test_xhr.html
extra : rebase_source : fdd7b11b6d8cace8b7bef63228aa95f3fceca6df
2019-02-01 20:15:02 +00:00
Alexander Surkov
599d3ecb6b Bug 1519486 - convert autocomplete-richlistitem XBL binding to CE, r=MattN 2019-01-24 08:40:36 -05:00
Shane Caraveo
90b3961ab4 Bug 1524324 don't add private permission for temporary addon installs, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D18248

--HG--
extra : moz-landing-system : lando
2019-01-31 19:49:46 +00:00
Luca Greco
76ae7167ab Bug 1258897 - Ensure that both test_ext_sendmessage_reply2 tab scripts are ready to exchange messages. r=mixedpuppy
This test seems to be still failing intermittently, and its intermittency rate looks high enough.

Looking to the logs collected on the recent intermittent failures, it seems that the issue
is still related to the extension tabs opened in the test:

The two extension tabs (each one part of one of the two test extension) are going to exchange messages
between each other, and currently there is a chance (and apparently a very good chance) that one of the
two extension tabs is not yet ready to listen to the messages sent from the other extension tab.

This patch applies to the test the additional changes needed to ensure that both the extension tabs
are ready to exchange messages, before we let them exchange these messages over the extension messaging
API.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 16:43:30 +00:00
edward.i.wu
49e491e837 Bug 1450114 -Update browser themes to allow customization of selection background and text r=jaws
Bug 1450114 -Update browser themes to allow customization of selection background and text r=Jaws

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

--HG--
extra : moz-landing-system : lando
2019-01-31 13:28:30 +00:00
Shane Caraveo
ee22875ff0 Bug 1513347 document automated testing of the incognito feature r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D17507

--HG--
extra : moz-landing-system : lando
2019-01-30 20:48:18 +00:00
Shane Caraveo
5c8682b0c0 Bug 1516708 commands api incognito support r=mstriemer,zombie
Prevent adding commands to private windows when extensions do not have permission.

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

--HG--
extra : moz-landing-system : lando
2019-01-30 19:24:43 +00:00
Luca Greco
8372c1ce21 Bug 1398518 - Fix test_ext_notifications.html intermittency and re-enable it. r=mixedpuppy
Based on what I've been able to reproduce locally using --verify, there is a chance that
the notifications created by the test case named `test_notifications_populated_getAll`
may have been removed before the `browser.notifications.getAll` is going to retrieve them,
and when this happens the test gets stuck because `browser.test.notifyPass("getAll populated");`
is never reached, and the test timeouts.

This patch includes the following changes to prevent the intermittent failure described above:

- add a new head_notifications.js support file and create a new MockAlertsService test helper that
  loads a chrome script which replace the alerts service with a mock service (based on a
  similar mock defined in dom/notification/test/mochitest/MockServices.js), the mocked alert
  service doesn't close the notification until the test case itself has called
  `MockAlertsService.clearNotifications` (so that the test shouldn't fail intermittently as
  described above).

- applies the changes needed on test_ext_notifications.html to make use of the MockAlertsService

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

--HG--
rename : dom/notification/test/mochitest/MockServices.js => toolkit/components/extensions/test/mochitest/head_notifications.js
extra : moz-landing-system : lando
2019-01-30 18:05:34 +00:00
Myk Melez
25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Luca Greco
b4cdfc9841 Bug 1258897 - Fix test_ext_sendmessage_reply2.html intermittency and re-enable. r=mixedpuppy
This patch should fix the test_ext_sendmessage_reply2.html intermittency which, based on the
timeout failure that I've been able to intermittently reproduce when running this test
locally using --verify, seems to be likely due to the following race:

the tabs.create API (used to create the extension tabs used as part of the tests) was called
right before subscribing the extension message listeners, and so from time to time the
extension tabs were not able to successfully send their messages to the background page listeners
(because the background page didn't subscribe the listeners yet) and as a result the test was getting
stuck waiting for extension messages that were never going to be received.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 15:50:42 +00:00
Shane Caraveo
3e429f056f Bug 1521573 web_accessible incognito support, r=kmag,smaug
Prevent web_accessible_resources resources loading in private contexts when extension does not have permission.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 15:40:09 +00:00
Sebastian Hengst
bce7497e86 Bug 1514594: Follow-up: Remove unused imports merged from autoland. a=eslint-fix 2019-01-29 12:32:57 +02:00
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Andreea Pavel
b839d65d3c Backed out changeset 546ee20723b6 (bug 1521573) for failing test_ext_web_accessible_incognito.html 2019-01-29 06:07:40 +02:00
Shane Caraveo
6004d08141 Bug 1521573 web_accessible incognito support, r=kmag,smaug
Prevent web_accessible_resources resources loading in private contexts when extension does not have permission.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 01:42:34 +00:00
Sebastian Hengst
725402f21f Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 02:05:49 +02:00
Shane Caraveo
050ca2e7d4 Bug 1511636: update incognito support to use pref and permissions r=rpl,aswan,kmag
This changes the policy to use the pref and permissions rather than a boolean flag.  Using permissions gets us proper settings on startup without introducing any new overhead.  Going this way flips our tests around so rather than testing an override to turn off private browsing support, we test overrides to enable private browsing support.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:10:47 +00:00
Shane Caraveo
6b86edb199 Bug 1511636 update ExtensionPermissions to take id instead of extension instance, r=aswan,rpl
Differential Revision: https://phabricator.services.mozilla.com/D14800

--HG--
extra : moz-landing-system : lando
2019-01-28 18:10:16 +00:00
Randell Jesup
a0370b467f Bug 1270059: Disable test_ext_async_clipboard.html on android only r=nika
See bug 1523131 for re-enabling
2019-01-26 18:30:04 -05:00
Jan-Erik Rediger
20d86fc6a7 Bug 1486792 - Generate docs for WebExtension Telemetry API r=chutten
Based on the documentation in toolkit/components/extensions/schemas/telemetry.json.
Generated using a Ruby script: https://gist.github.com/badboy/858d5fddc814ca15161d327d6e35b149

Small manual changes after initial import (e.g. adding default values, linking and some phrasing)

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

--HG--
extra : moz-landing-system : lando
2019-01-24 20:09:51 +00:00
Narcis Beleuzu
3a7fba9cb8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-25 06:31:03 +02:00
Rob Wu
71c8ed90e5 Bug 1315829 - Re-enable test_ext_runtime_onInstalled_and_onStartup.js r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D17489

--HG--
extra : moz-landing-system : lando
2019-01-24 19:36:35 +00:00
Luca Greco
8bb370504e Bug 1464711 - Fix typo in ExtensionContent script.requiresCleanup getter. r=zombie
This patch fixes the typo in the requiresCleanup getter and adds an additional step
in the automated tests to verify that the scripts created by browser.tabs.removeCSS
are not being added to the content scripts that requires cleanup.

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

--HG--
extra : moz-landing-system : lando
2019-01-24 17:18:22 +00:00
Shane Caraveo
b03a534f39 Bug 1522209 fix regex for icon path, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D17405

--HG--
extra : moz-landing-system : lando
2019-01-23 19:54:42 +00:00