Commit Graph

12076 Commits

Author SHA1 Message Date
Nathan Froyd
01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd
583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Daniel Stenberg
19855ea7f7 Bug 1214200: avoid double NS_RELEASE(), r=mcmanus 2015-10-17 08:26:38 -04:00
Shih-Chiang Chien
e50f7091ee Bug 1199592 - support TV device type in UA string. r=fabrice.
--HG--
extra : rebase_source : 7999c1a81fd7e297b88d3b780c252b70bf265d23
2015-10-05 19:58:00 +02:00
Wes Kocher
0f015ebe75 Merge b2ginbound to central, a=merge 2015-10-15 11:34:27 -07:00
Carsten "Tomcat" Book
d89def21d7 Merge m-c to b2g-inbound 2015-10-15 12:04:19 +02:00
Yoshi Huang
fb57af4ae6 Bug 1191653 - Listen to clear-origin-data in nsPermissionManager. r=bholley 2015-10-13 10:27:42 +08:00
Jonas Sicking
54c75e38eb Bug 1211000: Move CORS preflight logic from nsCORSListenerProxy to nsCORSPreflightListener. r=ehsan 2015-10-15 02:07:25 -07:00
Patrick McManus
03d026b624 Bug 1213979 - h2 packet formats. r=hurley 2015-10-12 23:56:12 -04:00
Carsten "Tomcat" Book
cfcbb3d261 Backed out changeset 32357df66881 (bug 1168635) for Android s4 test failures 2015-10-14 16:28:59 +02:00
Masatoshi Kimura
d9f0dc8b43 Bug 1168635 - Extend nsITLSServerSocket to customize cipher suites. r=keeler 2015-10-14 21:12:33 +09:00
Carsten "Tomcat" Book
6ffd4fc09b Merge m-c to mozilla-inbound 2015-10-14 12:47:31 +02:00
Carsten "Tomcat" Book
0ecf764867 merge mozilla-inbound to mozilla-central a=merge 2015-10-14 12:46:09 +02:00
Henry
d0922cb7a4 Bug 1210235 - Skip package verification if pref out or no signature. The package would be treated unsigned. r=valentin
--HG--
extra : histedit_source : e3820fb54cfbab00bf8db377aec2bc8afcb0fb0e
2015-10-12 15:38:41 +08:00
M Hamdy
67d215f8de Bug 606655 - delete cookies UI option AskMeEveryTime and its related comments and tests. r=mak
--HG--
extra : rebase_source : 242a074db54395e4b285110286e7692f26b57daa
2015-10-08 09:13:00 +02:00
Ryan VanderMeulen
89f4a647c5 Backout eab6f9c125cc (bug 1211694) to see if it fixes the crashes reported in bug 1213979. a=me
--HG--
extra : amend_source : f08a20212360b2729c3a313c818981d806c12321
2015-10-12 18:04:55 -04:00
Carsten "Tomcat" Book
51460284dc Merge m-c to mozilla-inbound
--HG--
extra : rebase_source : ff3eb8adeb22d7c5166ce9fbb4ac693e0585b254
2015-10-13 12:27:01 +02:00
Valentin Gosu
370bdbf483 Bug 1211871 - Backout bug 1142083. r=mcmanus 2015-10-12 23:49:23 +02:00
Masatoshi Kimura
82aeed3ddc Bug 1168635 - Extend nsITLSServerSocket to customize cipher suites. r=keeler 2015-10-15 05:48:26 +09:00
Michael Layzell
d4beae866a Backout of bug 1207233 due to web-compat concerns 2015-10-14 16:06:35 -04:00
Hiroyuki Ikezoe
aaf4ad90ac Bug 1167627 - Part 7: Use mozinfo in netwerk/. 2015-08-25 14:58:00 +02:00
Dragana Damjanovic
daeb9f7f13 Bug 1211694 - dataLength has been added twice. r=nwgh 2015-10-11 18:13:10 +02:00
Dragana Damjanovic dd.mozilla@gmail.com
48d945f4e6 Bug 1197679 - If nsUnknownDecoder is involved in e10s DivertToParent can break. r=jduell 2015-10-11 18:13:09 +02:00
Honza Bambas
4bd41740d0 Bug 1165269 - Use OriginAttributes in nsILoadContextInfo, r=michal+allstars 2015-10-11 18:13:09 +02:00
Patrick McManus
7b4a70a169 bug 718797 - allow heuristic cache of query string resources r=hurley 2015-10-09 09:28:37 -04:00
Ehsan Akhgari
d5f5467827 Bug 1213150 follow-up: fix build bustage 2015-10-09 11:27:05 -04:00
Daniel Stenberg
7b64106297 Bug 1121800 - when all proxies fail try DIRECT, r=mcmanus
To mimic how other browsers do it these days and better deal with wrong
propxy settings lingering.
2015-10-09 01:59:00 +02:00
Ehsan Akhgari
a9097bf0fb Bug 1213150 - Part 3: Remove nsIInterceptedChannel.isNavigation; r=jdm 2015-10-09 10:52:56 -04:00
Ehsan Akhgari
f303ed36f2 Bug 1213150 - Part 2: Rework ShouldPrepareForIntercept() in terms of subresource requests; r=jdm 2015-10-09 10:52:55 -04:00
Sajal Kayan
315c526a1e Bug 1211168 - Fix resource timing domainLookupStart by setting the timestamp only once. r=mcmanus 2015-10-04 18:43:15 +07:00
Patrick McManus
ad9258704b bug 1208114 - fix h2 connect tunnels r=hurley 2015-10-07 12:55:07 -04:00
Wes Kocher
163f262ba5 Backed out changeset 3cd86929d883 (bug 1208114) for test_video_playback.py crashes 2015-10-08 13:12:20 -07:00
Patrick McManus
9beb606f8c bug 1211706 - fix network io loop spin when clearing h2 flow control buffer r=hurley 2015-10-07 17:45:46 -04:00
Patrick McManus
bfd706e3e8 bug 1208114 - fix h2 connect tunnels r=hurley 2015-10-07 12:55:07 -04:00
Daniel Stenberg
2a6016b36e Bug 1201037 - only send "HTTP pings" on seemingly idle connections, r=mcmanus 2015-10-08 03:59:00 +02:00
Daniel Stenberg
03eae49d46 Bug 1201037 - coalesce network-events on Windows, r=mcmanus 2015-10-08 03:52:00 +02:00
Daniel Stenberg
52c5bad8d9 Bug 1201037 - (Linux) squash network-change events during 1000ms, r=mcmanus 2015-10-08 03:50:00 +02:00
hchang
a63dff70df Bug 1212223 - Update |bufLen| as well when we probed the multipart preamble. r=valentin. 2015-10-07 17:06:00 +02:00
Henry
4f83bb6af3 Bug 1210573 - Add attribute 'packageIdentifier' to nsIPackagedAppUtils. r=valentin. 2015-10-07 20:02:00 +02:00
Valentin Gosu
a83aaacc09 Bug 1199430 - Reject hostnames containing @. r=mcmanus
--HG--
extra : rebase_source : 12ab477ffb559055386f0705e0de37cb4a353410
2015-09-03 21:15:30 +02:00
Maks Naumov
d0d6064a8e Bug 1212056 - Add virtual dtor to WindowsWifiScannerInterface. r=jdm 2015-10-06 22:35:09 +03:00
Ehsan Akhgari
a2befb3bb7 Bug 1210077 - Null check gNeckoChild in HttpChannelChild::ResetInterception(); r=mcmanus 2015-10-07 23:25:25 -04:00
Michal Novotny
05dff5829e Bug 1211001 - constant ASSERTION: nsITimer->SetDelay() called when the one-shot timer is not set up, r=mcmanus 2015-10-08 00:32:18 +02:00
Ben Kelly
53f9c75469 Bug 1210413 P1 Propagate new channel load flags from child to parent on redirect. r=jduell a=dveditz 2015-10-07 14:33:31 -07:00
Patrick McManus
0793f32151 bug 1211916 - rename brotli http coding to br r=bagder 2015-10-06 11:03:50 -04:00
Patrick McManus
295fd4fa05 bug 1211580 - cancel brotli failures from channel instead of converter r=bagder 2015-10-05 14:11:26 -04:00
Carsten "Tomcat" Book
08997000eb 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
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Ehsan Akhgari
158253749d Bug 1210302 - Part 3: Add a NS_ParseRequestContentType API; r=mcmanus,sicking 2015-10-06 20:26:46 -04:00
Ehsan Akhgari
c3300a106e Bug 1210302 - Part 2: Rename NS_ParseContentType to NS_ParseResponseContentType; r=mcmanus,sicking 2015-10-06 20:24:51 -04:00