Commit Graph

1494 Commits

Author SHA1 Message Date
Tim Huang
0c5713210a Bug 1470156 - Part 1: Adding a test case for reassuring mozilla::OriginAttributes::CreateSuffix won't be crashed with invalid characters in firstParty domain. r=baku,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D1845
2018-07-03 13:48:18 +00:00
Brindusan Cristian
08c01699dd Backed out changeset 604fb83b6b61 (bug 1470156) for mochitest failures on test_ext_cookies_first_party.html. CLOSED TREE 2018-07-04 00:01:49 +03:00
Tim Huang
b95d7d0501 Bug 1470156 - Part 1: Adding a test case for reassuring mozilla::OriginAttributes::CreateSuffix won't be crashed with invalid characters in firstParty domain. r=baku,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D1845
2018-07-03 13:48:18 +00:00
Shane Caraveo
ff732ce6c2 Bug 1470516 - remove or fix localized values in securityInfo, r=rpl
MozReview-Commit-ID: 3xURSfbPTmS
2018-07-02 15:45:18 -03:00
Rob Wu
88992d666c Bug 1351663 - Support SameSite flag in browser.cookies API r=rpl
A part of cookies.json is copied from
ea90e37756/chrome/common/extensions/api/cookies.json

MozReview-Commit-ID: LCVN9Y8uHIL
2018-06-09 01:26:26 +02:00
Mark Banner
d636d89aae Bug 1470455 - Add the 'expected' arguments to throws/rejects for toolkit. r=mossop
MozReview-Commit-ID: Ln9EpDpTR91
2018-06-22 16:02:22 +01:00
Dave Townsend
0f2c3bd648 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850
Differential Revision: https://phabricator.services.mozilla.com/D1869
2018-06-28 16:06:09 -07:00
Brindusan Cristian
d94fd86e60 Backed out changeset b11aa832c41a (bug 1453751) for Mochitest-15 failures in toolkit/components/extensions/test/mochitest/test_ext_webrequest_filter.html. CLOSED TREE 2018-06-28 23:15:49 +03:00
Dave Townsend
ebc2c6ff75 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850
2018-06-04 12:53:55 -07:00
Cosmin Sabou
42e854deed Backed out changeset 638eb8a41245 (bug 1453751) for frequent linux debug e-10s failures on test_ext_webrequest_filter.html 2018-06-26 07:29:35 +03:00
Dave Townsend
e6cce6de21 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
2018-06-04 12:53:55 -07:00
Luca Greco
6955a5677f Bug 1465129 - Collect telemetry data related to the storage.local "JSONFile to IDBBackend" data migrations. r=mixedpuppy
MozReview-Commit-ID: 3iGv5XkqeA3
2018-06-17 13:38:02 +02:00
Tim Nguyen
5a84252c00 Bug 1469318 - Do not require 'theme' permission for theme.getCurrent() and theme.onUpdated. r=jaws
MozReview-Commit-ID: JFGm2xzlsJ1
2018-06-18 21:26:00 +01:00
Brindusan Cristian
43fc1e53a1 Backed out changeset 1c40cef0e222 (bug 1469318) for mochitest failures on test_ext_all_apis.html CLOSED TREE 2018-06-18 22:18:28 +03:00
Tim Nguyen
59f2f00b29 Bug 1469318 - Do not require 'theme' permission for theme.getCurrent() and theme.onUpdated. r=jaws
MozReview-Commit-ID: 1FctjuDSXWb
2018-06-18 17:18:57 +01:00
Mark Banner
ea6c3b2e37 Bug 1456762 - Add parsing of HTML files to ESLint to discover their script tags and the globals that are imported. r=mossop
MozReview-Commit-ID: 6jiEbZnyv6e

Differential Revision: https://phabricator.services.mozilla.com/D1643
2018-06-16 08:20:38 +00:00
Joel Maher
d0823df1ef Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Luca Greco
07a2cafcbd Bug 1465120 - Use a different telemetry histogram key for the storage.local IndexedDB backend. r=aswan,chutten
MozReview-Commit-ID: ApaNLXehExf
2018-06-08 15:15:29 +02:00
Rob Wu
c7dc7c44a4 Bug 1465063 - Return FP cookies from cookies.getAll even if domain/url is set r=rpl
`browser.cookies.getAll(details)` is expected to return all cookies if the
"details.firstPartyDomain" key is set to undefined/null.
This usually works, because `getCookiesWithOriginAttributes` is used,
which iterates over all cookies and only checks origin attributes that
exist in the specified pattern.

If a "url" or "domain" are set, then `getCookiesFromHost` was used,
which uses a look-up table keyed by host and OriginAttributes, with
undefined origin attributes initialized at their default value.
Consequently, only non-FP cookies were returned.

This commit fixes the issue by using `getCookiesWithOriginAttributes`
when the `firstPartyDomain` does not have an explicit (string) value.

MozReview-Commit-ID: AxHbbDeqSwr
2018-06-08 17:20:02 +02:00
Rob Wu
f73131fe49 Bug 1465063 - Add tests for get/getAll w/o firstPartyDomain r=rpl
The test coverage for cookies.get was incomplete, as scenarios
with empty, null and undefined firstPartyDomain were not checked.

There is a distinction between "empty" and "w/o firstPartyDomain".

MozReview-Commit-ID: 1l54nUOCneK
2018-06-08 13:36:36 +02:00
Rob Wu
ca31f07e88 Bug 1465063 - Add await before assertRejects r=rpl
Wait for the promise resolution before moving to the next line in the tests.

MozReview-Commit-ID: Ldeiwj9vCzn
2018-06-08 11:31:05 +02:00
Andrew Swan
207ad9dc56 Bug 1467136 Ensure extension messaging cannot miss the startup event r=kmag
When a background page has a messaging listener but the background page
is started in response to something other than an extension message, we
were missing the background "startup" event.  Fix that by setting up the
listener earlier.

MozReview-Commit-ID: Cr58EyCoY6W
2018-06-06 13:58:43 -07:00
Luca Greco
3d6b1a6a75 Bug 1406181 - Test storage.local from extension tab pages on file and indexedDB backends. r=aswan
MozReview-Commit-ID: BYhlnLiitgh
2017-10-19 16:27:02 +02:00
Luca Greco
e10a902040 Bug 1406181 - Test storage.local from content scripts on file and indexedDB backends. r=aswan
MozReview-Commit-ID: C4ij1o3TXIO
2017-10-19 16:22:58 +02:00
Luca Greco
39815fc623 Bug 1406181 - Test storage.local cleanup on uninstall on file and indexedDB backends. r=aswan
MozReview-Commit-ID: H8W8ry1dQIt
2017-10-19 16:00:52 +02:00
Luca Greco
64c71a5b24 Bug 1406181 - Test storage.local telemetry on file and indexedDB backends. r=aswan
MozReview-Commit-ID: AHSPICGKdib
2017-10-19 15:46:51 +02:00
Luca Greco
0496d0ffea Bug 1406181 - Test storage.local JSONFile and IndexedDB backends. r=kmag
MozReview-Commit-ID: CU9CVdIp8l8
2017-10-19 15:15:31 +02:00
Luca Greco
9d477a36c5 Bug 1406181 - Test storage.local data migration from JSONFile to IDB backend. r=aswan
MozReview-Commit-ID: 8qzy0z1ei0w
2018-04-19 15:15:35 +02:00
Andrew Swan
84ecc06250 Bug 1369841 Make browser.runtime.onMessage and onConnect persistent r=zombie
MozReview-Commit-ID: 4LdBeEERtsD
2018-05-29 17:40:53 -07:00
Tomislav Jovanovic
ecc35e8e14 Bug 1466349 part 3 - Ignore ignorePath for privileged about: MatchPatterns r=aswan
Paths are all about: URIs have, so ignoring them doesn't make sense.

MozReview-Commit-ID: ATwAeI7m61z
2018-06-03 19:38:29 +02:00
Cosmin Sabou
0f5163a609 Backed out 10 changesets (bug 1406181) as per developers request.
Backed out changeset 06461ddb2699 (bug 1406181)
Backed out changeset fd61d9faedf0 (bug 1406181)
Backed out changeset b52c2fb70ae1 (bug 1406181)
Backed out changeset 4f387b4a76a9 (bug 1406181)
Backed out changeset db783c96c076 (bug 1406181)
Backed out changeset 62e9126ecd0d (bug 1406181)
Backed out changeset d34810cab822 (bug 1406181)
Backed out changeset 3241c2dfb296 (bug 1406181)
Backed out changeset 912a2eaf4d26 (bug 1406181)
Backed out changeset fdac47b8ef20 (bug 1406181)
2018-06-03 16:10:23 +03:00
Andreea Pavel
6eb96b6639 Backed out changeset 5cd398cc6a4b (bug 1369841) for failing browser chrome at browser/components/extensions/test/browser/browser_ext_legacy_extension_context_contentscript.js on a CLOSED TREE 2018-06-03 00:48:16 +03:00
Andrew Swan
6eb7210624 Bug 1369841 Make browser.runtime.onMessage and onConnect persistent r=zombie
MozReview-Commit-ID: 4LdBeEERtsD
2018-05-29 17:40:53 -07:00
Luca Greco
6e5845b0b9 Bug 1406181 - Test storage.local from extension tab pages on file and indexedDB backends. r=aswan
MozReview-Commit-ID: BYhlnLiitgh
2017-10-19 16:27:02 +02:00
Luca Greco
7ce2e54498 Bug 1406181 - Test storage.local from content scripts on file and indexedDB backends. r=aswan
MozReview-Commit-ID: C4ij1o3TXIO
2017-10-19 16:22:58 +02:00
Luca Greco
caf21ccba9 Bug 1406181 - Test storage.local cleanup on uninstall on file and indexedDB backends. r=aswan
MozReview-Commit-ID: H8W8ry1dQIt
2017-10-19 16:00:52 +02:00
Luca Greco
44e405afa2 Bug 1406181 - Test storage.local telemetry on file and indexedDB backends. r=aswan
MozReview-Commit-ID: AHSPICGKdib
2017-10-19 15:46:51 +02:00
Luca Greco
2390a2f870 Bug 1406181 - Test storage.local JSONFile and IndexedDB backends. r=kmag
MozReview-Commit-ID: CU9CVdIp8l8
2017-10-19 15:15:31 +02:00
Luca Greco
634834524b Bug 1406181 - Test storage.local data migration from JSONFile to IDB backend. r=aswan
MozReview-Commit-ID: 8qzy0z1ei0w
2018-04-19 15:15:35 +02:00
Mark Banner
41a08a95a8 Bug 1465762 - Enable ESLint rule require-expected-throws-or-rejects for toolkit/**/extensions. r=aswan
MozReview-Commit-ID: 5pS6RHs0naW
2018-05-31 13:45:44 +01:00
Narcis Beleuzu
be647d4870 Backed out changeset 6630148c9bea (bug 1465762) for xpcshell failures on test_ext_schemas_async.js. CLOSED TREE 2018-06-01 12:32:24 +03:00
Mark Banner
d6a969b22e Bug 1465762 - Enable ESLint rule require-expected-throws-or-rejects for toolkit/**/extensions. r=aswan
MozReview-Commit-ID: 5pS6RHs0naW
2018-05-31 13:45:44 +01:00
Tim Nguyen
820c27ae31 Bug 1459455 - Allow changing the tab separator color. r=jaws
MozReview-Commit-ID: 6DNHHTTw7ff
2018-05-30 04:34:51 +02:00
Brindusan Cristian
aac0f3636a Backed out changeset c6bd6395abb7 (bug 1459455) for ESlint failure on browser_ext_themes_tab_separators.js. CLOSED TREE 2018-05-30 02:38:37 +03:00
Tim Nguyen
4ddc07cd0a Bug 1459455 - Allow changing the tab separator color. r=jaws
MozReview-Commit-ID: EZud6zCay4a
2018-05-30 00:51:45 +02:00
Andrea Marchesini
7516529ffd Bug 1461426 - IPCBlobInputStreamParent should be sent as underlying stream to the content - unit test, r=rpl 2018-05-29 20:02:03 +02:00
Tim Nguyen
0fd9431f6c Bug 1464633 - Fix typo in browser_ext_themes_autocomplete_popup.js test. r=dao
MozReview-Commit-ID: JwqKMvklK4K
2018-05-27 12:08:30 +02:00
Cosmin Sabou
1c94af50bf Merge inbound to mozilla-central. a=merge 2018-05-27 15:58:59 +03:00
Dão Gottwald
437885ac9c Bug 1451827 - In dark popups styled by webext themes, set --urlbar-popup-url-color and .text-link color to the same value. r=jaws
MozReview-Commit-ID: 20dLQ4bIBgu
2018-05-26 18:37:27 +02:00
Dão Gottwald
bca3e4e7b1 Bug 1462635 - Fix disabled text color in webext theme styled popups. r=ntim
MozReview-Commit-ID: myI1PNipvK
2018-05-26 18:45:06 +02:00