Commit Graph

327 Commits

Author SHA1 Message Date
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
Jesse Ruderman
5f1cc5c3ce Add a bunch of crashtests 2009-02-10 00:09:40 -08: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
Vladimir Vukicevic
5491a16c93 Backing out test for bug 466586 2009-02-02 21:14:59 -08:00
Boris Zbarsky
749a81258a Bug 475897. Rev imgIContainer iid in CLOSED TREE 2009-02-03 15:45:27 -05:00
Arpad Borsos
51bf75177c Bug 474116 - Clean up deprecated GTK symbols; r=(bsmedberg + roc) sr=roc 2009-02-02 18:49:58 +01: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
a7a5803b59 Bug 466586 - Test to ensure that we don't have to reload an image that exists in a document. 2009-01-30 21:17:35 -05:00
Jim Mathies
fc1a190574 Bug 455353 - Backout of code added to imagelib in Bug 355555. r=dougt 2009-01-30 13:13:52 -06:00
L. David Baron
d6d6914e7a Conditionally adjust two reftest references to match the non-assembly version of the code. (Bug 465088) r=bholley 2009-01-29 12:39:17 -08:00
Joe Drew
d5cccedfce Bug 473161 - Fix imgRequest::Cancel() to call Cancel() on the loadgroup instead of the channel. The fix to bug 89419 included a mistaken change from cancelling the loadgroup to cancelling the channel. r=bzbarsky, sr=vladimir, a=blocking1.9.1+ 2009-01-29 14:18:56 -05:00
Joe Drew
763c2531bd Backout bug 473161 2009-01-26 17:12:05 -05:00
Joe Drew
4b8233638e Back out tests for bug 466586 2009-01-26 17:09:48 -05:00
Joe Drew
40b7703a1f Backed out changeset 18988bc1c727 2009-01-26 17:08:14 -05:00
Joe Drew
962cd7d3c1 Backed out changeset 72fda0d63f66 2009-01-26 17:07:54 -05:00
Joe Drew
daedbb0955 Backed out changeset 7d9bea3fa51a 2009-01-26 17:07:38 -05:00
Joe Drew
2528fd153b Bug 473161 - Fix imgRequest::Cancel() to call Cancel() on the loadgroup instead of the channel. The fix to bug 89419 included a mistaken change from cancelling the loadgroup to cancelling the channel. r=bzbarsky, sr=vladimir, a=blocking1.9.1+ 2009-01-26 15:34:03 -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
480285ad5f Bug 466586 - Test to ensure that we don't have to reload an image that exists in a document. 2009-01-26 15:33:59 -05:00
Daniel Holbert
2a7d88e05a Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg 2009-01-21 22:55:08 -08:00
Arpad Borsos
89096c497d Bug 471877 - Cleanup GTK includes; further cleanup + system-headers cleanup; r+sr=roc 2009-01-21 16:24:46 +01: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
rsx11m
1e88f9ff71 Bug 444898 - JPEG writer uses poor quality default options for compression. r=tor+dolske, sr=pavlov 2009-01-16 15:16:32 +01:00
Phil Ringnalda
d5e6a4296b Fix spelling of immediatly, to get more builds going immediately in the CLOSED TREE 2009-01-11 00:06:41 -08: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
aac2d03952 Bug 468160 - Add test that does a redirect to a PNG inside an <object> tag. Our Mochitest framework will test for leaks for us. 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
Justin Dolske
5c689a4061 Bug 455057 - some chrome images have embedded profiles. r=dbaron, ui-r=faaborg 2008-12-20 21:46:38 -08:00
Siddharth Agarwal
67bb2aad37 Bug 469739 - Add support for displaying Vista UAC shield icon; r=joe sr=vladimir 2008-12-21 02:31:35 +01:00
Joe Drew
b3ed052b57 Don't discard animated images so we don't have to worry about how to restore them. b=414259 r/sr=vlad 2008-12-19 17:35:50 -05:00
Joe Drew
a29562512b Bug 393936 - nsIRequest::cancel() must not notify anything sync. Make removal from the loadgroup async, and add another call cancelAndForgetObserver() that removes the listener immediately (since some callsites expect that). Note, however, that this new method shouldn't be used in any new code; it exists only to support code that relied on the broken behaviour prior to this checkin. r=bzbarsky sr=vlad 2008-12-19 17:35:50 -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
cf5541dc63 Fix the obvious mistakes I'd made in the previous patch for bug 468160. 2008-12-10 21:10:03 -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
b1879ea25f Don't discard animated images so we don't have to worry about how to restore them. b=414259 r/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
294499eab5 Bug 393936 - nsIRequest::cancel() must not notify anything sync. Make removal from the loadgroup async, and add another call cancelAndForgetObserver() that removes the listener immediately (since some callsites expect that). Note, however, that this new method shouldn't be used in any new code; it exists only to support code that relied on the broken behaviour prior to this checkin. r=bzbarsky sr=vlad 2008-12-10 16:25:34 -08:00
Shawn Wilsher
bf0e65a35b Bug 466582 - smarter handling of remote chrome (and not allowing it)
This adds a new flag, URI_IS_LOCAL_RESOURCE, to nsIProtocolHandler that allows
something of this protocol to be registered in chrome.

This changeset removes a runtime check every time we open a chrome channel to
see if it is remote to a registration time check that checks flags.  The old
code could be easily worked around, and allowed for remote resources to be used.

r=bsmedberg
r=bz
sr=bz
2008-12-09 16:27:42 -05:00
Shawn Wilsher
6ea17d3edc Backed out changeset b6f762fde736 (bug 466582) for unit test orange. 2008-12-08 18:51:46 -05:00
Shawn Wilsher
52fa025019 Bug 466582 - smarter handling of remote chrome (and not allowing it)
r=bsmedberg, r=bz, sr=bz
2008-12-08 17:14:14 -05:00
Serge Gautherie
be4694b633 Bug 458847 - colordepth.html TEST-UNEXPECTED-FAIL on my Windows 2000: 24<->32 bit colors mismatch; (Av2a) Allow higher values, on all platforms; r=dbaron 2008-12-02 13:45:09 +01:00
Brad Lassey
cc9f2ff870 Bug 460767 - Crash in imgRequest.cpp in OOM conditions r=pavlov r=joedrew a19b2=beltzner. CLOSED TREE 2008-11-24 11:57:47 -05:00
Joe Drew
a2b8f5356f Backed out changeset 6bedb1e92dd0 due to refcount leaks 2008-11-07 15:01:35 -05:00
Joe Drew
8fd1536f32 Bug 393936 - Cancel() must not notify anything sync. Make removal from the loadgroup async, and add another call CancelAndForgetObserver() that removes the listener immediately (since some callsites expect that). r=bz, sr=pavlov, a=blocking1.9.1+ 2008-11-07 14:35:22 -05:00
Dave Townsend
68663a73e2 Backed out changeset 673d1ba18849 from bug 455057 as the likely cause of the Vista Ts regression 2008-11-07 15:21:35 +00:00
Dave Townsend
2545ad97e1 Backed out changeset 673d1ba18849 from bug 455057 as the likely cause of the
Vista Ts regression
2008-11-07 15:21:23 +00:00
Justin Dolske
23299930f7 Bug 455057 - some chrome images have embedded profiles (sRGB chunk removal). ui-r=faaborg, r=dbaron 2008-11-05 19:19:44 -08:00
Joe Drew
6683bd098a Crash [@imgRequest::NotifyProxyListener(imgRequestProxy*)] at tokyomango.com - bug 441563 r=vladimir sr=pavlov 2008-11-06 16:31:20 -05:00
Phil Ringnalda
bbe7e1d08a Bug 461888 - Remove unused PACKAGE_FILE and PACKAGE_VARS and .pkg files, mozilla-central part, r=bsmedberg 2008-11-03 19:46:28 -08:00
Ian
ee43bba9c1 Bug 251475. Make sure channels don't return null for the originalURI. Initial work by Daniel Kraft <domob@daniel-kraft.net> and Brandon Ferguson <bnferguson@gmail.com>. r+sr=bzbarsky. 2008-10-15 16:05:23 -04:00
Arpad Borsos
8b11d938d2 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
Boris Zbarsky
5964ca6e14 Backed out changeset d07aa0d0712a: Relanding: Bug 373701. Make sure to properly cancel multipart image loads when they need canceling. r=joedrew, sr=biesi 2008-10-02 09:53:35 -04:00
Boris Zbarsky
a1df483e98 Backing out changeset afcc5aa0fb07 to see effect on the Windows Txul 2008-10-01 20:06:48 -04: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
Doug Turner
e06e303ba0 Merge after pull 2008-09-29 14:20:20 -07:00
Boris Zbarsky
82a62c8b90 Bug 373701. Make sure to properly cancel multipart image loads when they need canceling. r=joedrew, sr=biesi 2008-09-29 16:46:53 -04:00
Doug Turner
921312204b Bug 457728 - icon decoder wince fixes. patch by blassey, r=stuart/dougt 2008-09-29 11:06:09 -07:00
Oleg Romashin
88bcb5a900 Bug 451263 - Implement moz-icon for Qt port. Add missing icon/qt directory part. r=vladimir. 2008-09-24 18:45:42 -05:00
Oleg Romashin
2f3f67b169 Bug 451263 - Implement moz-icon for Qt port. r=vladimir. 2008-09-20 04:03:23 -04:00
Bobby Holley
106aaaae97 Turning color management on by default for tagged images - bug 418538. r=vlad
Also updating some reftests whose behavior changes with color management
enabled - bug 453548. r=dolske
2008-09-11 18:45:43 -07: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
Bobby Holley
b750bcc898 Backed out changeset e7c6d7843e81 due to linux reftest failures 2008-09-10 22:24:41 -07:00
Bobby Holley
1bcc99f8b1 Turning color management on by default - bug 418538. r=vlad
Also updating some reftests whose behavior changes with color management
enabled - bug 453548. r=dolske
2008-09-10 19:35:00 -07:00
Doug Turner
a49e520740 Bug 453836 - handle OOM while images decoding. r=jim 2008-09-10 13:23:29 -07:00
Ted Mielczarek
468a3823fc bug 447642 - get rid of --disable-mochitest, replace MOZ_MOCHITEST with ENABLE_TESTS. r=bsmedberg 2008-09-09 13:59:11 -04: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
Bobby Holley
b587524e03 Removing embedded ICC profiles from reftest reference images - bug 453547. r=me 2008-09-04 10:24:07 -07: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
Marco Bonardo
fed5a1056a Bug 442731 - GIF favicons are not resampled in places.sqlite (large icons are stored), r=dietrich, pavlov 2008-09-02 13:59:59 +02:00
honzab@allpeers.com
2eba452039 Bug 135007, Transfer mode of images should be relevant for shown lock icon state (mixed content)
Based on ideas from Stuart Parmenter and experimental code from Kai Engert
Patch contributed by Honza Bambas
r=kaie, r=pavlov, sr=bz
2008-09-01 22:53:59 +02:00
Bobby Holley
87c0ed791b Bug 452676 - PNG Pseudo-CMS chunks (gAMA and cHRM) aren't handled properly with color management on. r=vlad,joe 2008-08-30 15:54:58 -07:00
Brian Crowder
075862a92a Bug 422776 - reduce narrow Windows API calls in imagelib, original patch by Brad Lassey <blassey@mozilla.com>, r=pavlov 2008-08-27 14:44:55 -07:00
Reed Loden
b89ad17341 Backed out changeset 6eec92f9276a from bug 416157 because the image tests need to be updated before it can be landed. 2008-08-20 02:03:01 -05:00
Michael Moy
f9e264bb68 Bug 416157 - "Add JPEG SSE2 color processing for ycc_rgb_convert_argb" [r=stuart sr=vlad] 2008-08-20 00:03:46 -05:00
Dave Camp
73041a5aa1 Backed out changeset e63a23edb90c due to Rlk regression (bug 430061). 2008-08-19 14:42:03 -07:00
Joe Drew
7330eb1491 Bug 430061 - replace imglib use of necko memory cache with an imglib-specific cache, r=pav 2008-08-19 16:28:28 -04:00
Dão Gottwald
5e5814d2b9 backout bug 444898 to fix orange 2008-08-19 13:58:40 +02:00
Glenn Randers-Pehrson
743e5b22f5 Bug 428045 – Incorrect transparency in .png image. sr=tor, r=pavlov 2008-08-19 10:12:31 +02:00
Glenn Randers-Pehrson
4c06ce90fa Bug 444898 – JPEG writer uses poor quality default options for compression. r=tor, sr=pavlov 2008-08-19 10:07:09 +02:00
Dave Townsend
330ddd2b79 Backout of bug 135007 due to Tp regression 2008-08-18 15:08:44 +01:00
Dave Townsend
9cb6773784 Backed out changeset cf3eae029913 2008-08-18 15:08:14 +01:00
Bobby Holley
f0efbd4775 Code to fastpath Alpha PNGs in LCMS - part of bug 445552. r=vlad 2008-08-17 22:08:53 -07:00
Bobby Holley
ead2727c2c Floating point path through lcms as part of bug 445552. r=vlad 2008-08-16 14:44:51 -07:00
honzab@allpeers.com
a19d587018 Bug 135007, Transfer mode of images should be relevant for shown lock icon state (mixed content)
Based on ideas from Stuart Parmenter and experimental code from Kai Engert
Patch contributed by Honza Bambas
r=kaie, r=pavlov, sr=bz
2008-08-16 09:12:42 +02:00
Bobby Holley
3b34cb4ebc Bug 449681 – switch color_management pref from off/on bool to off/on/taggedonly int. r=vlad 2008-08-11 21:55:36 -07:00
Bobby Holley
4a0c36fc63 Firefox honors embedded ICC intent flag - bug 444014 r=vlad 2008-07-23 10:33:12 -07:00
Robert Longson
be6dcc3eb6 Bug 444996 - Compilation broken on various platforms. INT_MAX was not declared in this scope. r+sr=vladimir 2008-07-16 10:20:24 +01:00
Vladimir Vukicevic
04fc36140f b=443693, check png info callback correctly; r=joe 2008-07-11 13:52:30 -07:00
gavin@gavinsharp.com
e74996a506 Bug 427978: default to using file extension if file used in moz-icon doesn't exist, patch by Jim Mathies <jmathies@mozilla.com>, r=stuart, a=schrep 2008-04-16 13:16:31 -07:00
dolske@mozilla.com
cca6ad8675 Reenable pngsuite-corrupted tests, since disabling them didn't help (bug 425987). 2008-04-05 13:10:56 -07:00
dolske@mozilla.com
3e3d6293f7 Try disabling pngsuite-corrupted tests (bug 425987). 2008-04-05 01:27:01 -07:00
johnath@mozilla.com
7d1d211b40 Back out test-landing of JOEDREW!'s bug 425941. 2008-04-04 09:02:44 -07:00