Commit graph

429 commits

Author SHA1 Message Date
Shane Caraveo
5f24a04aa2 Bug 1548177 support incognito flag in request filtering r=kmag,robwu
Differential Revision: https://phabricator.services.mozilla.com/D29446

--HG--
extra : moz-landing-system : lando
2019-05-02 16:23:03 +00:00
Rob Wu
d0cf678d31 Bug 1545841 - Add deprecation message to several proxy APIs r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D29431

--HG--
extra : moz-landing-system : lando
2019-05-01 10:42:17 +00:00
Shane Caraveo
0d7fd5c81e Bug 1391992 add cookiestoreid to proxy and webrequest details r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D28929

--HG--
extra : moz-landing-system : lando
2019-04-29 18:36:17 +00:00
Shane Caraveo
0873aa1a01 Bug 1545163 add incognito flag to proxy and webrequest details r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D28925

--HG--
extra : moz-landing-system : lando
2019-04-29 18:00:12 +00:00
Mark Banner
c507a11dc6 Bug 1544392 - Allow extension icons to be supplied from localized manifest properties, and fix the Yandex icon in search engines. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D28499

--HG--
extra : moz-landing-system : lando
2019-04-23 21:10:00 +00:00
Agi Sferro
83bc10f815 Bug 1518843 - GeckoView WebExtension Messaging. r=snorp,esawin,robwu,kmag
This change allows GeckoView embedders to respond to
`runtime.sendNativeMessage` and `runtime.connectNative` sent from
WebExtensions.

These APIs are available behind the new privileged-only permission
`geckoViewAddons` and are used by GeckoView apps to communicate between content
and the app.

Depends On D22621

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

--HG--
extra : moz-landing-system : lando
2019-04-17 18:28:10 +00:00
Jared Hirsch
a682f7645f Bug 1536877 - Correct the 'value' type in 'browser.telemetry.recordEvent'; r=rpl
MozReview-Commit-ID: EvI2FvsOjDx

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

--HG--
extra : moz-landing-system : lando
2019-04-15 21:23:02 +00:00
Kris Maglione
88035afb21 Bug 1525762: Part 4 - Support automatic dark mode fallback for default theme again. r=aswan
--HG--
extra : rebase_source : 1591ab6670e301e78d98084c852cb72e74ff7504
extra : histedit_source : ec392d6f1b93993bceed5e4bbf3d394b02342794
2019-02-08 15:36:04 -08:00
Philipp Kewisch
52aa5b978e Bug 1507709 - Move WebExtensions geckoProfiler API to toolkit. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D12100

--HG--
rename : browser/components/extensions/ProfilerGetSymbols-worker.js => toolkit/components/extensions/ProfilerGetSymbols-worker.js
rename : browser/components/extensions/ProfilerGetSymbols.jsm => toolkit/components/extensions/ProfilerGetSymbols.jsm
rename : browser/components/extensions/parent/ext-geckoProfiler.js => toolkit/components/extensions/parent/ext-geckoProfiler.js
rename : browser/components/extensions/profiler_get_symbols.js => toolkit/components/extensions/profiler_get_symbols.js
rename : browser/components/extensions/schemas/geckoProfiler.json => toolkit/components/extensions/schemas/geckoProfiler.json
rename : browser/components/extensions/test/xpcshell/test_ext_geckoProfiler_control.js => toolkit/components/extensions/test/xpcshell/test_ext_geckoProfiler_control.js
rename : browser/components/extensions/test/xpcshell/test_ext_geckoProfiler_schema.js => toolkit/components/extensions/test/xpcshell/test_ext_geckoProfiler_schema.js
extra : moz-landing-system : lando
2019-03-22 13:18:01 +00:00
sagarwala
5703e13838 Bug 1451079 - Fix runtime.setUninstallURL to honor empty string, r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D18499

--HG--
extra : moz-landing-system : lando
2019-03-11 17:46:44 +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
Bogdan Tara
9cbf5ced1f Backed out changeset 2e087a053898 (bug 1524001) for test_ext_management.js failures CLOSED TREE 2019-02-04 19:09:13 +02:00
Shane Caraveo
941140a5da 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-04 14:26:34 +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
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
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
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
Margareta Eliza Balazs
ec14417cc3 Merge inbound to mozilla-central. a=merge 2019-01-18 11:40:07 +02:00
Varun Dey
ef0ef45dff Fix Bug 1419109 - Empty default icon shows blank icon in toolbar r=mixedpuppy
If the extension had either default_icon or one of it's property as an empty string, it would show a black icon in the toolbar. With this patch, it checks if any of default_icon property is empty and throws an error on extension load.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 18:52:00 +00:00
Bogdan Tara
49bf435109 Backed out changeset ee03992cef6e (bug 1519762) for test_ext_downloads_search.js failures CLOSED TREE 2019-01-17 23:28:34 +02:00
Andrew Swan
4c984ce62c Bug 1519762 Fix a regression with browser.downloads.search() r=kmag
The fixes in bug 1503760 inadvertently broke searches of downloads that
have not yet started receiving data (which have a value of -1 for the
totalBytes property).  That regression is fixed here.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 19:20:58 +00:00
Coroiu Cristina
9624fd7043 Backed out changeset a3bbf490ea41 (bug 1419109) for browser-chrome failures at browser/test-oop-extensions/browser_ext_browserAction_pageAction_icon_permissions.js 2019-01-13 18:51:03 +02:00
Varun Dey
f1106e6ffc Fix Bug 1419109 - Empty default icon shows blank icon in toolbar r=mixedpuppy
If the extension had either default_icon or one of it's property as an empty string, it would show a black icon in the toolbar. With this patch, it checks if any of default_icon property is empty and throws an error on extension load.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 18:05:12 +00:00
edward.i.wu
06030d9eb9 Bug 1370077 - Avoid deprecation message when background.persistent is true r=robwu,aswan
Add support for enumerations to boolean types, and use it to only show
a deprecation message when background.persistent is false.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 01:11:44 +00:00
Andrew Swan
bde8f820fb Bug 1519762 Fix a regression with browser.downloads.search() r=kmag
The fixes in bug 1503760 inadvertently broke searches of downloads that
have not yet started receiving data (which have a value of -1 for the
totalBytes property).  That regression is fixed here.

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

--HG--
extra : rebase_source : d6abf7e5bdc2ae10e690df56c060b30166fc75f7
extra : amend_source : 6580b889860d4d28f216fd92522ecd539a8f7d1d
2019-01-17 11:12:46 -08:00
Luca Greco
1affa50933 Bug 1514731 - Move to API schema wrappers the webRequestBlocking permission checks for webRequest blocking listeners. r=mixedpuppy
This patch includes the following changes:

- move into the API schema wrappers the additional checks needed (in the child process) to ensure that we throw a validation error when
  a webRequest blocking listener is registered by an extension that doesn't have the required webRequestBlocking permission:
  - define a new webRequestBlockingPermissionRequired postprocessor
  - add to web_request.json API schema the `"postprocess": "webRequestBlockingPermissionRequired"` property
    to all the webRequest options types that allows "blocking" as a valid string value (currently
    OnBeforeRequestOptions, OnBeforeSendHeadersOptions, OnHeadersReceivedOptions and OnAuthRequiredOptions)

- add back an additional check for the webRequestBlocking permission in parent/ext-webRequest.js
  (just in case a new webRequest event is added in the future and we forget to add the postprocess
  property, so that we still ensure that an extension without the webRequestBlocking permission
  is not able to register any blocking listener)

- tweak the test_no_webRequestBlocking_error test case to use browser.test.assertThrows to explicitly check
  that the error is thrown and "catchable" by the extension code, and not just logged in the console
  messages, and extend it to run on all the webRequest API events that can be blocking.

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

--HG--
extra : moz-landing-system : lando
2018-12-19 18:40:59 +00:00
Shane Caraveo
ed2e4c07aa Bug 1345474 - Add policy flags to support incognito settings r=rpl,kmag
Differential Revision: https://phabricator.services.mozilla.com/D4100

--HG--
extra : moz-landing-system : lando
2018-12-10 21:27:22 +00:00
Ben Armstrong
448c4dc94c Bug 1503760: Changed browser.downloads.search({}) to return 0 byte downloads. r=aswan
Updated the totalBytesGreater property in browser.downloads.search({}) to default to -1 so files with a byte size of 0 will be returned.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 22:54:49 +00:00
Luca Greco
2074f536c7 Bug 1509339 - Implement a UserScript API object and remove the userScripts.setScriptAPIs method. r=zombie,robwu
Depends on D12676

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

--HG--
extra : moz-landing-system : lando
2018-11-30 16:10:58 +00:00
Luca Greco
3a91800a12 Bug 1509339 - Implement a userScript.onBeforeScript API event. r=zombie,robwu
Depends on D10061

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

--HG--
extra : moz-landing-system : lando
2018-11-30 16:09:34 +00:00
Luca Greco
5b052494ce Bug 1472740 - Warn on deprecated static theme LWT aliases usage. r=ntim,jaws
This patch doesn't currently prevent a static theme which uses the LWT aliases from
being installed successfully but, as the first step for their deprecation and removal,
it starts to log a warning message when these aliases are being used (e.g. when
installing the static theme extension from "about:debugging", these warnings are being
shown to the theme author).

A similar linting warning is going to be emitted on AMO submissions
(See https://github.com/mozilla/addons-linter/issues/2259), and it will
be turned it into a linting error once AMO should start to prevent new static
theme submittions from using the LWT aliases.

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

--HG--
extra : moz-landing-system : lando
2018-11-23 18:58:45 +00:00
Luca Greco
02b1c3c4d5 Bug 1498343 - Make it easier to recognize an extension that have access to the userScript.setScriptAPIs API method. r=mixedpuppy
Depends on D8538

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

--HG--
extra : moz-landing-system : lando
2018-10-17 12:39:20 +00:00
Rob Wu
57241a942a Bug 1487478 - Move MatchPattern normalization into classifyPermission r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D4707
2018-09-27 11:27:54 +02:00
Ehsan Akhgari
f8ef224ee2 Bug 1493057 - Make sure test_ext_privacy.js doesn't depend on the default value of the network.cookie.cookieBehavior preference r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D6456

--HG--
extra : moz-landing-system : lando
2018-09-21 15:12:10 +00:00
Luca Greco
5f865f59f4 Bug 1491274 - Split content script-only userScripts API from ext-userScripts.js and user_scripts.json. r=robwu,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D6156

--HG--
rename : toolkit/components/extensions/child/ext-userScripts.js => toolkit/components/extensions/child/ext-userScripts-content.js
rename : toolkit/components/extensions/schemas/user_scripts.json => toolkit/components/extensions/schemas/user_scripts_content.json
extra : moz-landing-system : lando
2018-09-20 17:25:03 +00:00
Luca Greco
792d7cbf1b Bug 1491272 - Require user_scripts manifest property to have access to the userScripts API namespace. r=robwu,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D6146

--HG--
extra : moz-landing-system : lando
2018-09-20 17:09:11 +00:00
Luca Greco
747f4cbfca Bug 1491782 - Allow unrecognized user_scripts manifest properties. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D6016

--HG--
extra : moz-landing-system : lando
2018-09-17 20:47:58 +00:00
Luca Greco
e557551409 Bug 1491036 - Allow null type into PlainJSONValue WebExtensions schema type definition. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D5779

--HG--
extra : moz-landing-system : lando
2018-09-13 20:43:14 +00:00
Luca Greco
87e37e32a0 Bug 1491024 - Rename userScripts manifest property to follow manifest property name conventions. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D5777

--HG--
extra : source : f1cc448b5137c220962a35f1816f112f931de119
2018-09-13 15:33:12 +00:00
Cosmin Sabou
3061c72b4b Backed out changeset f1cc448b5137 (bug 1491024) for failures on test_ext_userScripts. CLOSED TREE 2018-09-13 22:11:41 +03:00
Luca Greco
44493dc39f Bug 1491024 - Rename userScripts manifest property to follow manifest property name conventions. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D5777

--HG--
extra : moz-landing-system : lando
2018-09-13 15:33:12 +00:00
Luca Greco
6056022481 Bug 1437864 - Implement userScripts API methods to allow an extension to inject custom APIs in the isolated userScripts sandboxes. r=zombie,mixedpuppy
MozReview-Commit-ID: 3GIFhnxMJVn

Depends on D4354

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

--HG--
extra : moz-landing-system : lando
2018-09-12 16:46:24 +00:00
Luca Greco
c322d3c14f Bug 1437861 - Implement userScripts.register and execute userScripts js code in isolated sandboxes. r=zombie,mixedpuppy
This patch introduces the userScripts API namespace and the userScripts.register API method,
which allows an extension to register some javascript code to run on the matched webpages
into an isolated sandbox (whereas all the content scripts from the same extension run in
a per-window sandbox shared by all the extension content scripts).

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

--HG--
extra : moz-landing-system : lando
2018-09-12 16:44:54 +00:00
Bogdan Tara
9c802a42f1 Backed out 4 changesets (bug 1437864, bug 1470466, bug 1437861) for Android xpcshell failures CLOSED TREE
Backed out changeset a6185abfc2f8 (bug 1470466)
Backed out changeset 82d60e34a977 (bug 1437864)
Backed out changeset 7634d9d14449 (bug 1437864)
Backed out changeset a92b6e069d7e (bug 1437861)
2018-09-12 00:57:00 +03:00
Luca Greco
fd88da28d9 Bug 1437864 - Implement userScripts API methods to allow an extension to inject custom APIs in the isolated userScripts sandboxes. r=zombie,mixedpuppy
MozReview-Commit-ID: 3GIFhnxMJVn

Depends on D4354

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

--HG--
extra : moz-landing-system : lando
2018-09-11 10:09:50 +00:00
Luca Greco
aa17481856 Bug 1437861 - Implement userScripts.register and execute userScripts js code in isolated sandboxes. r=zombie,mixedpuppy
This patch introduces the userScripts API namespace and the userScripts.register API method,
which allows an extension to register some javascript code to run on the matched webpages
into an isolated sandbox (whereas all the content scripts from the same extension run in
a per-window sandbox shared by all the extension content scripts).

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

--HG--
extra : moz-landing-system : lando
2018-09-11 10:06:30 +00:00
Tim Nguyen
eda7b67115 Bug 1488000 - Allow theming sidebar border color. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D4839

--HG--
extra : moz-landing-system : lando
2018-09-04 21:33:46 +00:00
Tomislav Jovanovic
7d327a197e Bug 1369209 - Implement management.install for themes only r=robwu,kmag
Differential Revision: https://phabricator.services.mozilla.com/D3106

--HG--
extra : rebase_source : b9f0c006346b132ed655255525ce33294c3526da
2018-08-10 14:12:36 +02:00
Tim Nguyen
0c68c54d3e Bug 1418602 - Allow theming sidebars. r=mconley
MozReview-Commit-ID: 97zkU7raehV

--HG--
extra : rebase_source : 02a80c78170723bf9d7d2e72834fc26850894dbc
2018-08-06 17:46:43 +01:00
Andrew Swan
43914ec867 Bug 1365349 Allow shield studies to not appear in about:addons r=kmag
MozReview-Commit-ID: 114dbRtFIjP

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

--HG--
extra : rebase_source : 57fa86d70b0dd2308adef16aea3f2f4d00e7f606
extra : amend_source : c7648df7f3873ba061820c44c1654b9d9758dade
2018-08-06 22:06:33 -07:00