Commit Graph

798 Commits

Author SHA1 Message Date
Ethan Glasser-Camp
244ce12521 Bug 1319742 - UUIDs should be strings, not objects, r=markh
`generateUUID()` returns an `nsID`, which is not exactly the same as a
UUID. `nsID`s can be converted to strings using `toString()`, but if
you use `JSON.stringify()`, they become `{}`. Object comparison in JS
performs identity comparison, which would be useless even if the UUIDs
were sensible, which they aren't. As a result, trying to sync keyrings
always failed, because it always seemed like UUIDs had changed, even
when they hadn't.

Because it never occurred to me that UUIDs wouldn't be strings, I
never even wrote a test for this. Correct this, and fix the test.

Thanks to :vasilica_mihasca and :markh for reporting and diagnosing this.

MozReview-Commit-ID: EthxkFFwRbQ
2016-11-29 14:15:55 -05:00
Ryan VanderMeulen
9f5b8a4949 Merge m-c to autoland on a CLOSED TREE. a=merge 2016-11-30 13:27:46 -05:00
Shane Caraveo
829f320c55 Bug 1318800 fix systemPrincipal checks so top level tab loads work with webrequests, r=kmag
MozReview-Commit-ID: D5b8Qs839bP
2016-11-29 16:00:06 -08:00
André Bargull
6b01a0c176 Bug 1319938 - Remove String generics uses in toolkit/components/extensions. r=aswan 2016-11-29 14:30:06 -08:00
Kris Maglione
13de4d9cb5 Bug 1319607: Make request resumption more resilient. r=mixedpuppy
MozReview-Commit-ID: 8ObjJKDf3wb
2016-11-24 13:56:22 -08:00
Kris Maglione
db3532d357 Bug 1319536: Part 2 - Test that requests from private prowsing content scripts use private browsing credentials. r=aswan
MozReview-Commit-ID: zqNCp9LFgS
2016-11-24 15:51:40 -08:00
Bob Owen
052cfa430c Bug 1147911 Part 5: Fix tests to allow for window.open to return null. r=billm
These tests open a parent browser from the child, which means that the returned window isn't actually the real one anyway. Soon we will return null in this scenario.
2016-11-24 15:08:31 +00:00
Sebastian Hengst
e764ae46f6 Backed out changeset 17ac392560a7 (bug 1147911) 2016-11-23 18:32:58 +01:00
Bob Owen
72dbf4b75b Bug 1147911 Part 5: Fix tests to allow for window.open to return null. r=billm
These tests open a parent browser from the child, which means that the returned window isn't actually the real one anyway. Soon we will return null in this scenario.
2016-11-23 13:36:58 +00:00
Phil Ringnalda
128ac76f37 Merge m-c to m-i
MozReview-Commit-ID: FbJhcY28dXi
2016-11-22 21:32:23 -08:00
Kris Maglione
7eab9e39f9 Bug 1319452: Part 1 - Load background page in private browsing mode during permanent private browsing. r=billm
MozReview-Commit-ID: KXA7xlq8Voc
2016-11-22 12:07:59 -08:00
Shane Caraveo
fce4a26601 Bug 1319107 fix default value for getRedirectURL, r=kmag
MozReview-Commit-ID: Iv4rgaSOTJz
2016-11-22 11:43:06 -08:00
Shane Caraveo
c3343d8a1e Bug 1318154 test remote iframe in background page, r=aswan
MozReview-Commit-ID: 6FgNvi9jwTu
2016-11-21 10:46:39 -08:00
Kris Maglione
819236d20d Bug 1317154: Correctly support multiple concurrent listeners for the same event. r=aswan
MozReview-Commit-ID: 4OgukI6Sc6v
2016-11-18 12:20:22 -08:00
Kris Maglione
32691df984 Bug 1318604: Don't add task for OOP preference initialization. r=mixedpuppy
Adding mochitest tasks from head scripts turns out to cause unpredictable
timing issues, where the initial add_task() call sometimes causes tests to
begin running before the main test script has loaded, and had a chance to add
its tasks. While I'd still prefer to do this initialization in a task, it's
not worth the intermittent failures it causes.

MozReview-Commit-ID: 3CDL82NyrzC
2016-11-18 09:27:06 -08:00
Sebastian Hengst
01ca9712d9 Backed out changeset 514e9bc44723 (bug 1147911) 2016-11-18 00:58:51 +01:00
Kris Maglione
4f71b2ad42 Bug 1317101 - Part 8c: Run plain mochitests in both parent-process and remote configurations. r=billm
MozReview-Commit-ID: 3gs4vAlFBeU
2016-11-15 18:20:52 -08:00
Bob Owen
e3b39aa949 Bug 1147911 Part 5: Fix tests to allow for window.open to return null. r=billm
These tests open a parent browser from the child, which means that the returned window isn't actually the real one anyway. Soon we will return null in this scenario.
2016-11-17 15:48:52 +00:00
Wes Kocher
2876e6bba5 Backed out 15 changesets (bug 1317101) for e10s jsreftest failures a=backout CLOSED TREE
Backed out changeset 17757ba4c0e8 (bug 1317101)
Backed out changeset 61f8a4084bbd (bug 1317101)
Backed out changeset a8cdc81cdcce (bug 1317101)
Backed out changeset e06d269a5d4f (bug 1317101)
Backed out changeset 1e1bfb578dcd (bug 1317101)
Backed out changeset 0f8144296a9d (bug 1317101)
Backed out changeset b7892d3fb0ca (bug 1317101)
Backed out changeset 039d63d5fef7 (bug 1317101)
Backed out changeset ef7e061b37bf (bug 1317101)
Backed out changeset af7b81d7a5cc (bug 1317101)
Backed out changeset 225ad2535585 (bug 1317101)
Backed out changeset b0521588011d (bug 1317101)
Backed out changeset 07321664430a (bug 1317101)
Backed out changeset 47d283897283 (bug 1317101)
Backed out changeset ffc63be3557c (bug 1317101)
2016-11-16 16:44:30 -08:00
Kris Maglione
fdc5daa396 Bug 1317101: Follow-up: Fix race in popup tests.
MozReview-Commit-ID: af64Ic1qBg
2016-11-16 15:35:24 -08:00
Kris Maglione
150e184e00 Bug 1317101 - Part 8c: Run plain mochitests in both parent-process and remote configurations. r=billm
MozReview-Commit-ID: 3gs4vAlFBeU
2016-11-15 18:20:52 -08:00
Carsten "Tomcat" Book
b2903208c2 Merge mozilla-central to inbound 2016-11-16 14:53:15 +01:00
Shane Caraveo
514b6a6f46 Bug 1311576 fix webrequest filter for tabId and windowId, r=kmag
MozReview-Commit-ID: FzW53LXktWz
2016-11-15 16:34:33 -08:00
Shane Caraveo
77f48e21d2 Bug 1305421 - Implement chrome.identity, r=kmag
MozReview-Commit-ID: LCAbodtV4XZ
2016-11-14 13:02:02 -08:00
Kris Maglione
b1988dcf9c Bug 1317366: Handle blocking WebRequest listeners returning non-object values. r=mixedpuppy
MozReview-Commit-ID: HMbgONPqsKU
2016-11-14 21:34:23 -08:00
Carsten "Tomcat" Book
b7c91e734a merge mozilla-inbound to mozilla-central a=merge 2016-11-14 10:22:06 +01:00
Iris Hsiao
80c953b03a Backed out changeset c7054d08b878 (bug 1305421) for test_chrome_ext_identity.html Timed out 2016-11-14 12:02:56 +08:00
Ethan Glasser-Camp
57d1272373 Bug 1253740 - Handle password resets more correctly, r=markh
MozReview-Commit-ID: 1mSvbsYP9fV
2016-09-30 12:12:58 -04:00
Ethan Glasser-Camp
17e5ad725d Bug 1253740 - Define checkSyncKeyRing() which reuploads keys when passwords change, r=markh
MozReview-Commit-ID: B5Ptj4MGAC
2016-10-03 19:19:13 -04:00
Kris Maglione
d4043fffcf Bug 1315504: Split up test_ext_cookies_permissions.
MozReview-Commit-ID: 1hrEi7mljJB
2016-11-15 12:13:53 -08:00
Ethan Glasser-Camp
01011fd94d Bug 1253740 - Hash extension ID to obfuscate installed add-ons, r=bsilverberg,kmag
MozReview-Commit-ID: ASBrDxIq2lF
2016-07-28 12:20:42 -04:00
Ethan Glasser-Camp
32c03ceb3d Bug 1253740 - Introduce extensionIdToCollectionId, r=bsilverberg,kmag
MozReview-Commit-ID: 5nDVtleknyN
2016-07-27 16:16:09 -04:00
Ethan Glasser-Camp
1c16eba2cc Bug 1253740 - Add code that syncs and tests, r=bsilverberg,kmag,markh
MozReview-Commit-ID: 8pm2jG92hCs
2016-09-08 14:16:09 -04:00
Ethan Glasser-Camp
7f289b0749 Bug 1253740 - Introduce extension-storage engine with a sanity test, r=markh
Note that this "enables" the engine using a pref, even though it might
not be ready yet, so that the tests can pass.

MozReview-Commit-ID: AZ0TVERiQDU
2016-09-08 14:23:12 -04:00
Michiel de Jong
f4b60082d3 Bug 1253740 - Implement storage.sync, r=bsilverberg,kmag
MozReview-Commit-ID: 5v9nYBTgekj
2016-08-11 18:16:37 -04:00
Shane Caraveo
9b967a5f9c Bug 1305421 - Implement chrome.identity, r=kmag
MozReview-Commit-ID: 6qDlSN0Ekqq
2016-11-13 10:34:28 -08:00
Wes Kocher
f17d46cc2b Backed out 9 changesets (bug 1253740) for xpcshell failures a=backout
Backed out changeset 903890f218dd (bug 1253740)
Backed out changeset 1b13fe394b66 (bug 1253740)
Backed out changeset e1312ab53299 (bug 1253740)
Backed out changeset 5b5338a2baeb (bug 1253740)
Backed out changeset d3d89d4e2d87 (bug 1253740)
Backed out changeset 96da5e6944b8 (bug 1253740)
Backed out changeset 4fbff333994f (bug 1253740)
Backed out changeset 653788e146f2 (bug 1253740)
Backed out changeset b98fa03d8c15 (bug 1253740)
2016-11-11 18:59:24 -08:00
Ethan Glasser-Camp
377f8b2ad2 Bug 1253740 - Handle password resets more correctly, r=markh
MozReview-Commit-ID: 1mSvbsYP9fV
2016-09-30 12:12:58 -04:00
Ethan Glasser-Camp
9966c5b1d5 Bug 1253740 - Define checkSyncKeyRing() which reuploads keys when passwords change, r=markh
MozReview-Commit-ID: B5Ptj4MGAC
2016-10-03 19:19:13 -04:00
Ethan Glasser-Camp
1edddc87a9 Bug 1253740 - Hash extension ID to obfuscate installed add-ons, r=bsilverberg,kmag
MozReview-Commit-ID: ASBrDxIq2lF
2016-07-28 12:20:42 -04:00
Ethan Glasser-Camp
521d41e86d Bug 1253740 - Introduce extensionIdToCollectionId, r=bsilverberg,kmag
MozReview-Commit-ID: 5nDVtleknyN
2016-07-27 16:16:09 -04:00
Ethan Glasser-Camp
492b52f8a9 Bug 1253740 - Add code that syncs and tests, r=bsilverberg,kmag,markh
MozReview-Commit-ID: 8pm2jG92hCs
2016-09-08 14:16:09 -04:00
Ethan Glasser-Camp
a5715ea3a2 Bug 1253740 - Introduce extension-storage engine with a sanity test, r=markh
Note that this "enables" the engine using a pref, even though it might
not be ready yet, so that the tests can pass.

MozReview-Commit-ID: AZ0TVERiQDU
2016-09-08 14:23:12 -04:00
Michiel de Jong
a1fdb6f3ff Bug 1253740 - Implement storage.sync, r=bsilverberg,kmag
MozReview-Commit-ID: 5v9nYBTgekj
2016-08-11 18:16:37 -04:00
Wes Kocher
e40b3bdc43 Merge mozilla-central to autoland a=merge 2016-11-11 14:10:32 -08:00
Carsten "Tomcat" Book
cabaa5540f Merge mozilla-central to mozilla-inbound 2016-11-11 16:43:07 +01:00
Wes Kocher
1ce6160424 Backed out changeset 15886f6c3dd1 (bug 1311576) for test_ext_webrequest_filter.html failures a=backout 2016-11-10 23:36:07 -08:00
Shane Caraveo
beac0c5fcf Bug 1311576 fix webrequest filter for tabId and windowId, r=kmag
MozReview-Commit-ID: Gfg3Wv7JGI6
2016-11-10 09:54:34 -08:00
Shane Caraveo
3a9633522f Bug 1314492 refactor webrequest tests, r=kmag
MozReview-Commit-ID: D0dleERLM3K
2016-11-10 16:01:50 -08:00
Kris Maglione
d25b4ecf0f Bug 1316396: Part 1 - Reorganize parent, child, common, and test code into more appropriate modules. r=aswan
MozReview-Commit-ID: 5WMt69GoN3K
2016-11-10 12:35:22 -08:00