Nathan Froyd
9c5965b035
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Yoshi Huang
4a3c1419c4
Bug 1191653 - Listen to clear-origin-data in nsPermissionManager. r=bholley
2015-10-13 10:27:42 +08:00
Wes Kocher
665aa92b26
Merge b2ginbound to central, a=merge
2015-10-07 11:04:26 -07:00
Carsten "Tomcat" Book
9f1c0bf17d
Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
...
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
9eaa0d1abc
Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
...
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
53a85861c1
Bug 1202902 - Scripted fix the world.
2015-10-06 14:00:31 -07:00
Yoshi Huang
65b7e323ba
Bug 1211636 - use ToInteger64 in PopulateFromSuffix. r=bholley
...
From 76c9c3f887d6bce8b15abd37d5921887a187e18d Mon Sep 17 00:00:00 2001
---
caps/BasePrincipal.cpp | 16 ++++++-------
caps/moz.build | 3 +++
caps/tests/gtest/TestOriginAttributes.cpp | 37 +++++++++++++++++++++++++++++++
caps/tests/gtest/moz.build | 13 +++++++++++
4 files changed, 61 insertions(+), 8 deletions(-)
create mode 100644 caps/tests/gtest/TestOriginAttributes.cpp
create mode 100644 caps/tests/gtest/moz.build
2015-10-06 15:36:10 +08:00
Nick Fitzgerald
1a8294fc83
Bug 1209263 - Allow embedders to tell SpiderMonkey how to structured clone principals; r=bz
2015-10-02 16:44:00 +02:00
Bobby Holley
7a559b1dbc
Bug 1208756 - Tests. r=billm
2015-10-02 15:02:09 -07:00
Bobby Holley
9798288588
Bug 1208756 - Introduce URI_FETCHABLE_BY_ANYONE and use it for moz-extension. r=bz
...
This matches the behavior described in
https://developer.chrome.com/extensions/manifest/web_accessible_resources
2015-10-02 15:02:07 -07:00
Bobby Holley
94c3812838
Bug 1208756 - Hoist shared CheckMayLoad logic into BasePrincipal. r=bz
...
This is a pure refactoring.
2015-10-02 14:59:45 -07:00
Yoshi Huang
947bb92810
Bug 1167100 - User originAttribute in ContentPrincipalInfo. r=bholley
2015-09-23 18:19:06 +08:00
Bobby Holley
e819c34953
Bug 1209843 - Stop checking for UNKNOWN_APP_ID in all places except those where AppId() is explicitly queried. r=sicking
2015-09-30 16:29:36 -07:00
Stephanie Ouillon
08bc7dd59d
Bug 1178533 - Add nsIInstallPackagedWebapp for registering permissions when navigating to signed packages r=bholley,fabrice,valentin
2015-08-26 13:12:13 +02:00
Wes Kocher
08dbed89cf
Backed out changeset d0e88c95f3c5 (bug 1167100) for crashes a=backout
2015-09-29 10:25:20 -07:00
Yoshi Huang
d7221a0334
Bug 1167100 - User nsIPrincipal.originAttribute in ContentPrincipalInfo. r=bholley
2015-09-23 18:19:06 +08:00
Yoshi Huang
07934840bb
Bug 1165466 - Fix up docshell and loadcontext inheriting code in nsIScriptSecurityManager. r=bholley
2015-09-23 16:10:21 +08:00
Henry Chang
a962b48335
Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley
2015-09-18 15:11:58 +08:00
Bobby Holley
142f948e0e
Bug 1205456 - Check for UNKNOWN_APP_ID when serializing principals. r=sicking
2015-09-18 16:20:06 -07:00
Andrew McCreight
9df9a5eded
Bug 1204610 - Use a smart pointer in nsNullPrincipalURI. r=mrbkap
2015-09-14 12:43:00 +02:00
Carsten "Tomcat" Book
be8ea07225
Backed out 2 changesets (bug 1169633, bug 1163254) for linux Mn-e10s test bustage on a CLOSED TREE
...
Backed out changeset 47ccf6689101 (bug 1169633)
Backed out changeset 503eab197a2d (bug 1163254)
2015-09-17 16:01:25 +02:00
hchang
fb2b8869b7
Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley
2015-09-16 19:42:00 +02:00
Nicholas Nethercote
10d95cca57
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Yoshi Huang
fd98ffd5d7
Bug 1165272 - Part 2: replace getNoAppCodebasePrincipal. r=bholley
2015-08-18 15:01:42 +08:00
Yoshi Huang
98f6ea7f6c
Bug 1165272 - Part 1: remove getAppCodebasePrincipal. r=bholley
2015-08-17 17:03:19 +08:00
Bobby Holley
28a3efa072
Backed out 3 changesets (bug 1165272) for b2g sanity blocker.
2015-08-25 11:16:21 -07:00
Ryan VanderMeulen
7fe7777ee2
Merge fx-team to m-c. a=merge
2015-08-24 20:57:36 -04:00
Dave Townsend
6e0351b0dd
Bug 1042699: Block cross-origin add-on install requests. r=dveditz
2015-08-18 17:21:05 -07:00
Yoshi Huang
053573a7c0
Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley
2015-08-24 01:18:00 -04:00
Yoshi Huang
25acbe867f
Bug 1165272 - Part 1: Remove getAppCodebasePrincipal. r=bholley
2015-08-24 01:31:00 -04:00
Bobby Holley
f01a126f2b
Bug 1196371 - Add a runtime assertion against illegal string characters in OriginAttributes suffix creation. r=janv,r=mystor
2015-08-19 21:14:34 -07:00
Wes Kocher
33bb841610
Backed out changeset f00b7bf7b9f8 (bug 1196371) for build bustage CLOSED TREE
2015-08-19 15:49:30 -07:00
Bobby Holley
c82880352b
Bug 1196371 - Add a runtime assertion against illegal string characters in OriginAttributes suffix creation. r=janv,r=mystor
2015-08-19 14:51:58 -07:00
Michael Layzell
9ff696fed2
Bug 1195415 - Add asciiHostPort field to nsIURI, and use it in the implementation of nsPrincipal::GetOriginForURI, r=bholley
2015-08-18 14:52:24 -04:00
Michael Layzell
f21b4f0583
Bug 1192666 - Emit '[]' around origin strings for ipv6 origins, r=ehsan
2015-08-11 15:09:52 -04:00
Bobby Holley
e020cf6d7d
Bug 1184387 - Bail out of file:// loads for all non-chrome:// URIs. r=Gijs
2015-08-06 16:37:00 -07:00
Ryan VanderMeulen
d32b925d78
Backed out changesets f4fa8c49ebc6 and 78e2ba8842d4 (bug 1184387) for browser_parsable_css.js failures.
...
CLOSED TREE
2015-08-05 14:39:28 -04:00
Bobby Holley
b442330ce0
Bug 1184387 - Bail out of file:// loads for all non-chrome:// URIs. r=Gijs
2015-08-05 10:43:22 -07:00
Steven Englehardt
010fe5e405
Bug 1179557 - Add getters for userContextId. r=bholley, r=tanvi
2015-07-30 14:15:00 -04:00
Steven Englehardt
d4c62d8f08
Bug 1179557 - Add userContextId to originAttributes with tests. r=bholley, r=tanvi
2015-07-28 17:32:00 -04:00
Bobby Holley
7492f57830
Bug 1186732 - Implement an about:blank page inside of moz-extension. r=billm
2015-07-28 17:18:05 -07:00
Bobby Holley
ea90ac6024
Bug 1186152 - Implement nsIProtocolHandlerWithDynamicFlags and use it for moz-extension. r=bz
2015-07-28 12:26:51 -07:00
Bobby Holley
5121381d0d
Bug 1161831 - Tests. r=billm
2015-07-21 12:57:24 -07:00
Bobby Holley
410e11e4da
Bug 1161831 - Associate extension URIs with the appropriate addon ID. r=billm,sr=bz
2015-07-21 12:57:23 -07:00
Bobby Holley
511cc8c18f
Bug 1161831 - Implement moz-extension protocol. r=bz,r=billm,sr=mcmanus
...
The heavy lifting all happened in the previous patch, so this is easy now.
2015-07-21 12:57:22 -07:00
Christoph Kerschbaumer
733184dc1c
Bug 1143922 - Add AsyncOpen2 to nsIChannel and perform security checks when opening a channel - scriptSecurityManager changes (r=sicking,bholley)
2015-07-19 19:12:26 -07:00
Michael Layzell
bee89330ba
Bug 1172080 - Part 2: Use ^ instead of ! to delimit originAttributes from the URI in nsIPrincipal.origin, r=bholley
2015-07-16 14:50:07 -04:00
Michael Layzell
5cb6a75e58
Bug 1172080 - Part 1: Throw when requesting origin for poorly behaved URIs, r=bholley
2015-07-16 14:50:05 -04:00
Bobby Holley
0668b61aa7
Bug 1182610 - Check for UNKNOWN_APP_ID in nsIPrincipal::GetOrigin. r=gabor
2015-07-16 11:23:49 -07:00
Andrew McCreight
f1c3cf15c4
Bug 1182966 - Part 3: Add some final annotations to DomainSet. r=mrbkap
2015-07-14 07:59:00 -04:00