Valentin Gosu
c746fb04ed
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
2018-03-19 20:22:32 +01:00
Andreea Pavel
d73ab14f2d
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
17b4bb266e
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
2018-03-08 13:35:10 +01:00
Kris Maglione
edc98f08f3
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
2017-10-29 16:02:40 -07:00
Valentin Gosu
30ecd962e7
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
2017-11-20 17:11:30 +01:00
Boris Zbarsky
b07b22304b
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
911d2a4dd9
Bug 784739 - Switch from NULL to nullptr in modules/; r=ehsan
2013-10-23 16:36:26 -04:00
Trevor Saunders
53e4e1f193
bug 798595 - remove useless prmem.h includes r=ehsan
2012-10-04 02:14:06 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Nicholas Nethercote
429a8a8674
Bug 715770 (part 2) - Don't use nsRecyclingAllocator in libjar. r=taras.
2012-01-11 15:20:56 -08:00
Benjamin Smedberg
68eb98db57
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
f845fed30a
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
1b55360c07
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
5bb17303c6
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
7d5159251a
Make nsJARURI work usable in fastload. b=252703 r=darin sr=bzbarsky
2004-12-02 07:00:25 +00:00
dbaron@dbaron.org
4befe732c5
Back out 252703 due to Txul / Ts regression.
2004-12-02 01:26:20 +00:00
dbaron@dbaron.org
625f0cd8c4
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
1e28c4cf59
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
4ba0518141
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-18 22:01:16 +00:00
bryner@brianryner.com
7a7e564213
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
c0b42cfec2
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
00c39a1c0b
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
a2578325bc
Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson
2002-01-30 21:14:20 +00:00
dp@netscape.com
c336cf23e8
bug 118061 Enabling nsRecyclingAllocator r=dveditz sr=sfraser
2002-01-24 07:00:07 +00:00
dp@netscape.com
e5df09ca85
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
30a09f1d88
Oops.
2001-09-20 00:02:59 +00:00
scc@mozilla.org
3c364a083d
bug #98089 : ripped new license
2001-09-19 20:09:47 +00:00
kandrot@netscape.com
70cc087e01
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
b36f662691
72495 redux: last references to xp_regexp.h, r=bryner, sr=blizzard
2001-03-24 18:54:13 +00:00
rayw@netscape.com
c6334366cb
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
1aa1ebcd48
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
29495c4b3d
Fix build butsage for dougt.
2000-01-04 01:53:13 +00:00
dougt@netscape.com
f93684c4dc
Adding newline to end of file to fix build bustage on unix.
2000-01-03 23:56:38 +00:00
dougt@netscape.com
46f1508f7e
Converting to use nsIModule macro. r=dp.
2000-01-03 23:20:25 +00:00
warren@netscape.com
6a87cf96f8
Libjar cleanup. Added Close method. Bug#18273. r=mstoltz,gayatrib,dveditz
1999-11-12 06:13:13 +00:00
dmose@mozilla.org
20621227af
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
d9fee9031e
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
dd644e0e08
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
a060179a5a
fix warnings for dbragg
1999-09-13 06:26:18 +00:00
brendan@mozilla.org
fbf83b0589
Conform mindlessly to other 'Register foo' component printfs.
1999-08-27 10:18:44 +00:00
sspitzer@netscape.com
20fcfd4816
fix warning
1999-07-16 06:59:30 +00:00
sgehani@netscape.com
692f37e429
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
1d8327c69e
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
ac604f4382
XPCOM interface files for libjar
1999-06-01 21:08:32 +00:00