Commit Graph

46 Commits

Author SHA1 Message Date
Bobby Holley
2d5ec55945 Bug 435296 - Decode-On-Draw. r=joe,roc,bz,dolske,peterw sr=vlad 2009-09-12 16:44:18 -06:00
Bobby Holley
f0f0fc4ad0 Bug 509929 - Reference cycle between nsProgressNotificationProxy and nsHttpChannel on channel redirect. r=biesi 2009-08-13 13:20:41 +02:00
Bobby Holley
9328bfd38b Bug 504822 - Remove XBM support from Mozilla. r=joe sr=vladimir 2009-07-29 10:13:08 -04:00
Christian Biesinger
ce834cd636 Fix memory leaks from changeset dcda49ff1a26 - need to make sure that
the destructor gets called for the hashtable entries.

Also fixes a nit (AddRef() -> NS_ADDREF_THIS())

r+sr=bz
2009-07-28 19:46:04 +02:00
Christian Biesinger
d8e3f09412 Bug 487638 - status bar blames wrong resource when downloading slow responding resource
- Makes nsDocLoader store the last-sent status message for each request in the
corresponding nsRequestInfo, and keeps a flag to indicate whether the request
is done
- When a request finishes, it looks for a random request that is not done and
has a non-empty status, and if it finds one, sends that status message to the
listeners
- To make this all work, the patch also changes imagelib so that status and
state messages sent for images are sent with the imgIRequest as the request and
not the channel. This is necessary because the channel is not part of the
loadgroup for images, only the imgIRequest is.
- Make the BrowserStatusFilter always update its pending status message if it
  is dirty, even when that matches the currently displayed status message

r+sr=bz
2009-07-28 18:13:48 +02:00
Ehsan Akhgari
7155374c25 Bug 496292 - Support changing the Accept header via a preference; r=joedrew sr=bzbarsky 2009-07-15 11:52:40 +04:30
Joe Drew
26ec677495 Bug 490949 - Take into account the load flags of the image's load group when checking whether we're bypassing the cache. r=vlad 2009-05-11 15:15:36 -04:00
Joe Drew
4c02392b9d Bug 490384 - revert debugging code in CLOSED TREE 2009-05-08 17:28:08 -04:00
Joe Drew
970a462be7 Bug 490384 - Commit some debugging code to a CLOSED TREE in the hopes that we can reproduce the oranges. 2009-05-08 15:24:55 -04:00
Joe Drew
29f13caf96 Bug 490384 - Only evict unused cache entries when under memory pressure. r=vlad a=sdwilsh for push into CLOSED TREE
Prior to thise, when we were under memory pressure, we would remove every
entry from the cache, even ones that were currently held in memory due to
their use on e.g. a web page. Now we only remove things from the cache that
will actually free up memory, further fixing bug 466586.
2009-05-07 16:55:06 -04:00
Adam Barth
1bea884aa2 Bug 465007. Harmonize content sniffing in HTML5 and Firefox. r=jdrew,sr=bzbarsky 2009-04-06 12:30:03 +12:00
Stuart Parmenter
4dd5b6bb44 removing ifdef DEBUG_pavlov code 2009-03-26 09:31:26 -07:00
Joe Drew
ea1f5e5a2d Bug 479328 and bug 481753 - Ensure imgRequest always knows when it's in the cache, and doesn't try to do cache manipulation when it isn't. Also, fix redirect handling to not simply invalidate the cache entry. r=vlad, sr=bzbarsky 2009-03-17 17:07:16 -04:00
Joe Drew
aecde3bf69 Backed out changeset 987a23d40e86 because of leaks on a11y tests on Linux 2009-03-12 00:22:50 -04:00
Joe Drew
a49559a6a7 Bug 481753 - imgRequests call imgLoader functions assuming that they're in the cache when they aren't
Teach imgRequest to keep track of when it's in the cache, and not do cache
operations when it isn't.
2009-03-11 21:31:26 -04:00
Joe Drew
f7bd752ce7 Bug 481553 - Make imgRequests not try to update their status in the image cache when they aren't stored in it. r=vlad 2009-03-04 22:56:14 -05:00
Joe Drew
508f9839eb Bug 479502 - Hold on to a reference to the entry when NotifyExpired is called. r=vlad
The expiration tracker doesn't hold on to references to imgCacheEntries, so if
we're deleting it from the cache, that'll bring its refcount to zero. We
always assume that, when we're calling a function, there exists a reference
that lasts as long as the function does. This patch just makes that true for
the NotifyExpired case.
2009-02-25 14:09:44 -05:00
Joe Drew
2774b195e4 Bug 466586 - Only expire cache elements that don't have any proxies/observers. r=stuart sr=vlad a=blocking1.9.1+
The image cache is now composed of two things: a heap of tracked items that
can be expired and evicted, and a superset of that which hashes from URI to
cache element. Cache elements start out in the second set, and are moved to
the first (and start to be tracked for expiry) once they have no observers.
2009-01-30 21:17:47 -05:00
Neil Rashbrook
2b7a424a9b Bug 475344 Need a cancellation code to indicate successful load from cache r+sr=bz 2009-02-16 11:27:22 +00:00
Joe Drew
0b154c324c Backed out changeset af9270b650e6 2009-02-13 18:24:22 -05:00
Joe Drew
7ee4e55b58 Bug 466586 - Only expire cache elements that don't have any proxies/observers. r=stuart sr=vlad a=blocking1.9.1+
The image cache is now composed of two things: a heap of tracked items that
can be expired and evicted, and a superset of that which hashes from URI to
cache element. Cache elements start out in the second set, and are moved to
the first (and start to be tracked for expiry) once they have no observers.
2009-01-30 21:17:47 -05:00
Vladimir Vukicevic
ff530b54bb Back out bug 466586 (eBay preview image occasionally disappears after briefly appearing), due to 476349 crashes 2009-02-02 21:23:09 -08:00
Joe Drew
ca2541f607 Bug 466586 - Only expire cache elements that don't have any proxies/observers. r=stuart sr=vlad a=blocking1.9.1+
The image cache is now composed of two things: a heap of tracked items that
can be expired and evicted, and a superset of that which hashes from URI to
cache element. Cache elements start out in the second set, and are moved to
the first (and start to be tracked for expiry) once they have no observers.
2009-01-30 21:17:47 -05:00
Joe Drew
962cd7d3c1 Backed out changeset 72fda0d63f66 2009-01-26 17:07:54 -05:00
Joe Drew
a3bb205467 Bug 466586 - Only expire cache elements that don't have any proxies/observers. r=stuart sr=vlad a=blocking1.9.1+
The image cache is now composed of two things: a heap of tracked items that
can be expired and evicted, and a superset of that which hashes from URI to
cache element. Cache elements start out in the second set, and are moved to
the first (and start to be tracked for expiry) once they have no observers.
2009-01-26 15:34:01 -05:00
Joe Drew
a42f4c7dae Backed out changeset 84c6254be42a; pushing into CLOSED TREE 2009-01-19 13:22:59 -05:00
Joe Drew
ec27a55772 Bug 455508 - Investigating 20% Tp regression on fast Talos machines. Up the image cache to 50 MB and turn off time-based expiry. CLOSED TREE for perf testing. 2009-01-19 12:37:11 -05:00
Joe Drew
97cfb1a65a Backed out changeset bc77b82becfc 2009-01-17 12:25:43 -05:00
Joe Drew
d4b7f712c7 Bug 455508 - Perf test. Disable the time-based expiry of cache elements to see
if it has an effect. CLOSED TREE for perf tests.
2009-01-17 11:06:28 -05:00
Dave Camp
790d678de5 Bug 442809: respect application caches in imgLoader.cpp. r=joedrew, sr=vlad 2009-01-04 21:52:22 -08:00
Joe Drew
141960a0b9 Keep track of the URI we're keyed on in imgRequests. This makes it possible to avoid leaks. b=468160 r=bzbarsky sr=vlad 2008-12-23 20:31:30 -05:00
Joe Drew
ba5f4381c0 Handle 302 redirects properly in imagelib. b=89419 r=bzbarsky sr=vlad/pavlov 2008-12-22 17:20:46 -05:00
Joe Drew
c77de5254f Backed out changeset 4b22cab7e989 2008-12-11 16:47:47 -08:00
Joe Drew
3670f5ac6c Handle 302 redirects properly in imagelib. b=89419 r=bzbarsky sr=vlad/pavlov 2008-12-11 15:28:58 -08:00
Robert Sayre
58f4455a2a Backout JOEDREW! patches for bug 89419 and bug 393936. Looks like they make mochitest leak. 2008-12-11 01:27:58 -08:00
Robert Sayre
a72651bef5 Backout JOEDREW! patches for bug 468160 and bug 414259. Looks like they make mochitest leak. 2008-12-11 00:57:49 -08:00
Joe Drew
0f5fffdcd6 Keep track of the URI we're keyed on in imgRequests. This makes it possible to avoid leaks. b=468160 r=bzbarsky sr=vlad 2008-12-10 20:58:28 -08:00
Joe Drew
004fd475bb Handle 302 redirects properly in imagelib. b=89419 r=bzbarsky sr=vlad/pavlov 2008-12-10 16:26:15 -08:00
Joe Drew
0e14c97490 Bug 455606 - Remove old cache elements when pushing elements with the same key r/sr=stuart 2008-09-30 17:47:47 -04:00
Ginn Chen
3d8a8e5ede Bug 454376 imgLoader.cpp does not compile with Sun Studio 12 on Solaris r=joedraw sr=vladimir 2008-09-11 19:34:17 +08:00
Joe Drew
e917f1c904 Bug 430061: Don't use necko's memory cache in imglib; r/sr=stuart,vlad,bz
? .fast-update
? _profile
? _tests
? obj-ff-debug
? staticlib
? README/.fast-update
? browser/app/profile/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
? build/pgo/automation.py
? build/pgo/profileserver.py
? config/buildid
? config/system_wrappers
? content/base/test/TestNativeXMLHttpRequest
? content/base/test/TestPlainTextSerializer
? embedding/components/printingui/src/mac/printpde/build
? gfx/thebes/public/.gfxContext.h.swp
? gfx/thebes/test/gfxFontSelectionTest
? gfx/thebes/test/gfxSurfaceRefCountTest
? gfx/thebes/test/gfxTextRunPerfTest
? gfx/thebes/test/gfxWordCacheTest
? intl/uconv/tests/TestUConv
? intl/uconv/tests/nsconv
? intl/uconv/tests/plattest
? intl/unicharutil/tests/NormalizationTest
? js/src/host_jskwgen
? js/src/jsautokw.h
? layout/style/test/css_properties.js
? layout/style/test/host_ListCSSProperties
? layout/tools/reftest/autoconf.js
? modules/libpr0n/src/.imgContainer.cpp.swp
? modules/libpr0n/src/.imgLoader.cpp.swp
? modules/libpr0n/src/.imgLoader.h.swp
? modules/libpr0n/src/.imgRequestProxy.cpp.swp
? modules/libpr0n/src/check-all-at-removal-time
? modules/libpr0n/src/currpatch
? modules/libpr0n/src/update-every-time
? modules/plugin/samples/default/mac/build
? netwerk/cache/src/.nsMemoryCacheDevice.cpp.swp
? netwerk/dns/src/etld_data.inc
? netwerk/test/ReadNTLM
? netwerk/test/TestCookie
? netwerk/test/TestIncrementalDownload
? netwerk/test/TestOpen
? netwerk/test/TestServ
? netwerk/test/TestStreamLoader
? netwerk/test/TestUDPSocketProvider
? nsprpub/.fast-update
? nsprpub/unallmakefiles
? parser/htmlparser/robot/test/htmlrobot
? parser/htmlparser/tests/grabpage/grabpage
? parser/htmlparser/tests/html/TestParser
? rdf/tests/triplescat/triplescat
? storage/test/teststorage1
? testing/mochitest/automation.py
? testing/mochitest/automation.pyc
? testing/mochitest/runtests.pl
? testing/mochitest/runtests.py
? testing/mochitest/ssltunnel/ssltunnel
? toolkit/components/url-classifier/tests/TestUrlClassifierUtils
? toolkit/crashreporter/client/crashreporter
? toolkit/crashreporter/google-breakpad/src/tools/mac/dump_syms/dump_syms
? toolkit/crashreporter/test/TestCrashReporterAPI
? toolkit/library/XUL
? toolkit/mozapps/update/src/nsUpdateService.js
? toolkit/xre/platform.ini
? tools/rb
? tools/trace-malloc
? widget/src/cocoa/libwidget.rsrc
? xpcom/io/.nsStringStream.cpp.swp
? xpcom/proxy/tests/proxy-create-threadsafety
? xpcom/sample/program/nsTestSample
? xpcom/tests/TestAutoPtr
? xpcom/tests/TestExpirationTracker
? xpcom/tests/TestHashtables
? xpcom/tests/TestINIParser
? xpcom/tests/TestPipe
? xpcom/tests/TestProxies
? xpcom/tests/TestRegistrationOrder
? xpcom/tests/TestStorageStream
? xpcom/tests/TestStringAPI
? xpcom/tests/TestStrings
? xpcom/tests/TestTArray
? xpcom/tests/TestTextFormatter
? xpcom/tests/TestThreadPool
? xpcom/tests/TestVersionComparator
? xpcom/tests/external/TestMinStringAPI
? xpfe/bootstrap/appleevents/mozillaSuite.rsrc
Index: modules/libpr0n/build/nsImageModule.cpp
===================================================================
RCS file: /cvsroot/mozilla/modules/libpr0n/build/nsImageModule.cpp,v
retrieving revision 1.20
2008-09-04 19:00:42 -04:00
Boris Zbarsky
64fa469cc7 Backed out changeset aaecc637558e 2008-09-04 12:36:27 -04:00
Joe Drew
5e0c0fbf08 Bug 430061. Make imglib no longer use necko's memory cache, r/sr=stuart 2008-09-04 11:23:16 -04:00
reed@reedloden.com
56e474d4eb Bug 398066 - "Image requests should include image/* in Accept header" [p=lholst@students.cs.uu.nl (Laurens Holst) r=biesi sr=stuart a1.9=damons] 2008-01-29 20:27:11 -08:00
jwalden@mit.edu
e3c4baccae Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
hg@mozilla.com
465265d0d4 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00