Commit Graph

490289 Commits

Author SHA1 Message Date
Yoshi Huang
85a594681d Bug 1260931 - Part 1: add firstPartyDomain. r=smaug
Add an origin attribute called 'firstPartyDomain'.
This value will be extracted from the URL bar.

And the purpose of this attribute is used to isolate the data-jars.
Please see the tor documentation.
https://www.torproject.org/projects/torbrowser/design/#identifier-linkability

The idea is like a superset of 'reject third party cookies', but not
only apply for cookies, it also applies to all data-jars like localStorage,
indexedDB and so on.

So basically an iframe will have its own data-jar, and this data-jar is
isolated by the URL from URL bar, for instance, an iframe
https://facebook.com inside https://cnn.com won't share data-jar with
the iframe (https://facebook.com) in https://bbc.com
2016-09-06 10:25:48 +08:00
Gregory Moore
b5da131303 Bug 1298709 - Remove redundant call of get() on smart pointer in nsCategoryManager.cpp. r=froydnj 2016-09-02 15:22:09 -07:00
Gregory Moore
e38e936a4e Bug 1298709 - Remove redundant calls to .get() on smart pointers in nsView.cpp. r=sledru 2016-09-01 14:50:32 -07:00
JerryShih
1ea51c8a63 Bug 1298058 - Use different lock/unlock function for WebVR composition path. r=milan 2016-09-05 01:17:00 -04:00
Phil Ringnalda
69f7ad4a4b Merge m-c to m-i 2016-09-05 18:11:14 -07:00
Phil Ringnalda
95b0ecf4b5 Merge f-t to m-c, a=merge 2016-09-05 18:05:38 -07:00
Phil Ringnalda
dd636a76e8 Merge m-i to m-c, a=merge 2016-09-05 18:05:00 -07:00
Sotaro Ikeda
7692219cd3 Bug 1273823 - Optimize CreateSourceSurfaceFromLockedMacIOSurface() r=nical 2016-09-05 17:59:58 -07:00
Phil Ringnalda
3786ab03f1 Merge m-c to f-t 2016-09-05 17:05:44 -07:00
Phil Ringnalda
045f9ff310 Merge m-c to autoland 2016-09-05 13:30:19 -07:00
Phil Ringnalda
8d0d871432 Backed out changeset 85a53a4c3778 (bug 1299061) for merge conflicts 2016-09-05 13:28:36 -07:00
Phil Ringnalda
d7eb2fba8f Merge m-c to m-i 2016-09-05 13:13:05 -07:00
Phil Ringnalda
55c3c1efd5 Merge f-t to m-c, a=merge 2016-09-05 13:06:35 -07:00
Phil Ringnalda
66b3a90750 Merge m-i to m-c, a=merge 2016-09-05 13:05:52 -07:00
Andrea Marchesini
1738225353 Bug 1297472 - Improve nsIScriptTimeoutHandler::GetHandlerText(), r=bz 2016-09-05 21:25:13 +02:00
Sebastian Hengst
60d03b201e Backed out changeset 935ffd53f193 (bug 1260931) for failing xpcshell test test_packaged_app_service.js. r=backout 2016-09-05 21:16:10 +02:00
Sebastian Hengst
61b5222f3c Backed out changeset 99bb7090b830 (bug 1260931) 2016-09-05 21:15:33 +02:00
Sebastian Hengst
c9519f7c29 Backed out changeset b9afda2804fd (bug 1260931) 2016-09-05 21:15:29 +02:00
Sebastian Hengst
4f2b803d06 Backed out changeset 9efc0a2bb306 (bug 1260931) 2016-09-05 21:15:25 +02:00
Sebastian Hengst
11af7e9b42 Backed out changeset 7189dc44fca0 (bug 1260931) 2016-09-05 21:15:20 +02:00
Sebastian Hengst
bb5ced415d Backed out changeset 5f4f5b4e3d8a (bug 1260931) 2016-09-05 21:15:16 +02:00
Tom Schuster
e92a8267c7 Bug 1299267 - Add additonal telemetry types. r=ckerschb 2016-09-05 20:02:52 +02:00
Tom Schuster
885c81fd09 Bug 1299267 - Test for wrong mime types. r=ckerschb 2016-09-05 20:02:52 +02:00
Tom Schuster
b1d8e594b3 Bug 1299267 - Block additional wrong mime types for scripts. r=ckerschb 2016-09-05 20:02:52 +02:00
Olli Pettay
2316a8d4d4 backout Bug 1298504, r=backout
--HG--
extra : rebase_source : cf91ef062b75fb0019302f91ab78507d95369384
2016-09-05 21:00:50 +03:00
Yoshi Huang
4851870977 Bug 1260931 - Part 6: pass origin attributes to nsIWebBrowser. r=smaug 2016-09-06 01:50:48 +08:00
Yoshi Huang
3c241e2c75 Bug 1260931 - part 5: tests. r=smaug 2016-09-06 01:50:42 +08:00
Yoshi Huang
0f48c1a7b5 Bug 1260931 - Part 4: update OriginAttributes when http redirect. r=smaug 2016-09-06 01:50:37 +08:00
Yoshi Huang
6cca1d0c54 Bug 1260931 - Part 3: Propagate firstPartyDomain. r=smaug 2016-09-06 01:50:30 +08:00
Yoshi Huang
1f96f1431b Bug 1260931 - Part 2: add pref privacy.firstparty.isolate. r=smaug 2016-09-06 01:50:23 +08:00
Yoshi Huang
6c3b62e2fb Bug 1260931 - Part 1: add firstPartyDomain. r=smaug
Add an origin attribute called 'firstPartyDomain'.
This value will be extracted from the URL bar.

And the purpose of this attribute is used to isolate the data-jars.
Please see the tor documentation.
https://www.torproject.org/projects/torbrowser/design/#identifier-linkability

The idea is like a superset of 'reject third party cookies', but not
only apply for cookies, it also applies to all data-jars like localStorage,
indexedDB and so on.

So basically an iframe will have its own data-jar, and this data-jar is
isolated by the URL from URL bar, for instance, an iframe
https://facebook.com inside https://cnn.com won't share data-jar with
the iframe (https://facebook.com) in https://bbc.com
2016-09-06 01:50:15 +08:00
Olli Pettay
9530ccd561 Bug 1298504, ensure existing listeners are correctly counted before disabling some device APIs, r=mccr8 2016-09-05 19:34:30 +03:00
Olli Pettay
8744d0ccf8 Bug 1298661, let meta-stable state runnables run during sync loops, r=baku 2016-09-05 18:54:04 +03:00
Dão Gottwald
6fdeb3376c Bug 1298659 - Remove hardcoded colors from searchbar.css and make it more consistent across platforms. r=florian 2016-09-05 17:31:37 +02:00
Luke Wagner
6da730f66d Bug 1299359 - Odin: put asm.js Atomics/SAB support behind wasmTestMode (r=lth)
MozReview-Commit-ID: 6nKQ3giYnic
2016-09-05 09:50:43 -05:00
Johann Hofmann
2b02d71f08 Bug 1286118 followup - Remove accidentally added if clause. r=me 2016-09-05 15:51:37 +02:00
Cykesiopka
f821d7aff6 Bug 1299743 - Remove unused XPCShellDirProvider class from XPCShellEnvironment.cpp. r=mrbkap
MozReview-Commit-ID: 5QULAP0NtSo

--HG--
extra : rebase_source : 4c66d52d5267aef326fa70e5299b0339428c3ab2
2016-09-03 22:46:13 +08:00
Phil Booth
6b63924827 Bug 1300297 - Ensure FxA device id is cleared on password change. r=markh
--HG--
extra : rebase_source : 8dd0d1110340525407accf0a6173e09275c90a67
2016-09-03 06:17:00 +02:00
Jonathan Kew
e45cb1544d Bug 1296050 - When checking whether bidi resolution is needed, ignore Unicode directional-control characters that do not actually introduce right-to-left-ness. r=xidorn 2016-09-05 14:15:32 +01:00
Jonathan Kew
882bb6e2b5 Bug 1296391 - Check length of name string before attempting to build a new name table. r=jrmuizel 2016-09-05 14:15:09 +01:00
Andrzej Hunt
9e859c42fc Bug 1297117 - Add documentation to stripAboutReaderUrl r=sebastian
MozReview-Commit-ID: Ibzhnk7LLmh

--HG--
extra : histedit_source : f8460143a4c00238defb68774e96ac99150779aa
2016-09-02 12:35:47 -07:00
Andrzej Hunt
2f3ba414fe Bug 1297117 - Make getUrlFromAboutReader private to avoid erronous usage r=sebastian
getUrlFromAboutReader can return null. There have been crashes caused by not checking this
result in the past. stripAboutReaderFromUrl is a safer version which returns the input URL
if necessary, and is probably what should be used in new code, hence we can make this method
private.

MozReview-Commit-ID: Lg7QWrpSE8F

--HG--
extra : histedit_source : 0964ebab8e9d66e65fc9c3a296031f720219f529
2016-09-02 12:35:08 -07:00
Andrzej Hunt
5b8fbc92f9 Bug 1297117 - Replace unnecessary usage of getUrlFromAboutReader with stripAboutReaderUrl r=sebastian
In some of these cases we're duplicating the work of stripAboutReaderUrl. In the other cases
there is no effective difference, however switching to stripAboutReaderUrl allows us
to make getUrlFromAboutReader private, which should help prevent future errors.

MozReview-Commit-ID: BLeQkve2XIs

--HG--
extra : histedit_source : 1818137ef447b70ca49a783a85cb1a198415df77
2016-09-05 12:56:49 -07:00
Julian Descottes
9b37310565 Bug 1299580 - Remove unused string from storage.properties file;r=flod
MozReview-Commit-ID: K1xTCYUKem6

--HG--
extra : rebase_source : 33abf20c2c68d46c565bd4833dc1f4153c8136c0
2016-09-05 12:17:43 +02:00
enrico
bf88866633 Bug 1299497 - Build fails with "unsupported reloc 43" errors. r=gerard-majax
MozReview-Commit-ID: 5pnYVpR8qNJ

--HG--
extra : rebase_source : ce3e6ea0494960983e403ddbdeaacca275d1e815
2016-09-01 23:36:44 +02:00
JW Wang
acc161f5fd Bug 1297590. Part 10 - remove some mSentFirstFrameLoadedEvent checks for it is surely true when mState is DECODING. r=kaku
MozReview-Commit-ID: 5wwCc33KTHF

--HG--
extra : rebase_source : 0263c6a732729a4c0ae952f51ee3c5d0a1aa616b
2016-09-01 16:34:24 +08:00
JW Wang
cd7ea5d9ef Bug 1297590. Part 9 - fix MaybeFinishDecodeFirstFrame(). r=kaku
1. The return value is not used.
2. It should be called only when mSentFirstFrameLoadedEvent is false.
3. Transition to SEEK if there is any pending seek or DECODER_STATE_DECODING otherwise.

MozReview-Commit-ID: LIO0MPGzhsX

--HG--
extra : rebase_source : 591339cf0c239be618ecf25e384baab9c0bb35be
2016-09-01 13:01:48 +08:00
JW Wang
a4f936a75c Bug 1297590. Part 8 - add an entry action for DECODER_STATE_DECODING_FIRSTFRAME. r=kaku
We move the handling of pending seek from the entry action of DECODING to that of DECODING_FIRSTFRAME.

MozReview-Commit-ID: qMnJ0ON2cK

--HG--
extra : rebase_source : d35985d8d66b201a842aea0eeb0650e8ade5cc5b
2016-09-01 12:54:43 +08:00
JW Wang
beee28368c Bug 1297590. Part 7 - remove the call to MaybeFinishDecodeFirstFrame() from OnNotDecoded(). r=kaku
It is impossible to finish decoding first frames while waiting for data.

MozReview-Commit-ID: 8eR8Rf9TuD8

--HG--
extra : rebase_source : f8d14b294f0518f48f72828b3e9ed5f2b18a3479
2016-09-01 12:02:49 +08:00
JW Wang
fd788dec0e Bug 1297590. Part 6 - Move MaybeFinishDecodeFirstFrame() from case DECODER_STATE_DECODING to case DECODER_STATE_DECODING_FIRSTFRAME. r=kaku
MozReview-Commit-ID: aylNzLhwaT

--HG--
extra : rebase_source : f820000efedd53f13222e1b43073b9aa2d4fec2a
2016-09-01 12:00:44 +08:00