Commit Graph

2396 Commits

Author SHA1 Message Date
Andrea Marchesini
605591950f Bug 1420223 - createImageBitmap must work with nsIAsyncInputStream - part 4 - ImageBitmap must use imgITools::decodeImageBuffer, r=aosmond 2017-11-27 17:05:57 +01:00
Bob Silverberg
b9c6563f90 Bug 1419426 - Implement browserSettings.contextMenuShowEvent, r=kmag
This new API exposes the ui.context_menus.after_mouseup preference to extensions
so mouse gesture add-ons can modify it.

Note that this is not supported on Android, and also calling it with a value of
"mousedown" on Windows is a no-op.

MozReview-Commit-ID: AkhRmAyzuSp
2017-11-21 12:33:15 -05:00
Brindusan Cristian
4e36ea8d5f Backed out changeset e8d475fed206 (bug 1419426) for opt-test-verify failures on extensions/test/xpcshell/test_ext_browserSettings.js. r=backout a=backout on a CLOSED TREE 2017-11-23 16:19:37 +02:00
Bob Silverberg
a55b03f221 Bug 1419426 - Implement browserSettings.contextMenuShowEvent, r=kmag
This new API exposes the ui.context_menus.after_mouseup preference to extensions
so mouse gesture add-ons can modify it.

Note that this is not supported on Android, and also calling it with a value of
"mousedown" on Windows is a no-op.

MozReview-Commit-ID: AkhRmAyzuSp
2017-11-21 12:33:15 -05:00
Cosmin Sabou
c85db00376 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-11-23 11:42:46 +02:00
Kris Maglione
a2894ea39d Bug 1415352: Part 6 - Test triggering principals and CSP subjection for inline <style> nodes. r=bz
MozReview-Commit-ID: J5ZpYKno1pL
2017-11-07 15:21:25 -08:00
Kris Maglione
09959887ca Bug 1415352: Part 3b - Add tests for triggering principal and CSP subjection of style attributes. r=bz
MozReview-Commit-ID: 9vNQEihXh9G
2017-11-06 19:01:39 -08:00
Tim Nguyen
039d96ce90 Bug 1418603 - Allow setting the urlbar and the searchbar border color. r=jaws
MozReview-Commit-ID: HcALXHaYIV1
2017-11-19 17:05:30 +00:00
Tiberius Oros
966b5519ae Merge inbound to mozilla-central r=merge a=merge 2017-11-21 11:55:23 +02:00
Nika Layzell
5a9f61464e Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm
Currently if you write an async IPDL method which has a return value, we expose
a SendXXX method which returns a MozPromise. This MozPromise can then be
->Then-ed to run code when it is resolved or rejected.

Unfortunately, using this API loses ordering guarantees which IPDL provides.
MozPromise::Then takes an event target, which the resolve runnable is dispatched
to. This means that the resolve callback's code doesn't have any ordering
guarantees relative to the processing of other IPC messages coming over the same
protocol.

This adds a new overload to SendXXX with two additional arguments, a lambda
callback which is called if the call succeeds, and a lambda callback which is
called if the call fails. These will be called in order with other IPC messages
sent over the same protocol.

MozReview-Commit-ID: FZHJJaSDoZy
2017-11-20 17:55:32 -05:00
Bob Silverberg
c58b21ff61 Bug 1418311 - Avoid overwriting the notifications map in different contexts, r=mixedpuppy
Prior to this patch, the map that holds the list of notifications for an extension was recreated
for each context. This fixes that issue and maintains a list for the extension across all
contexts.

MozReview-Commit-ID: 2wfABoyyqvF
2017-11-17 11:42:04 -05:00
Luca Greco
8184c37696 Bug 1332273 - Support programmatically registered content scripts. r=baku,kmag
MozReview-Commit-ID: BiWlyYV7ZvB
2017-11-03 17:01:58 +01:00
Dan Banner
503979c95a Bug 1367704 - Enable the semi ESLint rule across the tree. r=standard8
MozReview-Commit-ID: GrlcOI9K2hJ
2017-05-28 19:57:46 +01:00
Shane Caraveo
7b17b88014 Bug 1416872 fix canceling request, r=rpl
MozReview-Commit-ID: BqZFsPHo4Ty
2017-11-16 13:07:51 -08:00
Bob Silverberg
0d7a68aadc Bug 1404584 Part 3: Convert ExtensionPreferencesManager to use update and uninstall events, r=aswan,jkt
This includes removing the "web-extension-preferences-replacing" and "web-extension-preferences-replaced"
notifications as they are no longer needed.

MozReview-Commit-ID: IjNf4BImgas
2017-11-01 09:51:41 -04:00
Bob Silverberg
fb5f544d9c Bug 1404584 Part 2: Convert ext-chrome-settings-overrides to use update and uninstall events, r=aswan,mkaply
MozReview-Commit-ID: KtagRbDz19S
2017-11-01 09:50:03 -04:00
Andrew Swan
26ec3250a3 Bug 1404584 Part 1: Use extensionId in ExtensionSettingsStore and ExtensionPreferencesManager methods, r=aswan
This code changes all of the functions in the ESS and the EPM to accept an extensionId rather than an
extension object, which is required for responding to the new onUpdate event.

MozReview-Commit-ID: FwMVa0fShGj
2017-10-24 20:18:03 -07:00
Tim Nguyen
2dae86e2ff Bug 1415878 - Accept both Chrome arrays and CSS colors for all properties. r=jaws
MozReview-Commit-ID: 6NkIUZKWkBI
2017-11-16 12:40:53 +00:00
Bob Silverberg
33b8b2103b Bug 1416984 - Remove all cookies at the beginning of test_ext_cookies.html, r=mixedpuppy
This test was failing when running locally during the second run (i.e., the non-oop run).
The problem ocurred because the cookies created during the first run were not removed
prior to the second run. This patch adds code to clean up any existing cookies before
running the test.

MozReview-Commit-ID: LieSZDudawN
2017-11-15 10:00:32 -05:00
Shane Caraveo
460fc01e51 Bug 1419880 first round of TODO/FIXME comment updates, r=mixedpuppy
MozReview-Commit-ID: 6GsqWSBKB2d
2017-11-22 11:54:07 -08:00
Tim Nguyen
3708109370 Bug 1415872 - Implement colors.tab_text and colors.background_tab_text. r=jaws
MozReview-Commit-ID: Gp5CHqmOi6A
2017-11-15 17:34:12 +00:00
Shane Caraveo
0ffa11915e Bug 1404671 check the error string r=mixedpuppy
MozReview-Commit-ID: GEiFEb7JMdh
2017-11-14 17:09:23 -08:00
Noemi Erli
7b30e25f81 Backed out changeset aa3d66cd3c40 (bug 1415872) for ES failure in toolkit/components/extensions/test/browser/head.js:37:7 r=backout on a CLOSED TREE 2017-11-15 12:08:22 +02:00
Tim Nguyen
5359e7d6df Bug 1415872 - Implement colors.tab_text and colors.background_tab_text. r=jaws
MozReview-Commit-ID: Gp5CHqmOi6A
2017-11-10 11:58:50 +00:00
Mark Banner
45ac338c2f Bug 1371293 - Upgrade ESLint to version 4.8.0, configuration changes. r=mossop
MozReview-Commit-ID: 2YHYOLTtqxu
2017-10-09 10:54:16 +01:00
Csoregi Natalia
b5dd5e4e8d Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-14 00:59:27 +02:00
Joel Maher
570a79dc06 Bug 1398120 - Disable toolkit/components/extensions/test/mochitest/test-oop-extensions/test_ext_webrequest_responseBody.html on linux for frequent failures. r=me, a=testonly 2017-11-13 12:20:02 -05:00
Kris Maglione
64a40102bb Bug 1416074: Follow-up: Removed unused service getter. r=trivial
MozReview-Commit-ID: CtUId9K5KPM
2017-11-12 16:39:09 -08:00
Andreea Pavel
3e879d4343 Merge inbound to mozilla-central r=merge a=merge 2017-11-11 11:59:20 +02:00
Kris Maglione
711a1e34a6 Bug 1416074: Remove obsolete extensionNameFromURI helper. r=mixedpuppy
MozReview-Commit-ID: IzaqUZV03rG
2017-11-09 17:18:59 -08:00
Kris Maglione
5620aa14ff Remove unused imports. r=trivial (no bug)
MozReview-Commit-ID: EEVSPkAgORY
2017-11-09 16:39:57 -08:00
Shane Caraveo
a325bb6ea2 Bug 1411646 prevent oauth redirect requests from happening, r=rpl
MozReview-Commit-ID: L8ekyXDeCbp
2017-11-09 15:11:13 -08:00
Andrew Swan
12d09190d2 Bug 1405491 Switch WebExtensions StartupCache to DeferredTask r=kmag
MozReview-Commit-ID: GfdM0hkAHqP
2017-10-16 21:01:43 -07:00
Ethan Glasser-Camp
f0e192aea2 Bug 1416077 - Disable retries on storage.sync requests r=markh 2017-11-10 13:06:10 -05:00
Kris Maglione
272fef97cc Bug 1414549: Correctly handle GetDeliveryTarget failure. r=mixedpuppy
getter_AddRefs nulls its parameter before passing it to the getter function,
which means that on failure, we wind up with a null IO thread, rather than its
original main thread value.

MozReview-Commit-ID: 1SSIeNtiBq9
2017-11-05 19:22:38 -08:00
Shane Caraveo
92cacc177d Bug 1291399 remove references to getExtensionUUID, r=aswan
MozReview-Commit-ID: BMJSjCbk6iU
2017-10-17 17:02:06 -07:00
Tim Nguyen
aadd9d978c Bug 1414512 - Refactor ext-theme.js to have per-theme Theme objects and global tracking variables. r=mixedpuppy
MozReview-Commit-ID: 7omIglzvjsF
2017-11-07 17:22:56 +00:00
Andrew Swan
3100f8c769 Bug 1398762 Fix unparseable host permission warning r=mixedpuppy
MozReview-Commit-ID: B2YALdhEKJs
2017-10-27 17:07:29 -07:00
Thom Chiovoloni
299bee8fdb Bug 1414997 - Ensure extension storage sync initializes Kinto exactly once r=glasserc
MozReview-Commit-ID: 3vYEp4eqpJO
2017-11-06 19:53:49 -05:00
Mark Banner
45b0812566 Bug 1412893 - Change instances of using getService to Services.jsm where possible in toolkit/components - Part 1. r=mossop
MozReview-Commit-ID: BBnacIvRJBR
2017-10-30 16:29:58 +00:00
Tim Nguyen
4271aaebcb Bug 1412595 - Implement colors.bookmark_text as alias for colors.toolbar_text. r=jaws
MozReview-Commit-ID: HjIgXtbYejZ
2017-10-31 10:35:26 +00:00
Sebastian Hengst
6de3048253 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Ai6Y5GGfkfT
2017-11-04 10:58:24 +01:00
Kris Maglione
46d7b2c8f3 Bug 1412345: Downgrade expanded principals before inheriting. r=bz,krizsa
There are several ways that expanded principals can be used as triggering
principals for requests. While that works fine for security checks, it also
sometimes causes them to be inherited, and used as result principals in
contexts where expanded principals aren't allowed.

This patch changes our inheritance behavior so that expanded principals are
downgraded to the most appropriate constituent principal when they would
otherwise be inherited.

The logic for choosing the most appropriate principal is a bit suspect, and
may eventually need to be changed to always select the last whitelist
principal, but I chose it to preserve the current principal downgrade behavior
used by XMLHttpRequest for the time being.

MozReview-Commit-ID: 9fvAKr2e2fa
2017-11-02 19:56:27 -07:00
NARCIS BELEUZU
8095e5b55f Backed out changeset 209df98be467 (bug 1398120) for frequently failing on toolkit/components/extensions/test/mochitest/test-oop-extensions/test_ext_webrequest_responseBody.html r=backout, a=backout on a CLOSED TREE 2017-11-03 14:35:44 +02:00
NARCIS BELEUZU
de7f74cfa2 Merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-03 12:04:55 +02:00
Mark Striemer
7eda41692e Bug 1386018 - Tell users that the default search engine was set by an extension r=aswan,bsilverberg,jaws
MozReview-Commit-ID: A7uJ2lN0cLF
2017-10-18 14:54:54 -05:00
Zibi Braniecki
5a4d89fcda Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
MozReview-Commit-ID: F0Ofe2lHHEo
2017-11-03 17:08:34 -07:00
Sebastian Hengst
af49e62d03 Backed out changeset 0637dca8a971 (bug 1410736) for eslint failure at toolkit/components/extensions/test/xpcshell/test_ext_i18n_css.js:130: Unexpected var, use let or const instead. r=backout on a CLOSED TREE 2017-11-04 00:51:02 +01:00
Kris Maglione
a0f797696a Bug 1398120: Fix some StreamFilter state handling inconsistencies. r=mixedpuppy
MozReview-Commit-ID: 2mLZ9DeqpE0
2017-11-02 12:27:45 -07:00
Zibi Braniecki
88f8e991b0 Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
MozReview-Commit-ID: CmXBFcKxOkX
2017-11-02 14:11:41 -07:00