Commit Graph

115 Commits

Author SHA1 Message Date
Andrea Marchesini
a8517d8f9f Bug 1347817 - Principal must always have a valid origin - part 6 - fixing tests, r=ehsan 2017-03-29 15:28:46 +02:00
Sebastian Hengst
2d8413763d Backed out changeset 4af10700c64c (bug 1347817) 2017-03-29 11:17:04 +02:00
Andrea Marchesini
8a16af58e2 Bug 1347817 - Principal must always have a valid origin - part 6 - fixing tests, r=ehsan 2017-03-29 08:27:17 +02:00
Mark Banner
ec9074e132 Bug 1347712 - Change the testing configurations into ESLint configurations within eslint-plugin-mozilla - automatically update .eslintrc.js test config files for new config locations. r=jaws
MozReview-Commit-ID: LH0CQOPfoe6
2017-03-20 12:36:37 +01:00
Yoshi Huang
6c76de3e9f Bug 1300671 - set firstPartyDomain on about: pages. r=smaug
When we load about:blank in a remote tab, it will have
LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL flag set, which will make
NullPrinicipal as its document principal. So we add
NULL_PRINCIPAL_FIRST_PARTY_DOMAIN as its firstPartyDomain.

So when we load data:, or javascript: URI in a remote tab, it will inherit the
principal from about:blank, hence also inherit the origin attributes.

There are also some about: pages will use codebase principal, so we also
set ABOUT_URI_FIRST_PARTY_DOMAIN as firstPartyDomain on their
principals.
2017-03-14 16:22:02 +08:00
Mark Banner
7d691acb44 Bug 1344027 - Fix most of the remaining ESLint no-undef issues in browser/components. r=jaws
MozReview-Commit-ID: DUnxVITvZgh
2017-03-03 09:29:14 +00:00
Masatoshi Kimura
d2f2c366ff Bug 1342144 - Fix ESLint errors in browser/. r=Paolo
MozReview-Commit-ID: ByMEEcTQQtd
2017-02-24 23:25:45 +09:00
Masatoshi Kimura
4f2e64ad3d Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg
2017-02-23 06:10:07 +09:00
Tim Huang
cad3d56e24 Bug 1339336 - Add a test case for pref "privacy.firstparty.isolate.restrict_opener_access". r=baku
MozReview-Commit-ID: GmnsHt2dumI
2017-02-16 10:15:54 +08:00
Mark Banner
3d5cf8ade7 Bug 1338249 - Improve eslint-plugin-mozilla's handling of workers when dealing with globals and imports. r=mossop
MozReview-Commit-ID: 7UdgstbYNlB
2017-02-07 11:14:49 +00:00
Carsten "Tomcat" Book
e03a98e408 Backed out changeset 03bfb1ccd33f (bug 1338249) for test failures in test_loading.xul 2017-02-15 15:24:32 +01:00
Mark Banner
fcc130aa4e Bug 1338249 - Improve eslint-plugin-mozilla's handling of workers when dealing with globals and imports. r=mossop
MozReview-Commit-ID: 7UdgstbYNlB
2017-02-07 11:14:49 +00:00
Florian Quèze
91f7a2ef3a Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Jared Wein
601c1e5636 Bug 1331661 - Manually fix the remaining 'quotes' errors for eslint. r=Gijs
MozReview-Commit-ID: 7iXjQtp9ftV
2017-01-17 10:38:58 -06:00
Jared Wein
0ec522d5b6 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a
2017-01-17 09:48:17 -06:00
Florian Quèze
63de711857 Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
Florian Quèze
b36a8b8f42 Bug 1330147 - automatic removal of the third boolean parameter in removeObserver calls, r=jaws. 2017-01-11 22:27:42 +01:00
Florian Quèze
45647c4570 Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00
Jonathan Hao
b31d12a165 Bug 1270338 - Add a mochitest to ensure Sanitizer clears data for all containers. r=baku,tanvi 2016-12-27 15:05:16 +08:00
Jared Wein
e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher
2d7553dcfd Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein
34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Jonathan Hao
4cf8fa7fbf Bug 1282655 - Test if site permissions are universal across origin attributes. r=tanvi 2016-12-26 22:38:00 -05:00
Shawn Huang
3ad4d79278 Bug 1270038 - Add permission 'persistent-storage' for StorageManager, r=baku 2016-12-16 18:00:53 +08:00
Tim Huang
1ea8bd79d3 Bug 1311237 - Fix the intermittent through making the observer been added earlier. r=baku 2016-12-08 16:04:06 -10:00
Jonathan Hao
c558de320d Bug 1274020 - Tests that shows the Cache Web API is separated by origin attributes. r=baku 2016-12-13 11:44:59 +08:00
Jonathan Hao
465092ec85 Bug 1282279 - Tests that make sure user certificates are Origin Attribute aware. r=baku 2016-11-29 14:21:09 +08:00
Yoshi Huang
955e9c647b Bug 1315602 - Remove the assertion of FirstPartyDomain should be empty in HTTP redirect. r=smaug 2016-12-01 15:49:07 +08:00
Tim Huang
0ede940519 Bug 1315723 - Resolve the timeout problem of the browser_cache.js. r=baku 2016-11-22 14:57:19 +08:00
Dave Huseby
edf3a380b2 Bug 1304432 - Intermittent test timeouts, added requestLongerTimeout. r=ehsan 2016-11-17 16:13:00 -05:00
Jared Wein
ef8b1e86ca Bug 1316870 - Enable no-shadow eslint rule for browser/. r=mossop 2016-11-15 22:58:30 -05:00
Dave Townsend
4e295aa48d Bug 1316882: Turn on space-before-function-paren eslint rule (browser). r=jaws
MozReview-Commit-ID: 2ZvTiZDHchz
2016-11-11 08:10:51 -08:00
Yoshi Huang
a94713a637 Bug 1315927 - ignore firstPartyDomain and userContextId in PermissionStatus. r=baku 2016-11-09 18:04:31 +08:00
Michal Novotny
783475431c Bug 1201042 - Update HTTP cache index format to work with OriginAttributes' suffix, r=honzab 2016-11-08 21:11:30 +01:00
Tim Huang
85dc66cd8a Bug 1264577 - Add a test case of caches for first-party isolation(adapted from Tor Browser patch 13749). r=mayhemer, r=arthuredelstein 2016-11-01 15:54:02 +08:00
Sebastian Hengst
d1c538318e Bug 1310297 - Remove test annotations using b2g, mulet or gonk: browser. r=RyanVM
MozReview-Commit-ID: LDNr97hKpc8
2016-11-05 11:29:13 +01:00
Tim Huang
69c358d7bb Bug 1310092 - Fixing the timeout problem of the favicon test for userContextIds. r=baku 2016-11-03 16:11:09 +08:00
Arthur Edelstein
f238991763 Bug 1312541 - Test isolation of cookies. r=baku, r=timhuang 2016-11-03 00:19:00 +01:00
Tim Huang
44f7996748 Bug 1308679 - Request a longer timeout for the tests that use first party isolation test framework. r=baku 2016-10-30 20:16:27 +08:00
Tim Huang
ce01296889 Bug 1264571 - Add a test case of isolating broadcast channels for first party isolation. r=arthuredelstein,baku 2016-10-05 10:16:32 +08:00
Mark Banner
c0170c9aa4 Bug 1311315 - General small fixes for no-undef eslint issues in browser/. r=jaws
Drop linting of the .eslintrc.js config files.
Fix some minor errors in the code (missing let/const, undefined vars).
Let eslint know that some files get their globals from other places (typically via xul script tags).

MozReview-Commit-ID: CwxuwPtRUr6
2016-10-18 12:34:35 +01:00
Mark Banner
233309fbe2 Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
MozReview-Commit-ID: JrbFxQ5rj6I
2016-10-18 08:38:10 +01:00
Tim Huang
27aeca28b8 Bug 1277803 - Part 7 : Add a test case of favicon loading for first party isolation. r=baku, arthuredelstein 2016-10-13 15:44:04 +08:00
Tim Huang
f00e56e5d7 Bug 1277803 - Part 6 : Add a test case for favicon loading in different userContextIds. r=baku 2016-10-13 15:44:02 +08:00
Wes Kocher
0545529ff2 Merge m-c to inbound, a=merge 2016-10-12 14:44:03 -07:00
Wes Kocher
85edded572 Backed out 8 changesets (bug 1277803) for browser-chrome test failures a=backout
Backed out changeset 477890efdb88 (bug 1277803)
Backed out changeset 49da326bfe68 (bug 1277803)
Backed out changeset 2d17a40a9077 (bug 1277803)
Backed out changeset b1cb0a195ca1 (bug 1277803)
Backed out changeset c7d82459d152 (bug 1277803)
Backed out changeset 3be9a06248af (bug 1277803)
Backed out changeset 8d119ca96999 (bug 1277803)
Backed out changeset be767a6f7ecd (bug 1277803)
2016-10-12 14:26:00 -07:00
Gabor Krizsanits
4697dfa2ed Bug 1301340 - part2: Force single content process in some tests. r=mrbkap 2016-10-12 19:50:42 +02:00
Tim Huang
834d13c4eb Bug 1277803 - Part 7 : Add a test case of favicon loading for first party isolation. r=baku, arthuredelstein 2016-10-12 17:32:15 +08:00
Tim Huang
97c810867c Bug 1277803 - Part 6 : Add a test case for favicon loading in different userContextIds. r=baku 2016-10-12 17:32:13 +08:00
Yoshi Huang
6214eae475 Bug 1300182: remove setTimeout to prevent intermittent failure. r=smaug 2016-10-11 11:20:55 +08:00