Commit Graph

867 Commits

Author SHA1 Message Date
Brian R. Bondy
938459ac39 Bug 600556, 670466, 549468 - Temporarily disable new android reftests. r=philor 2011-08-25 23:14:33 -04:00
Arno Renevier
33243cdfc6 Bug 681190 - Fixes crash in nsPNGEncoder::ConvertHostARGBRow when calling mozGetAsFile on large canvas; r=roc 2011-08-26 20:50:23 +01:00
Brian R. Bondy
502dfd636b Bug 549468 and Bug 670466 - Reftests for ICO and BMP encoders. r=joe 2011-08-25 16:09:06 -04:00
Brian R. Bondy
edde7424a8 Bug 549468 - Add basic support for .ico icon encoder. r=joe 2011-08-25 16:09:05 -04:00
Brian R. Bondy
36bc2c9d6c Bug 670466 - Add basic support for .bmp encoder. r=joe 2011-08-25 16:09:05 -04:00
Brian R. Bondy
6e6147d41c Bug 600556 - reftests for BMPs of various color depths, ICO BMPs of various color depths, and ICO PNGs. r=joe 2011-08-25 16:09:05 -04:00
Brian R. Bondy
bad85d1651 Bug 600556 - Support Vista-style PNG ICO files. r=joe 2011-08-25 16:09:01 -04:00
Mihai Sucan
726b8bb058 Bug 670896 - Add inner window ID and timestamp to nsIScriptError2; r=bzbarsky 2011-08-24 23:44:35 +03:00
Geoff Brown
1264a5446f Bug 668349 - Changes to xpcshell.ini; r=jmaher 2011-08-22 09:00:50 +01:00
Benjamin Smedberg
27fc56cc0c Bug 675221 part E - fix up DOMStorage proxies (miscellaenous #includes from other places also included) r=mayhemer
--HG--
extra : rebase_source : 834aafda6e819602e73bd6017849bc4eaa202226
2011-08-19 11:50:37 -04:00
Makoto Kato
896d2168dd Bug 678451 - Remove unused gfx files (mozilla-decoder.*, gfxIFormats.idl and gfxidltypes.idl). r=joe 2011-08-18 11:41:26 +09:00
Brian R. Bondy
f1d34e9167 Bug 682688 - Formatting fix for previous push. r=joe 2011-08-31 12:30:21 -04:00
Rafael Ávila de Espíndola
a88fc130ee Bug 678028 - Fix build with clang in c++0x mode. r=joe
In c++0x mode it is not valid to have an integer that doesn't fit a type
in an initializer list. This patch just writes the constants as explicitly
signed instead of using unsigned constants with 2 complement.

--HG--
extra : rebase_source : a8df15d1db0b13436c935dd661db90066c340530
2011-08-16 13:30:33 -04:00
Randell Jesup
c1d7fc5bac Bug 677260: Add specIgnoringRef and hasRef for URIs. r=bz, sr=biesi 2011-08-15 17:18:15 -04:00
Malini Das
a0832b693a Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- plain tests 2/2. r=jmaher, a=test-only 2011-08-12 12:21:44 -04:00
Malini Das
e306b1b5aa Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- chrome. r=jmaher, a=test-only 2011-08-12 12:21:36 -04:00
Jeff Muizelaar
9dfaad3a37 Bug 678258. imglib: Record the number of chunks that we decode per trip through the event loop. r=jlebar
This also avoids recording the latency of decodes that don't do any work.

--HG--
extra : rebase_source : cc41dbb4289c050061ae27008c37d3a25b14df80
2011-08-11 14:42:15 -04:00
Jeff Muizelaar
911766f68c Bug 678258. imglib: Record the time from starting a decode on draw and actually finishing it. r=jlebar
This ignores the distinction between async and sync decoding and instead focuses on the time
it takes till the user sees the finished image.

--HG--
extra : rebase_source : f059b364f1c720ace2da310d0a5e0ce33cfb0dd3
2011-08-10 19:12:08 -04:00
Brad Lassey
146bdc79f5 backing out changesets 1baddb020156, d9456378c12d, 187ac0d7b154, 40e392d958e0 and f2e8ee893fe4 2011-08-10 18:18:09 -04:00
Geoff Brown
cf4a559f2b Bug 668349 - changes to xpcshell.ini; r=jmaher 2011-08-10 16:56:49 -04:00
Brian R. Bondy
462b165a7b Bug 679725 - Create some BMP reftests for bitmaps with negative heights. r=joe 2011-08-31 10:40:24 -04:00
Brian R. Bondy
91cffd5169 Bug 679486 - Create some BMP reftests for OS/2 bitmaps. r=joe 2011-08-31 10:40:24 -04:00
Jeff Muizelaar
1901dd355e Bug 673417. imglib: remove mLoadTime. r=joe
mLoadTime was added by stuart back in 2001. It hasn't as far as I can tell ever been used.

--HG--
extra : rebase_source : fca0f2fcffcae14044da00c5366c4d08edcf3d92
2011-08-05 17:04:36 -04:00
Jeff Muizelaar
3d23c055b4 Bug 673417. imglib: remove more PRBools. r=joe
--HG--
extra : rebase_source : cb8f4dfc1048b5e5af72d5544294a70624cdf35e
2011-08-05 09:57:16 -04:00
Jeff Muizelaar
fefd80c54c Bug 672207. imglib: remove unnecessary scoping. r=joe
--HG--
extra : rebase_source : 2bcd630768ed6f1782bd46f5c4956e9b326e3deb
2011-08-04 17:34:19 -04:00
Justin Lebar
51d9635f4a Bug 664659 - Fix about:memory image reporters. r=joe
--HG--
extra : rebase_source : 489def10afa7f9a33e988d9fc78acdb50e450817
2011-07-18 09:20:27 -04:00
Jeff Muizelaar
0f62a1219f Bug 672207. imglib-telemetry: record the full time it takes to decode images. r=jlebar,joe
Do this by accumulating decode latency in mDecodeTime which is added to imgDecodeWorker.
2011-08-04 16:25:12 -04:00
Joe Drew
3c75d08723 Bug 627015 - Hold on to a reference to the timer, so it doesn't get collected from under us. over-the-shoulder-r=jrmuizel,jdm 2011-08-03 16:39:53 -04:00
Joe Drew
38c27dbd95 Bug 627015 - Add a crashtest for an image that takes a very long time to download the next frame, giving our animation timer a chance to fire. r=jrmuizel 2011-08-03 15:22:47 -04:00
Joe Drew
0474675146 Bug 627015 - Sometimes, images pause mid-frame when downloading. We handle this just fine, but unfortunately we assert that it's not the case. Since this assertion is just bogus, delete it. r=jrmuizel 2011-08-03 15:19:44 -04:00
Joe Drew
99b136a24e Bug 609499 - Crashtest for GIFs that abruptly terminate their LZW data. r=jrmuizel 2011-08-03 15:19:33 -04:00
Joe Drew
96ce34cefc Bug 609499 - Some invalid GIF files don't terminate their LZW data with a 0-length block. Handle them better by handling them less specially. r=jrmuizel 2011-08-03 15:19:19 -04:00
Scott Johnson
c92ae5ac1a Bug 673535 - RasterImage::Anim::ensureAnimExists() should be cleaned up. 2011-07-23 14:49:00 -04:00
Marco Bonardo
99ffcc6359 Backout changeset 984e656becec (Bug 664659) due to regressions in Tp5 XRES and RSS. 2011-08-01 10:20:18 +02:00
Justin Lebar
816e51259b Bug 664659 - Fix about:memory image reporters. r=joe 2011-07-18 09:20:27 -04:00
Daniel Holbert
5798400e19 Bug 670542 patch 2: Rev iids of nsIURI & descendants. r=jst 2011-07-26 22:11:40 -07:00
Michael Wu
706be3a5e8 Bug 671185 - Incorrect return of NS_ERROR_* codes in functions returning PRBool, r=mak,ehsan,taras,biesi,pike,khuey,dholbert,josh,bjacob,bsmith 2011-07-25 21:57:58 -07:00
Justin Lebar
59d336e3b6 Bug 672578 - Part 2. Stop decoding previously-discarded images when the containing tab loses focus. r=joe 2011-07-21 14:15:17 -04:00
Justin Lebar
ea250e229a Bug 672578 - Part 1. Don't trigger a decode when FrameUpdated is called. r=joe 2011-07-21 14:14:41 -04:00
Jeff Muizelaar
05dca460b0 Bug 672225. imglib: remove some PRBools that we're hurting my eyes. r=joe
--HG--
extra : rebase_source : b06e2b61b1104234481bf30a71cd3742a8c9a54f
2011-07-20 17:52:30 -04:00
Jeff Muizelaar
0455058ca3 Bug 672207. imglib: Time how long we spend in the decode loop. r=joe
For now this is a global counter, the eventual plan is to make this per image
format. This will be our proxy for how long we block the event loop.

--HG--
extra : rebase_source : b283fff38585825f5f46884e12508b6323e178b3
2011-07-20 17:51:54 -04:00
Justin Lebar
6132ee5300 Backing out bug 664659 (rev 7b49a2857e18) due to Mac memory regressions. 2011-07-19 19:25:19 -04:00
Jeff Muizelaar
f7a22f3c27 Bug 672207. imglib: Switch away from nsTime in favour of TimeStamp/TimeDuration. r=joe 2011-07-19 11:18:43 -04:00
Justin Lebar
ecdd58c973 Bug 664659 - Fix about:memory image reporters. r=joe,njn 2011-07-18 09:20:27 -04:00
Joe Drew
2ee1d16443 Bug 671906 - Test to make sure we always reload images validated using CORS if their principal has changed. r=bz 2011-07-17 13:40:26 -04:00
Joe Drew
f2e56e6dc3 Bug 671906 - Fix the logic for matching principals in imagelib CORS code. r=bz 2011-07-17 13:40:24 -04:00
Joe Drew
171af95914 Bug 641748 - Create a simulated GIF webcam, and test to make sure we actually get the second frame. r=jrmuizel
This also implicitly tests that we don't hit this bug, because it was an
NS_ABORT_IF_FALSE, and that will be hit on debug reftest runs.
2011-07-14 14:47:45 -04:00
Joe Drew
bbd5b84790 Bug 641748 - Remove RasterImage::AppendFrame in favour of RasterImage::EnsureFrame, because decoders get re-initialized when using multipart/x-mixed-replace, and this can lead to the frame count for RasterImages being different from the frame count for decoders. r=jrmuizel 2011-07-14 14:47:43 -04:00
Joe Drew
50cdf9643d Bug 641748 - Change imgFrame::mPaletteDepth from signed to unsigned. r=jrmuizel 2011-07-14 14:47:41 -04:00
Joe Drew
73e2449ba9 Bug 664299 - Support CORS in Imagelib by adding load flags for the various CORS modes. r=jrmuizel,bz 2011-07-14 14:47:34 -04:00
Joe Drew
952b8c93a0 Bug 664299 - Pass the loading principal to imgILoader::loadImage so we can operate on it later. r=bz 2011-07-14 14:47:32 -04:00
Justin Lebar
60f61836d3 Bug 481962 - Force logging on in imagelib. r=joe
--HG--
extra : rebase_source : 110c088d4221d56aede72808e05c202a7e2a3f91
2011-07-08 13:55:03 -04:00
Nicholas Nethercote
7b61ea2b0e Bug 653627 - Don't use char** in nsIMemoryReporter. r=khuey, sr=bz. 2011-07-08 12:45:16 +10:00
Joe Drew
db615ad885 Bug 619048 - Some "zero" (really max) height and width .ico files as crashtests. r=jrmuizel
The fact that these are interpreted as zero-size is bug 668068.
2011-07-01 13:08:19 -04:00
Joe Drew
088e5533a2 Bug 619048 - Correctly reject zero-height and zero-width images. r=jrmuizel 2011-07-01 13:03:47 -04:00
Joe Drew
2490cf4cd9 Bug 552605 - Tests to make sure a URI always maps to the same image in the same document, even when loaded with cache-control: no-cache. r=bz 2011-07-01 13:03:45 -04:00
Joe Drew
bcb9088b38 Bug 552605 - Write tests to make sure we reload images that are redirected with a Cache-Control: no-cache header. r=bz 2011-07-01 13:03:43 -04:00
Joe Drew
ebe4d8577b Bug 552605 - Rely on the necko cache to validate all cache-control headers rather than asking for it to load only if modified. This makes it so we don't have to implement HTTP cache-control correctness on redirects ourselves. r=jrmuizel 2011-07-01 13:03:42 -04:00
Joe Drew
28b8e17396 Bug 552605 - imgRequest::mKeyURI and mURI are now the same because we don't change the cache on redirect. Let's keep track of the current URI instead. r=jrmuizel 2011-07-01 13:03:40 -04:00
Joe Drew
d31fbb1416 Bug 552605 - Keep track of all redirects when validating cache entries, so we make sure cache headers are always kept track of. r=jrmuizel 2011-07-01 13:03:38 -04:00
Joe Drew
8e1674f49a Bug 552605 - check for file:// scheme in SetCacheValidation rather than on cache entry construction, so we don't have to have the URI when constructing cache entries. r=jrmuizel 2011-07-01 13:03:37 -04:00
Joe Drew
2fd2525747 Bug 552605 - Change "must validate if expired" to "must always validate" in the image cache, to fit with the spirit of the HTTP spec. r=jrmuizel f=bz 2011-07-01 13:03:35 -04:00
Joe Drew
fadc80934d Bug 552605 - Set cache expiry and validation on both OnStartRequest and OnRedirectVerifyCallback so that our image cache entries have the union of all cache headers. r=jrmuizel 2011-07-01 13:03:33 -04:00
Joe Drew
7c5a983ab5 Bug 552605 - Keep images in the image cache based on their original URI, not the URI they're redirected to. r=jrmuizel 2011-07-01 13:03:32 -04:00
Joe Drew
183549614c Bug 552605 - Fix some whitespace issues that crept in. r=jrmuizel 2011-07-01 13:03:30 -04:00
Marco Bonardo
6013ac2db8 Backout bug 552605 and bug 619048 due to increase in random failures in reftests on a CLOSED TREE 2011-07-01 18:08:24 +02:00
Joe Drew
85e1a7141b Bug 552605 - Some "zero" (really max) height and width .ico files as crashtests. r=jrmuizel
The fact that these are interpreted as zero-size is bug 668068.
2011-06-30 21:58:41 -04:00
Joe Drew
367ea5d97d Bug 619048 - Correctly reject zero-height and zero-width images. r=jrmuizel 2011-06-30 21:58:40 -04:00
Joe Drew
6ee9d7ab14 Bug 552605 - Tests to make sure a URI always maps to the same image in the same document, even when loaded with cache-control: no-cache. r=bz 2011-06-30 21:58:38 -04:00
Joe Drew
301a37eb71 Bug 552605 - Write tests to make sure we reload images that are redirected with a Cache-Control: no-cache header. r=bz 2011-06-30 21:58:36 -04:00
Joe Drew
f9164fc9c5 Bug 552605 - Rely on the necko cache to validate all cache-control headers rather than asking for it to load only if modified. This makes it so we don't have to implement HTTP cache-control correctness on redirects ourselves. r=jrmuizel 2011-06-30 21:58:34 -04:00
Joe Drew
fe121634b0 Bug 552605 - imgRequest::mKeyURI and mURI are now the same because we don't change the cache on redirect. Let's keep track of the current URI instead. r=jrmuizel 2011-06-30 21:58:33 -04:00
Joe Drew
829c067539 Bug 552605 - Keep track of all redirects when validating cache entries, so we make sure cache headers are always kept track of. r=jrmuizel 2011-06-30 21:58:31 -04:00
Joe Drew
f7c743d43f Bug 552605 - check for file:// scheme in SetCacheValidation rather than on cache entry construction, so we don't have to have the URI when constructing cache entries. r=jrmuizel 2011-06-30 21:58:30 -04:00
Joe Drew
6861af586e Bug 552605 - Change "must validate if expired" to "must always validate" in the image cache, to fit with the spirit of the HTTP spec. r=jrmuizel f=bz 2011-06-30 21:58:28 -04:00
Joe Drew
1bb88cedf0 Bug 552605 - Set cache expiry and validation on both OnStartRequest and OnRedirectVerifyCallback so that our image cache entries have the union of all cache headers. r=jrmuizel 2011-06-30 21:58:26 -04:00
Joe Drew
408911f38a Bug 552605 - Keep images in the image cache based on their original URI, not the URI they're redirected to. r=jrmuizel 2011-06-30 21:58:25 -04:00
Joe Drew
0a730c4826 Bug 552605 - Fix some whitespace issues that crept in. r=jrmuizel 2011-06-30 21:58:23 -04:00
Justin Lebar
7566d381e7 Bug 666317 - Discard decoded images on a memory-pressure notification. r=joe 2011-06-30 17:13:56 -04:00
Justin Lebar
169b00ccad Bug 664486 - Add page fault counts to about:memory on Linux and Mac. r=njn, sr=bz
--HG--
extra : rebase_source : 47dd7501dea7ae69e01828a5c730e8853739dc71
2011-06-16 14:34:09 -04:00
Kyle Huey
f7e6cb86fc Bug 664495: Cleanup a duplicated function in imgLoader.cpp. r=joe 2011-06-24 07:22:33 -07:00
Marco Bonardo
acc6a474c6 Revert to changeset a87ee7550f6a due to incomplete backout 2011-06-24 17:23:04 +02:00
Kyle Huey
f2c6b2d27d Bug 664495: Cleanup a duplicated function in imgLoader.cpp. r=joe 2011-06-24 07:22:33 -07:00
Ed Morley
a0de3bc8be Bug 665582 - Fix unused variable warning in nsIconChannel.cpp; r=joedrew
--HG--
extra : rebase_source : 65e449aa4dddab9c51862f591dd212851506b50c
2011-06-22 12:00:27 -04:00
Ed Morley
a92663ec2a Bug 665388 - Remove unused variable rv from imgLoader::Init; r=joedrew
--HG--
extra : rebase_source : c77c9dea614b89265e9a0bf481dc070237c675f9
2011-06-22 12:00:04 -04:00
Daniel Holbert
8a020aa372 Bug 656244: Finish *all* remaining parsing in SVGDocumentWrapper::OnStopRequest. r=hsivonen 2011-06-21 10:38:44 -07:00
Alex Pakhotin
e09670883f Bug 649381 - implement moz-icon android support. r=blassey 2011-06-13 14:02:13 -07:00
jhorak@redhat.com
760dede257 Bug 467168 - migrate libgnome and libgnomeui to GTK/GIO functions, r=karlt 2011-06-17 03:05:00 -07:00
Neil Rashbrook
6fdf8af6c5 Bug 660534 Remove useless use of PromiseFlatCString r=joedrew! 2011-06-09 21:14:01 +01:00
Ted Mielczarek
a88f0715f0 merge m-c and b-s 2011-06-13 09:09:43 -04:00
Ed Morley
223c46b36b Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted 2011-06-12 03:49:00 -04:00
Masayuki Nakano
6afe0b59d2 Bug 660768 modules should use mozilla::Preferences r=roc+joe+tglek 2011-06-12 11:30:15 +09:00
Kyle Huey
c5d4c0af2b Bug 661045: Devirtualize some RasterImage methods. r=joe 2011-06-11 12:23:00 -07:00
Dão Gottwald
d0986b9f70 remove redundant jsm imports from browser chrome tests
--HG--
extra : rebase_source : 3eee5463d514dfe1f62cd59a9c317e31903e7313
2011-06-10 11:58:45 +02:00
Ehsan Akhgari
6c1844bd61 Merge mozilla-inbound into mozilla-central 2011-06-09 18:30:11 -04:00
Ehsan Akhgari
5876f2d3b7 Backout changeset 322d3d456f5b, cc8b37b43c5a, fba5bf34ad72, b9dab5588ce1 because they break the desktop mobile build on Windows 2011-06-09 17:02:48 -04:00
Honza Bambas
3c214fe898 Bug 662534 - Let imgRequestProxy implement nsITimedChannel, r=joe 2011-06-09 23:11:57 +02:00
Neil Rashbrook
a79984881b Bug 660534 Remove useless use of PromiseFlatCString r=joedrew! 2011-06-09 21:14:01 +01:00
Randell Jesup
3447b1dc0e Bug 173561: move magic mask constant for nsIRequest into IDL file. r=biesi 2011-06-09 15:03:41 -04:00
Kyle Huey
a6a5dab6fe Bug 660580: Use fallible allocators in RasterImage to store source data. r=joe 2011-06-08 19:21:53 -07:00