Valentin Gosu
af5eeff2e3
Bug 1442239 - Make URI deserialization (nsISerializable.read) happen via nsIURIMutator only r=mayhemer
...
* Deserialization now only happens via a mutator
* The CID for URI implementations actually returns the nsIURIMutator for each class
* The QueryInterface of mutators implementing nsISerializable will now act as a finalizer if passed the IID of an interface implemented by the URI it holds
MozReview-Commit-ID: H5MUJOEkpia
--HG--
extra : rebase_source : 01c8d16f7d31977eda6ca061e7889cedbf6940c2
2018-03-19 20:22:32 +01:00
Andreea Pavel
e5950c0d39
Backed out 2 changesets (bug 1442239) for xpcshell failures at widget/tests/unit/test_taskbar_jumplistitems.js on a CLOSED TREE
...
Backed out changeset 513cd669aca1 (bug 1442239)
Backed out changeset aef4c73f736f (bug 1442239)
2018-03-19 21:19:26 +02:00
Valentin Gosu
f0c7a1ae13
Bug 1442239 - Make URI deserialization (nsISerializable.read) happen via nsIURIMutator only r=mayhemer
...
* Deserialization now only happens via a mutator
* The CID for URI implementations actually returns the nsIURIMutator for each class
* The QueryInterface of mutators implementing nsISerializable will now act as a finalizer if passed the IID of an interface implemented by the URI it holds
MozReview-Commit-ID: H5MUJOEkpia
--HG--
extra : rebase_source : 8ebb459445cab23288a6c4c86e4e00c6ee611e34
2018-03-08 13:35:10 +01:00
Kris Maglione
a75561bd62
Bug 1412726: Clean up XPCOM singleton constructor refcount handling. r=froydnj
...
This is a follow-up to bug 1409249. There are a lot of places where our
factory singleton constructors either don't correctly handle their returned
references being released by the component manager, or do handle it, but in
ways that are not obvious.
This patch handles a few places where we can sometimes wind up with dangling
singleton pointers, adds some explanatory comments and sanity check
assertions, and replaces some uses of manual refcounting with StaticRefPtr and
ClearOnShutdown.
There are still some places where we may wind up with odd behavior if the
first QI for a getService call fails. In those cases, we wind up destroying
the first instance of a service that we create, and re-creating a new one
later.
MozReview-Commit-ID: ANYndvd7aZx
--HG--
extra : rebase_source : acfb0611a028fef6b9387eb5d1d9e285782fbc7c
2017-10-29 16:02:40 -07:00
Valentin Gosu
d2d8524673
Bug 1415205 - Add nsIURIMutator impls for all objects implementing nsIURI r=bagder
...
This also changes URIUtils.cpp:DeserializeURI() to use the mutator to instantiate new URIs, instead of using their default constructor.
MozReview-Commit-ID: JQOvIquuQAP
--HG--
extra : rebase_source : e146624c5ae423f7f69a738aaaafaa55dd0940d9
2017-11-20 17:11:30 +01:00
Boris Zbarsky
ce952bd155
Bug 951511. If jar module shutdown happens before all the jar channels are destroyed, we still shouldn't crash. r=bsmedberg
2013-12-18 11:20:45 -05:00
Birunthan Mohanathas
9722682a5a
Bug 784739 - Switch from NULL to nullptr in modules/; r=ehsan
...
--HG--
extra : rebase_source : d82c3e2e18986d3b9ffc454ff84caf3634a6bbe7
2013-10-23 16:36:26 -04:00
Trevor Saunders
000b6e89a1
bug 798595 - remove useless prmem.h includes r=ehsan
2012-10-04 02:14:06 -04:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Nicholas Nethercote
5c2594c72d
Bug 715770 (part 2) - Don't use nsRecyclingAllocator in libjar. r=taras.
...
--HG--
extra : rebase_source : 92f39e2d1d62d500e0cdf728b3c95070143015e1
2012-01-11 15:20:56 -08:00
Benjamin Smedberg
a7e67d32ad
Bug 568691 part B - mechanical changes to in-tree binary modules needed to get them building and registering correctly. After this patch, xpcshell appears to work.
2010-06-10 14:11:40 -04:00
Benjamin Smedberg
8ce4ecd19a
Bug 570488 part B - fix and test loading XPT files from JARs, needed for omnijar, r=mwu
2010-06-10 12:51:43 -04:00
Arpad Borsos
c72ef7d248
Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan
2008-10-10 17:04:34 +02:00
timeless%mozdev.org
3be5fc7179
Bug 210305 crash [@ nsJARChannel::nsJARChannel] NS_ADDREF(gJarHandler) because gJarHandler is 0
...
r=darin sr=darin
2005-09-16 07:09:35 +00:00
dbaron%dbaron.org
d0cf51c72d
Make nsJARURI work usable in fastload. b=252703 r=darin sr=bzbarsky
2004-12-02 07:00:25 +00:00
dbaron%dbaron.org
9643fc6c04
Back out 252703 due to Txul / Ts regression.
2004-12-02 01:26:20 +00:00
dbaron%dbaron.org
21dccaeace
Fix theme switching bugs related to insufficient change handling when entry points to themes are stylesheet links (processing instructions or XBL stylesheet elements) or xul:image src attributes by giving the chrome: protocol its own URL implementation that remembers the URL to which the chrome: URL was resolved and uses that resolved URL as part of equality testing. Fix various fastload issues arising from this change. b=252703 r=darin sr=bzbarsky
2004-12-01 22:39:17 +00:00
cbiesinger%web.de
1d61416f70
Bug 248044 move jar protocol handler into libjar. these are the changes to the
...
existing files
r=bsmedberg sr=darin
2004-09-14 18:40:26 +00:00
gerv%gerv.net
8b8dde7d95
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-18 22:01:16 +00:00
bryner%brianryner.com
5cd0bcdb7a
Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
2003-09-07 22:56:05 +00:00
alecf%netscape.com
0527238c0a
fix for bug 189528 - do on-demand decompression of items in a .jar file
...
instead of allocating all the data into one big buffer, keep a small input buffer around and decompress directly into a client's read buffer..
r=dougt, sr=darin
2003-03-14 18:59:51 +00:00
alecf%netscape.com
57813780a2
fix for bug 107289 sr=jband r=dougt a=asa
...
remove libjar dependency from xpcom
step 3: make libjar implement the new interface
2002-04-04 22:28:17 +00:00
sfraser%netscape.com
d133d4956f
Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson
2002-01-30 21:14:20 +00:00
dp%netscape.com
63fff83ae2
bug 118061 Enabling nsRecyclingAllocator r=dveditz sr=sfraser
2002-01-24 07:00:07 +00:00
dp%netscape.com
0b130323ce
bug 113393 zlib allocator implementation. Eliminates about 1200+
...
allocations done by zlib by recycling previously allocated
memory. r=darin sr=dveditz
2001-12-15 06:31:49 +00:00
gerv%gerv.net
1856815ff1
Oops.
2001-09-20 00:02:59 +00:00
scc%mozilla.org
102170b2a0
bug #98089 : ripped new license
2001-09-19 20:09:47 +00:00
kandrot%netscape.com
afdac97c93
Check in for Ron Guilmette. r=shaver, sr=waterson. For intl r=nhotta. Changes for NS_IMPL_NSGETMODULE. bug #46775 .
2001-05-05 05:33:37 +00:00
shaver%mozilla.org
99a8b21cb9
72495 redux: last references to xp_regexp.h, r=bryner, sr=blizzard
2001-03-24 18:54:13 +00:00
rayw%netscape.com
0257791053
Bug 37275, Changing value of all progids, and changing everywhere a progid
...
is mentioned to mention a contractid, including in identifiers.
r=warren
2000-09-13 23:57:52 +00:00
warren%netscape.com
2979b9b4c6
Added nsIZipReaderCache. Removed nsIZipReader::ParseManifest. Got jar: protocol going for downloaded jars and input streams. Added assertions that Cancel is called with a failure code.
2000-04-12 07:58:24 +00:00
sgehani%netscape.com
30b26e740b
Fix build butsage for dougt.
2000-01-04 01:53:13 +00:00
dougt%netscape.com
2e7a8b1044
Adding newline to end of file to fix build bustage on unix.
2000-01-03 23:56:38 +00:00
dougt%netscape.com
57f3febfe4
Converting to use nsIModule macro. r=dp.
2000-01-03 23:20:25 +00:00
warren%netscape.com
4a274d01f1
Libjar cleanup. Added Close method. Bug#18273. r=mstoltz,gayatrib,dveditz
1999-11-12 06:13:13 +00:00
dmose%mozilla.org
142ac52eaf
updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
1999-11-06 03:43:54 +00:00
tbogard%aol.net
10ded258a5
Changed NS_ENSURE_NOT to NS_ENSURE_FALSE to reflect API change. r=hyatt
1999-11-01 21:43:56 +00:00
neeti%netscape.com
cf444aab7c
Converted to use nsIModule to prepare for memory leaks fixing. Bug# 14034. r=dveditz
1999-10-07 03:39:36 +00:00
sspitzer%netscape.com
bf5525797b
fix warnings for dbragg
1999-09-13 06:26:18 +00:00
brendan%mozilla.org
89220e3a2e
Conform mindlessly to other 'Register foo' component printfs.
1999-08-27 10:18:44 +00:00
sspitzer%netscape.com
018a336922
fix warning
1999-07-16 06:59:30 +00:00
sgehani%netscape.com
dbf800ebea
Modification to the libjar XPCOM interface in order to use it with XPInstall; facilitating ressurection of XPInstall on Unix.
1999-06-23 06:16:28 +00:00
dbragg%netscape.com
fe34d14c41
Change the implementation of AddRef and Release to use the macros NS_IMPL_ADDREF() and NS_IMPL_RELEASE() in nsJARFactory.cpp
1999-06-01 21:37:09 +00:00
dbragg%netscape.com
472ec389c8
XPCOM interface files for libjar
1999-06-01 21:08:32 +00:00