Commit Graph

2354 Commits

Author SHA1 Message Date
Luca Greco
4f36c2e62a Bug 1406675 - Allow storages in WebExtensions on customized cookieBehavior and lifetimePolicy prefs. r=asuth,aswan
This commit ensures that WebExtension principals always get a nsICookieService::BEHAVIOR_ACCEPT
cookieBehavior and a nsICookieService::ACCEPT_NORMALLY aLifetimePolicy:

- the webextension pages are still able to use indexedDB and localStorage on a globally
  configured:

  "network.cookie.cookieBehavior = 2"

  ("Accept cookies from websites" unchecked in the about:preferences
  "use custom settings for history" section)

- the webextension pages' localStorage does not switch in session-only mode on a globally
  configured:

    "network.cookie.lifetimePolicy = 2"

  ("Keep until I close Firefox" in the about:preferences
  "use custom settings for history" section)


MozReview-Commit-ID: 5LOCvCgcokM
2017-11-10 00:49:33 +01:00
Ben Kelly
b54eb8a170 Bug 1420594 P3 Disable test_ext_contentScripts_register.js on android since it fails without the shutdown delay bug. r=baku 2017-12-04 09:51:32 -05:00
Andrea Marchesini
7245afe6b9 Bug 1421655 - Using imgITools::decodeImageFromArrayBuffer instead coping data into a string, r=aosmond 2017-11-30 14:48:47 +01:00
Bob Silverberg
2adf022ca1 Bug 1420969 - API to open search results in new tab, r=mixedpuppy
This introduces browserSettings.openSearchResultsInNewTabs which exposes
the browser.search.openintab preference to extensions.

Note that until bug 1394304 is fixed this only works for searches performed
via the search box, and not for searches performed via the address bar.

MozReview-Commit-ID: HuoJ0uOvMjX
2017-11-29 09:49:46 -05:00
Bob Silverberg
b3a11fe2e4 Bug 1420974 - API to open bookmarks in new tab, r=mixedpuppy
This introduces browserSettings.openBookmarksInNewTabs which exposes
the browser.tabs.loadBookmarksInTabs preference to extensions.

MozReview-Commit-ID: AZlir2GoiCo
2017-11-28 09:20:31 -05:00
Bob Silverberg
af464fdaf9 Bug 1408472 - Read-only browserSettings should return false on write attempts, r=mixedpuppy
This updates browserSettings so that calling set and clear return false, rather than undefined,
for read-only settings. It also returns "not_controllable" rather than "controllable_by_this_extension"
for levelOfControl from calls to get for read-only settings.

MozReview-Commit-ID: 9c0bKDaYIC7
2017-11-28 12:11:23 -05:00
vladikoff
08cf9992c1 Bug 1369257 - add "scrollbars" to window features for identity.launchWebAuthFlow r=mixedpuppy
MozReview-Commit-ID: FTwyOUxG3K0
2017-11-27 21:21:22 -05:00
tushararora
fa5e677c46 Bug 1334782 - tabs.query should pattern match the title r=zombie
MozReview-Commit-ID: 5WaKLaOP7Nc
2017-11-16 16:17:45 +05:30
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