Commit Graph

1109 Commits

Author SHA1 Message Date
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
Tomislav Jovanovic
bf271b49fb Bug 1383262 - Better download() error message and default filename r=aswan
MozReview-Commit-ID: IbPb2sj3AQ9
2017-07-30 02:36:08 +02: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
Andrew Swan
702d75aac5 Bug 1350151 Part 1: Add requireUserInput property for functions in webextension schemas r=kmag
MozReview-Commit-ID: BrMAwbwEu8b
2017-07-25 22:45:47 -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
Bob Silverberg
2e01e83446 Bug 1381605 - Do not load ExtensionSettingsStore's JSON file synchronously, r=aswan
MozReview-Commit-ID: 7lQp9hL9pNd
2017-07-24 15:49:30 -04:00
Kris Maglione
debd2ac908 Bug 1357902 - Use improved locale service APIs for localization. r=gandalf
MozReview-Commit-ID: 6Aj0SZkCJwg
2017-05-04 18:28:05 -07:00
Carsten "Tomcat" Book
031a6f535a Merge mozilla-central to mozilla-inbound 2017-07-28 15:25:58 +02:00
Shane Caraveo
d9e039683b Bug 1380186 test http redirects to moz-ext protocol, r=kmag
MozReview-Commit-ID: Kg8ELe3tV2z
2017-07-27 13:34:54 -07:00
Junior Hsu
83dc74f0cf Bug 1385166 - disable rcwn in those web request tests causing bustage, r=mixedpuppy 2017-07-27 20:46:00 +02:00
Shane Caraveo
1fe97eb22e Bug 1382834 fix ws/wss protocol matching, r=kmag
MozReview-Commit-ID: 6IKTPA1sJgh
2017-07-24 17:00:29 -07:00
Bob Silverberg
6c451a9e15 Bug 1383728 - Add missing tests back into manifests, r=mixedpuppy
The following tests were removed from the test manifest in  https://hg.mozilla.org/mozilla-central/rev/9704283b0e3a and never added back:
toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js
toolkit/components/extensions/test/xpcshell/test_ext_extension_content_telemetry.js
toolkit/components/extensions/test/xpcshell/test_ext_storage_telemetry.js

A bunch of changes were needed to the telemetry tests to make them work in OOP mode as well.

MozReview-Commit-ID: LPOrGb8OxNL
2017-07-24 08:57:50 -04:00
Sebastian Hengst
00c69899cd Backed out changeset ca779a5aa93f (bug 1383728) for failing the xpcshell tests test_ext_storage_telemetry.js and test_ext_extension_content_telemetry.js on Android. r=backout on a CLOSED TREE 2017-07-27 14:18:42 +02:00
Bob Silverberg
279183efa4 Bug 1383728 - Add missing tests back into manifests, r=mixedpuppy
The following tests were removed from the test manifest in  https://hg.mozilla.org/mozilla-central/rev/9704283b0e3a and never added back:
toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js
toolkit/components/extensions/test/xpcshell/test_ext_extension_content_telemetry.js
toolkit/components/extensions/test/xpcshell/test_ext_storage_telemetry.js

A bunch of changes were needed to the telemetry tests to make them work in OOP mode as well.

MozReview-Commit-ID: LPOrGb8OxNL
2017-07-24 08:57:50 -04:00
Nicolas Ouellet-Payeur
4e15124c49 Bug 1375212 - Wrap thrown strings in Error objects r=eoger,markh
MozReview-Commit-ID: KquBcbNhBEN
2017-07-22 18:55:43 -07:00
Andrew Halberstadt
86f21296a2 Bug 1383120 - Enable no-arbitrary-setTimeout eslint rule on xpcshell tests, r=mossop
MozReview-Commit-ID: 6DqLaZ9n5EM
2017-07-26 09:08:07 -04:00
Bob Silverberg
e362a82d5a Bug 1381297 - Store the installDate of an extension as a number in the extension-settings.json file, r=aswan
MozReview-Commit-ID: 1P7hy23Yyk6
2017-07-20 09:02:36 -04:00
Carsten "Tomcat" Book
d81e194db5 merge mozilla-inbound to mozilla-central a=merge 2017-07-26 11:11:40 +02:00
Wes Kocher
76048ac133 Merge m-c to inbound, a=merge
MozReview-Commit-ID: AwACQvl2e5g
2017-07-25 19:09:39 -07:00
Luca Greco
596eba68f4 Bug 1380287 - Turn on telemetry in test_chrome_ext_contentscript_telemetry.html. r=Dexter
MozReview-Commit-ID: L4v0PDks3uH
2017-07-19 14:22:23 +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
d3b9792df4 Backed out changeset 4b3e02945e19 (bug 1363886) 2017-07-25 10:40:32 +02:00
Kris Maglione
e826ce2244 Bug 1382645: Part 3 - Throw away description strings before blobbifying schema JSON. r=mixedpuppy
MozReview-Commit-ID: 8rWQQhaTRr8
2017-07-25 15:00:01 -07:00
Tomislav Jovanovic
5a55dcd47a Bug 1363886 - Part 3: Check async callback arguments against schema r=kmag
MozReview-Commit-ID: E0yp9SdJrv6
2017-05-21 04:19:46 +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
Tomislav Jovanovic
cdabf65d16 Bug 1363886 - Part 3: Check async callback arguments against schema r=kmag
MozReview-Commit-ID: E0yp9SdJrv6
2017-05-21 04:19:46 +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
Kris Maglione
8cc3381663 Bug 1381687: Follow-up: Fix bustage where theme code is touching raw schema JSON that it shouldn't be.
MozReview-Commit-ID: 9Uwfbml0Ria
2017-07-19 22:28:09 -07:00
Bob Silverberg
7249eb23c9 Bug 1347704 - Fix Intermittent test_ext_i18n.js, r=kmag
Wait for content script to be loaded before sending a message to it.

MozReview-Commit-ID: ENsMbdjLuVx
2017-07-14 09:09:34 -04:00
Thomas Wisniewski
58faf0ee3f Bug 1348911 - Add lastAccessed to tabs.Tab; r=mixedpuppy,zombie
MozReview-Commit-ID: 4ulhseGDQ4P
2017-07-07 20:17:23 -04:00
Bob Silverberg
6dc2daeef1 Bug 1330494 - Part 1: Remove async from functions in ExtensionSettingsStore that don't need to be async, r=aswan
MozReview-Commit-ID: KmpBdrLmVNK

Also added a hasSetting method to ExtensionSettingsStore to check whether a particular extension has a
setting stored for a particulay key.
2017-06-29 11:27:47 -07:00
Andrew Swan
22a1f4e76f Bug 1352239 Don't prompt for optional permissions an extension already has r=kmag
MozReview-Commit-ID: EwyzfFB3LyS
2017-07-01 16:49:14 -07:00
Junior Hsu
237e9de7a6 Bug 1373198 - Part 6: disable rcwn for toolkit mochitest tests which require deterministic cache behavior, r=mixedpuppy 2017-07-10 23:51:00 +02:00
Mark Banner
b1b7a75372 Bug 1380009 - Enable the ESLint no-return-await call to avoid unnecessary intermediate promise creation. r=mossop
MozReview-Commit-ID: EnhSBHMjurr
2017-07-11 22:49:55 +01:00
Wes Kocher
893eb5b0cb Merge m-c to inbound, a=merge 2017-07-10 18:48:52 -07:00
Kris Maglione
ee30da7682 Bug 1370752: Part 3 - Use structured clone rather than JSON to sanitize storage values. r=aswan
This gives us performance wins in sevaral areas:

- Creating a structured clone blob of storage data directly from the source
  compartment allows us to avoid X-ray and JSON serialization overhead when
  storing new values.

- Storing the intermediate StructuredCloneBlob, rather than JSON values,
  in-memory saves us additional JSON and structured clone overhead when
  passing the values to listeners and API callers, and saves us a fair amount
  of memory to boot.

- Serializing storage values before sending them over a message manager allows
  us to deserialize them directly into an extension scope on the other side,
  saving us a lot of additional structured clone overhead and intermediate
  garbage generation.

- Using JSONFile.jsm for storage lets us consolidate multiple storage file
  write operations, rather than performing a separate JSON serialization for
  each individual storage write.

- Additionally, this paves the way for us to transition to IndexedDB as a
  storage backend, with full support for arbitrary structured-clone-compatible
  data structures.

MozReview-Commit-ID: JiRE7EFMYxn
2017-07-10 18:24:11 -07:00
Thomas Wisniewski
326c595931 Bug 1376991 - Extend browsingData to restrict removing cookies to a give list of hostnames; r=mixedpuppy
MozReview-Commit-ID: 4Tfneh5s1Q8
***
Fixes for try run failures

MozReview-Commit-ID: 2BAT1GUcvH3
2017-06-30 09:11:18 -04:00
Kris Maglione
103ba64e08 Bug 1357486: Enable OOP extensions by default on Windows. r=aswan
MozReview-Commit-ID: 3Tet7tNtmGx
2017-07-06 21:13:40 -07:00
Kris Maglione
5953302869 Bug 1357486: Part 0f - Run some chrome tests in in-process mode. r=aswan
MozReview-Commit-ID: 1T0tEpwTU3c
2017-07-07 15:16:17 -07:00
Kris Maglione
2bd10b5257 Bug 1357486: Part 0e - Support legacy extensions in OOP mode. r=aswan
MozReview-Commit-ID: 4JHxX78HNRV
2017-07-07 15:12:45 -07:00
Wes Kocher
a0b015fa22 Backed out 2 changesets (bug 1370752) for failures in test_ext_storage.js a=backout
Backed out changeset 42d3c1599af5 (bug 1370752)
Backed out changeset 9c4bf59ab966 (bug 1370752)

MozReview-Commit-ID: 4M6DsJvJ6RI
2017-07-10 14:34:56 -07:00
Kris Maglione
5c0bb13dcc Bug 1370752: Part 3 - Use structured clone rather than JSON to sanitize storage values. r=aswan
This gives us performance wins in sevaral areas:

- Creating a structured clone blob of storage data directly from the source
  compartment allows us to avoid X-ray and JSON serialization overhead when
  storing new values.

- Storing the intermediate StructuredCloneBlob, rather than JSON values,
  in-memory saves us additional JSON and structured clone overhead when
  passing the values to listeners and API callers, and saves us a fair amount
  of memory to boot.

- Serializing storage values before sending them over a message manager allows
  us to deserialize them directly into an extension scope on the other side,
  saving us a lot of additional structured clone overhead and intermediate
  garbage generation.

- Using JSONFile.jsm for storage lets us consolidate multiple storage file
  write operations, rather than performing a separate JSON serialization for
  each individual storage write.

- Additionally, this paves the way for us to transition to IndexedDB as a
  storage backend, with full support for arbitrary structured-clone-compatible
  data structures.

MozReview-Commit-ID: JiRE7EFMYxn
2017-06-29 14:11:05 -07:00