Commit Graph

271 Commits

Author SHA1 Message Date
Kirk Steuber
63ae96269e Bug 1394851 - downloads.download API should default to use Firefox's "Save As" pref r=kmag
This patch changes the behavior of the downloads.download API's saveAs option. Previously, the behavior when neither value is provided (the "default behavior") was not defined by our documentation or Chrome's. Now, the default behavior is changing to rely on the Firefox "Save As" pref (browser.download.useDownloadDir). If Firefox is configured to open the "Save As" dialog for all downloads (browser.download.useDownloadDir == false), that behavior will be the default for the downloads.download API. Otherwise, the default behavior will be not to show the dialog.

This patch also moves some test functionality out of test_chrome_ext_downloads_saveAs.html. Previously, that test would test the saveAs option and also the conflictAction:"uniquify" option. In order to add testing for the new default behavior, it was necessary to move the testing of the conflictAction:"uniquify" option to a new test: test_chrome_ext_downloads_uniquify.html

MozReview-Commit-ID: u6VA4kexlr
2017-10-04 14:39:58 -07:00
Wes Kocher
a89d343ff2 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 42IMgMJGiDu
2017-10-03 14:54:08 -07:00
Tom Ritter
3832c1ba26 Bug 1397611 Expose a websites.resistFingerprinting pref that Web Extensions can toggle r=aswan,bsilverberg
MozReview-Commit-ID: Fh48FWKdhoD
2017-09-07 00:58:54 -05:00
apoorvasingh17
3de6c8c86a Bug 1404746 - Ignore minimum_opera_version in WebExtensions manifest. r=bsilverberg, r=mixedpuppy 2017-10-03 01:00:53 +05:30
Tim Nguyen
5f8fc6b3cd Bug 1401691 - Accept windowId parameter for browser.theme.reset(). r=jaws
MozReview-Commit-ID: G6XGeHAI5uF
2017-09-29 16:47:48 +01:00
Ian Moody
f08019fb6b Bug 1375485 - Update the extension manifest schema to distinguish between permissions and origins. r=aswan
The manifest of an extension has two fields, permissions and optional_permissions,
which both take an array of strings consisting of permissions or origins.
The permissions API accepts the same values but within distinct origins and
permissions fields of an object.
This patch modifies the schema to reflect this difference.

MozReview-Commit-ID: 3V3YeWEIVnf
2017-09-23 17:41:08 +01:00
Tomislav Jovanovic
1566f5e353 Bug 1386427 - Part 4: Implement basic storage.managed functionality r=kmag
MozReview-Commit-ID: Auy1ujS8wyz
2017-09-16 19:42:40 +02:00
Tomislav Jovanovic
f187bd307d Bug 1386427 - Part 3: Add storage and pkcs11 NativeManifest types r=kmag
MozReview-Commit-ID: 62MoqNLTxic
2017-09-16 05:30:13 +02:00
Tim Nguyen
b6c1faca8c Bug 1387582 - Add toolbar_text color property to theming API. r=dao,mikedeboer
MozReview-Commit-ID: KjKVjFD4axN
2017-08-30 20:23:58 +07:00
Bob Silverberg
4aac2e78b9 Bug 1399176 - Make browserSettings an optional permission, r=mixedpuppy
MozReview-Commit-ID: AO0hQdETmvC
2017-09-12 12:19:45 -04:00
Tomislav Jovanovic
790f794d71 Bug 1394553 - Part 2: Prune the GRANTED_WITHOUT_USER_PROMPT list r=aswan
MozReview-Commit-ID: 844ITHXaauA
2017-09-04 21:51:25 +02:00
Bob Silverberg
67dd56c12b Bug 1364972 - Allow WebExtensions to disable animated images, r=mixedpuppy
This adds a browserSetting.imageAnimationBehavior API which accepts one of three
values: "normal", "none", "once". Behind the scenes it sets the image.animation_mode
preference to the same value.

MozReview-Commit-ID: GLT6oJgpF3
2017-09-06 16:46:38 -04:00
Wes Kocher
135e3326d8 Backed out changeset 674775dda8ad (bug 1364972) for eslint failures a=backout
MozReview-Commit-ID: 5tmy6XSi0sL
2017-09-07 12:31:11 -07:00
Bob Silverberg
fac011c134 Bug 1364972 - Allow WebExtensions to disable animated images, r=mixedpuppy
This adds a browserSetting.imageAnimationBehavior API which accepts one of three
values: "normal", "none", "once". Behind the scenes it sets the image.animation_mode
preference to the same value.

MozReview-Commit-ID: GLT6oJgpF3
2017-09-06 16:46:38 -04:00
Rob Wu
f3a29edeab Bug 1356543 - Add clipboard.setImageData API r=mixedpuppy
This introduces an implementation of the clipboard.setImageData API.
I did not find any complete documentation about how copying and
pasting images is supposed to work in Firefox, so I added many lines
of documentation based on experimenting and reading the source code.

The implementation is very similar to the Add-on SDK's implementation,
save for one difference: The third parameter to setTransferData is 0
instead of -1. Its significance is elaborated in ext-clipboard.js.

The newly added tests serve the following purposes:
- Verification that clipboard.setImageData is working as expected.
  There is no way to test that pasting in an external application
  really works, so we just check whether Firefox recognizes the
  special image data by pasting in a contentEditable area.

- Test coverage for reading clipboard data via the "paste" event and
  using event.clipboardData to access the pasted data, because this is
  the only way to read non-text data in a WebExtension extension.

MozReview-Commit-ID: Ldrx7LCIta2
2017-09-04 21:43:06 +02:00
Jonathan Kingston
5f37d96ad7 Bug 1339610 - Web extension API for container icon and colors. r=baku,kmag
MozReview-Commit-ID: BosKoxM8FMZ
2017-08-27 00:47:02 +01:00
Zibi Braniecki
b0585c3382 Bug 1365709 - Consume new webextension based language packs. r=kmag
MozReview-Commit-ID: DeJlq8MWpfs
2017-08-28 10:48:00 -07:00
Kris Maglione
d2830a9581 Bug 1255894: Part 7 - Expose response stream filtering via the webRequest API. r=mixedpuppy
MozReview-Commit-ID: AErBFGJyFg5
2017-09-02 13:37:31 -07:00
Bob Silverberg
ccd9787851 Bug 1322308 - Allow WebExtensions to read the overriden homepage and newTab values, r=mixedpuppy
This introduces browser.browserSettings.homepageOverride and browser.browserSettings.newTabPageOverride
which will return the values of the overridden home page and the overridden new tab page.

These browserSettings are read-only.

MozReview-Commit-ID: A9vJP2QIaoA
2017-07-17 14:16:02 -04:00
Andreas Wagner
44d2dbaac2 Bug 1390917 - Accept data:image/png and data:image/jpeg as theme background; r=aswan,mikedeboer
MozReview-Commit-ID: 2roQoBrc7mv
2017-08-17 21:51:36 +02:00
Tim Nguyen
96c6476863 Bug 1389465 - Allow changing urlbar and search input background and text color. r=dao,jaws
MozReview-Commit-ID: HrjxTbNwlEK
2017-08-24 15:55:02 +02:00
Shane Caraveo
b701920ecd Bug 1388902 remove socialapi share, r=florian
MozReview-Commit-ID: Kcjugf3Ql6y
2017-08-16 08:54:21 -07:00
Mark Striemer
62796de317 Bug 1345158 - Implement privacy.websites.trackingProtectionMode r=aswan,bsilverberg
MozReview-Commit-ID: Lf88M4V4JEJ
2017-08-09 15:47:02 -05:00
Jonathan Kingston
3ae7cf8f92 Bug 1344519 - Add web extension events for containers onUpdated, onCreated and onRemoved r=aswan,baku
MozReview-Commit-ID: 9Zxjc1J2CAt
2017-05-14 00:39:32 +01:00
Tim Nguyen
8c3d881f13 Bug 1342712 - Allow scoping a theme per-window. r=jaws
MozReview-Commit-ID: FYsmgz5qAjx
2017-08-04 20:08:57 +00:00
Tomislav Jovanovic
7424578610 Bug 1385864 - Drop invalid optional_permissions from manifests r=kmag
MozReview-Commit-ID: Df2wjNOTVkF
2017-08-04 00:26:50 +02:00
Rob Wu
37467a9494 Bug 1362448 - Support "incognito" in downloads.create r=aswan
MozReview-Commit-ID: HN3x6eFT9xB
2017-07-14 17:14:18 +02:00
Wes Kocher
00f6683e58 Backed out changeset 31db4b302143 (bug 1344519) for android xpcshell test_basic.js failures a=backout CLOSED TREE
MozReview-Commit-ID: KUR8cqMGGDJ
2017-08-03 19:04:09 -07:00
Jonathan Kingston
1a22af4493 Bug 1344519 - Add web extension events for containers onUpdated, onCreated and onRemoved r=aswan,baku
MozReview-Commit-ID: 9Zxjc1J2CAt
2017-05-14 00:39:32 +01:00
Tim Nguyen
0d00851c4b Bug 1347182 - Add support for setting the background color of all toolbars using a WebExtension theme. r=jaws
Original patch by :mikedeboer.

MozReview-Commit-ID: IbTBCjt6oJp
2017-06-15 19:20:26 +02:00
Bob Silverberg
4bc1b30042 Bug 1352711 - Add a notifications.onShown event and use it to fix an intermittent in test_ext_notifications.html, r=mixedpuppy
MozReview-Commit-ID: GC9poUR4jnu
2017-08-02 04:44:10 -04:00
Bob Silverberg
7ca1f24ce4 Bug 1339550 - Implement browser.settings.allowPopupsForUserEvents, r=aswan
This will modify the "dom.popup_allowed_events" preference to control whether events from
user actions are allowed to open pop-up windows or not. If set to `false` then pop-ups from
user actions will not be allowed and will result in a doorhanger being displayed informing
the user that a pop-up was blocked. If set to `true` then all of the default events
will be allowed to open pop-up windows.

MozReview-Commit-ID: 8UFziq23zug
2017-07-31 16:46:36 -04:00
Andrew Swan
ab32078a6b Bug 1350151 Part 3: Use requireUserInput for downloads.open() r=kmag
MozReview-Commit-ID: GhXBZ5sWlRt
2017-07-25 23:01:05 -07:00
Andrew Swan
7e9dee9a88 Bug 1350151 Part 2: Use requireUserInput for permissions.request() r=kmag
MozReview-Commit-ID: ALRlk7ZZ7LR
2017-07-25 22:43:34 -07:00
Wes Kocher
33ba360086 Backed out changeset 59765ae0aee3 (bug 1344519) for xpcshell failures in test_basic.js a=backout
MozReview-Commit-ID: 5rZc2r8YljU
2017-07-31 17:39:33 -07:00
Jonathan Kingston
f39744db1d Bug 1344519 - Add web extension events for containers onUpdated, onCreated and onRemoved r=aswan,baku
MozReview-Commit-ID: 9Zxjc1J2CAt
2017-05-14 00:39:32 +01:00
Cameron Kaiser
cda9d44e69 Bug 1385357 - Whitelist Gopher to be consistent with registerProtocolHandler. r=mixedpuppy 2017-07-27 23:32:25 -07:00
Tomislav Jovanovic
0b5e8be557 Bug 1363886 - Part 2: Fix a number of async callback parameters schemas r=kmag
MozReview-Commit-ID: JY8r8IePEcw
2017-07-25 20:57:45 +02:00
Tomislav Jovanovic
34e05ac95a Bug 1363886 - Part 1: Check API function results against schema r=kmag
MozReview-Commit-ID: E2mGR03zUSf
2017-07-24 00:03:20 +02:00
Sebastian Hengst
cd2f778704 Backed out changeset 8955980312a6 (bug 1363886) for failing mochitests test_ext_contentscript_permission.html and test_chrome_ext_contentscript_unrecognizedprop_warning.html on Android 4.3 debug. r=backout 2017-07-25 10:42:33 +02:00
Sebastian Hengst
2229cb72c0 Backed out changeset 0bb1d7f7feb0 (bug 1363886) 2017-07-25 10:40:38 +02:00
Tomislav Jovanovic
182d107498 Bug 1363886 - Part 2: Fix a number of async callback parameters schemas r=kmag
MozReview-Commit-ID: JY8r8IePEcw
2017-07-24 22:05:20 +02:00
Tomislav Jovanovic
16bacd6bce Bug 1363886 - Part 1: Check API function results against schema r=kmag
MozReview-Commit-ID: E2mGR03zUSf
2017-07-24 00:03:20 +02:00
Matthew Wein
bcd01a999d Bug 1371879 - Add support for unregistering proxy scripts r=mixedpuppy
This patch suggests deprecating proxy.registerProxyScript and replacing it with proxy.register since this API won't support registering anything other than proxy scripts. I normally would be hesitant to suggest making a name change after an API is released, but this API is one that is still in development, and for that reason I think changes like this should be somewhat expected until the API becomes more stable.

MozReview-Commit-ID: 9UeuUjQ6OU5
2017-06-26 00:41:33 -04:00
Matthew Wein
c7a81cb41f Bug 1329242 - Add support for browser_action.theme_icons r=mixedpuppy
MozReview-Commit-ID: HvfUQZzBQWq
2017-06-27 15:23:35 -07:00
Andy McKay
b6627b31a6 bug 1373850 add browser.theme.reset which allows unloading changes caused by browser.theme.update and resets to the default theme r=mattw,mikedeboer
MozReview-Commit-ID: 4wZQNsM2bFw
2017-06-27 12:57:19 -07:00
Phil Ringnalda
08c1ad0b04 Backed out changeset 005957262022 (bug 1373850) for eslint failures
MozReview-Commit-ID: 7W04mXlcYsl
2017-06-26 19:20:33 -07:00
Andy McKay
04a9e1a04a bug 1373850 add browser.theme.reset which allows unloading changes caused by browser.theme.update and resets to the default theme r=mattw,mikedeboer
MozReview-Commit-ID: 4wZQNsM2bFw
2017-06-26 09:40:29 -07:00
Wes Kocher
ab72c537c8 Merge m-c to inbound, a=merge
MozReview-Commit-ID: CaSKFN9T7N4
2017-06-21 18:05:27 -07:00
Kris Maglione
58178543f4 Bug 1373293: Drop invalid permissions when normalizing manifests. r=bsilverberg
MozReview-Commit-ID: EIGhP6rRLzW
2017-06-21 12:12:51 -07:00