Commit Graph

1711 Commits

Author SHA1 Message Date
Seth Fowler
eb02069aa5 Bug 1145560 - During downscale-during-decode, compute the original size invalid rect based on the target size invalid rect. r=tn 2015-05-05 15:35:34 -07:00
Seth Fowler
8c1a4b3bb1 Bug 1160592 - Report image source size again in about:memory. r=dholbert 2015-05-04 16:08:51 -07:00
Seth Fowler
743099cc51 (No bug) - Correct blatantly lying comment in imgLoader.cpp. r=me DONTBUILD 2015-05-01 13:01:51 -07:00
Seth Fowler
a66babe683 Bug 1157343 - Protect ProgressTracker::mImage with a mutex. r=tn 2015-04-30 18:13:14 -07:00
Mike Hommey
924c9eb636 Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Seth Fowler
7b4c79a6cd Bug 1159502 - Don't block onload for multipart images. r=tn 2015-04-28 15:51:32 -07:00
Seth Fowler
65e04debbb Bug 1159409 - (Part 2) - Remove ProgressTrackerInit and register Images with a ProgressTracker in ImageFactory. r=tn 2015-04-28 16:32:02 -07:00
Seth Fowler
e9f3458130 Bug 1159409 - (Part 1-) - Remove Init() from the Image interface. r=tn 2015-04-28 16:07:24 -07:00
Seth Fowler
f3b0607ceb Bug 1157954 - Report each surface in the ImageLib SurfaceCache individually in about:memory. r=dholbert 2015-04-28 11:46:17 -07:00
Seth Fowler
67aae95b57 Bug 1155429 - Add an explicit ImageCacheKey type for the ImageLib cache. r=baku 2015-04-28 11:45:45 -07:00
Andrew McCreight
0c176ddcff Bug 1062479 - Use static strings for WeakReference type names. r=ehsan 2015-04-24 09:43:01 -07:00
Ryan VanderMeulen
61750cf7e7 Backed out changeset 5f97bf645c13 (bug 1157343) for tp crashes. 2015-04-24 10:09:23 -04:00
Seth Fowler
b8b6ac7d84 Bug 1157343 - Protect ProgressTracker::mImage with a mutex. r=tn 2015-04-23 15:37:08 -07:00
Boris Zbarsky
9cbb1e7539 Bug 1157451. Make nsCORSListenerProxy::Init take an enum, not a boolean, to indicate what to do with data: URIs. And make it required, not defaulted to disallowing. r=smaug 2015-04-22 20:30:10 -04:00
Boris Zbarsky
6e3069def0 Bug 1109693. More places that use CORS should in fact allow data: URIs. r=smaug 2015-04-22 20:30:10 -04:00
Steve Singer
4a748bd766 Bug 1141642 - Fix disable-skia builds. r=jmuizelaar
--HG--
extra : rebase_source : 6c6e1664973547b6131a5f5410bb0eec9afd750d
2015-04-18 19:44:00 +02:00
Andrea Marchesini
cb54385682 Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
Geoff Brown
d82db4ae91 Bug 1133833 - Skip a few more troublesome tests on Android 4.3; r=trivial,test-only 2015-04-21 09:30:49 -06:00
Nicolas Silva
e887c595eb Bug 1155621 - Remove no-op gfx2DGlue conversion helpers. r=Bas 2015-04-21 17:22:30 +02:00
Nicolas Silva
cfff5e52c5 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Geoff Brown
848c9ba9ee Bug 1133833 - Disable xpcshell test_async_notification.js on Android 4.3 for frequent failures; r=trivial,test-only 2015-04-20 14:15:27 -06:00
Timothy Nikkel
c2c72dfc25 Bug 1063369. When we clone an imgRequestProxy and it currently has an imgCacheValidator checking if the request is still valid over the network make sure to add the new proxy to the validator so that the validator can update the proxy to point to a new request if it finds the old request to be stale. r=seth
Since the CSS image loader (for example background images) always uses a cloned request for painting the image this results in stale images being shown.

This patch is almost the same as the patch Boris Zbarsky posted to bug 432391 in 2011, but I didn't notice that patch until too late. There is one siginificant difference though. We call AddProxy and SetNotificationsDeferred before calling SyncNotifyListener in this patch. Calling them after leads to orange on try server.
2015-04-10 01:15:39 -05:00
Ehsan Akhgari
965174d6d8 Add an assertion for the first argument of NewImageChannel, no bug 2015-04-18 20:18:49 -04:00
Nathan Froyd
1e6cdad33c Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1").  Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Seth Fowler
c3f939a0e0 Bug 1151309 (Part 2) - Hide errors in multipart image parts both visually and internally. r=tn 2015-04-14 17:47:59 -07:00
Seth Fowler
b9f71b11c0 Bug 1151309 (Part 1) - Block until the previous multipart frame is decoded before processing another. r=tn 2015-04-14 17:47:56 -07:00
Wes Kocher
af34e14f2b Backed out changeset 050848a5273c (bug 1153988) for Windows build bustage CLOSED TREE 2015-04-14 14:42:59 -07:00
Nathan Froyd
4e3c075424 Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1").  Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Glenn Randers-Pehrson
d54556cf7e Bug 1102048 (Part 35, Downscaler) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-01-22 05:38:00 -08:00
Carsten "Tomcat" Book
fee8ca89b2 Backed out changeset 43af95e75ece (bug 1063369) for bc1 test failures 2015-04-10 11:31:35 +02:00
Carsten "Tomcat" Book
45fa56db26 Backed out changeset eaf1b350adf9 (bug 1063369) 2015-04-10 11:29:51 +02:00
Timothy Nikkel
fd9632fce5 Bug 1063369. Forgot missing include. 2015-04-10 01:56:22 -05:00
Timothy Nikkel
7703b19fed Bug 1063369. When we clone an imgRequestProxy and it currently has an imgCacheValidator checking if the request is still valid over the network make sure to add the new proxy to the validator so that the validator can update the proxy to point to a new request if it finds the old request to be stale. r=seth
Since the CSS image loader (for example background images) always uses a cloned request for painting the image this results in stale images being shown.

This patch is almost the same as the patch Boris Zbarsky posted to bug 432391 in 2011, but I didn't notice that patch until too late. There is one siginificant difference though. We call AddProxy and SetNotificationsDeferred before calling SyncNotifyListener in this patch. Calling them after leads to orange on try server.
2015-04-10 01:15:39 -05:00
Seth Fowler
ff78e9c214 Bug 1146335 (Part 2) - Fix an off-by-one error in image::Downscaler. r=tn 2015-04-09 17:52:23 -07:00
Seth Fowler
528fefad45 Bug 1146335 (Part 1) - Add assertions and fix style issues in image::Downscaler. r=tn 2015-04-09 17:52:23 -07:00
Chris Peterson
66b64b4907 Bug 1143994 - Fix some -Wunreachable-code and -Wswitch warnings in imagelib. r=seth 2015-03-16 21:02:15 -07:00
Seth Fowler
bbb3ac44cd Bug 1149893 - Add a pref that makes us decode all images immediately. r=baku 2015-04-07 16:44:29 -07:00
Glenn Randers-Pehrson
3e8964ff7e Bug 1102048 (Part 20, imgLoader) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-07 14:49:00 -07:00
Glenn Randers-Pehrson
ca42834102 Bug 1102048 (Part 23, encoders) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-06 19:19:00 -07:00
Glenn Randers-Pehrson
0a6edee37c Bug 1102048 (Part 39, decoders/icon) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-06 19:12:00 -07:00
Glenn Randers-Pehrson
7def1c3af9 Bug 1102048 (Part 24, decoders) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-05 16:22:00 -07:00
Glenn Randers-Pehrson
d5a3cf0c9b Bug 1102048 (Part 15, VectorImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-04 12:58:00 -07:00
Glenn Randers-Pehrson
bcf05b995c Bug 1102048 (Part 04, ClippedImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-04 12:57:00 -07:00
Glenn Randers-Pehrson
3eda954ef7 Bug 1102048 (Part 30, imgTools) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-02 13:41:00 -07:00
Glenn Randers-Pehrson
abf7e02404 Bug 1102048 (Part 11, imgRequest) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 11:06:00 -07:00
Glenn Randers-Pehrson
e2552625e5 Bug 1102048 (Part 38, ShutdownTracker) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 10:57:00 -07:00
Glenn Randers-Pehrson
f530a7a9e8 Bug 1102048 (Part 37, ProgressTracker) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 10:56:00 -07:00
Glenn Randers-Pehrson
9dac554373 Bug 1102048 (Part 14, NotificationObserver) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 10:50:00 -07:00
Glenn Randers-Pehrson
34d6cb6f43 Bug 1102048 (Part 13, RasterImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 10:49:00 -07:00
Glenn Randers-Pehrson
d308a1d6f2 Bug 1102048 (Part 10, imgFrame) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 10:48:00 -07:00
Glenn Randers-Pehrson
c051fd5cb8 Bug 1102048 (Part 36, DynamicImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-25 19:39:00 -07:00
Glenn Randers-Pehrson
24a2dbfc20 Bug 1102048 (Part 09, Image) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-25 19:36:00 -07:00
Glenn Randers-Pehrson
a3894be4f5 Bug 1102048 (Part 29, imgRequestProxy) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-25 10:59:00 -07:00
Glenn Randers-Pehrson
f4222bd0f8 Bug 1102048 (Part 31, SurfaceCache) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-24 13:16:00 -07:00
Glenn Randers-Pehrson
e68838c027 Bug 1102048 (Part 25, header guards) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-23 16:59:00 -07:00
Glenn Randers-Pehrson
0f2f7f769e Bug 1102048 (Part 33, SVGDocument) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-04 04:18:00 -08:00
Glenn Randers-Pehrson
aea7db954d Bug 1102048 (Part 05, Decoder) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-02-10 16:47:00 -08:00
Glenn Randers-Pehrson
a2da6fa1e6 Bug 1102048 (Part 28, DecoderPool) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-02-08 14:43:00 -08:00
Glenn Randers-Pehrson
a55743d056 Bug 1102048 (Part 34, Multipart) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-02-05 21:34:00 -08:00
Glenn Randers-Pehrson
6cfbead9f0 Bug 1102048 (Part 19, ImageMetadata) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-01-19 10:29:00 -08:00
Glenn Randers-Pehrson
d07fc48566 Bug 1102048 (Part 32, FrameAnimator) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-01-16 09:27:00 -08:00
Glenn Randers-Pehrson
e7d0cccef2 Bug 1102048 (Part 26) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-01-10 10:49:00 -08:00
Glenn Randers-Pehrson
c65555f59b Bug 1102048 (Part 03) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2014-12-11 17:03:00 -08:00
Seth Fowler
ae3f008388 Bug 1150127 - Stop leaking windows via imgCacheValidator. r=baku
CLOSED TREE
2015-04-07 13:02:02 -04:00
Ryan VanderMeulen
b9ff11e8b7 Backed out changeset 0e7488db2bd3 (bug 1150127) for suspicion of causing various Gip failures.
CLOSED TREE
2015-04-07 12:00:35 -04:00
Seth Fowler
22c7c55031 Bug 1150127 - Stop leaking windows via imgCacheValidator. r=baku 2015-04-06 19:34:00 -07:00
Nicolas Silva
0b1f75bea0 Bug 1132854 - Remove the gfx::ToIntSize conversion helper. r=Bas 2015-04-07 16:08:57 +02:00
Glenn Randers-Pehrson
c43f439843 Bug 1147909 - Part 2 - (nsPNGDecoder) Update embedded libpng to version 1.6.17. r=jmuizelaar
--HG--
extra : rebase_source : 98295e9675e10890c68f93e39202c0c410ec6b35
2015-03-28 11:07:00 +01:00
Mats Palmgren
eb4243e0c6 Bug 1149222 part 1 - Make nsLayoutUtils::DrawBackgroundImage and SVGImageContext use CSSIntSize instead of unitless nsIntSize. r=dholbert 2015-04-03 19:48:12 +00:00
Nathan Froyd
4c7234747e Bug 1143651 - don't use CallQueryInterface when the compiler can do the cast for us; r=ehsan 2015-03-12 13:20:29 -04:00
Mike Hommey
b077d9624d Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Mike Hommey
c39e359c7d Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Ehsan Akhgari
f479f50502 Bug 1147699 - Part 4: Add a test for FetchEvent.request.context when intercepting a responsive image load; r=nsm 2015-03-30 08:42:35 -04:00
Seth Fowler
711b24de92 Bug 1148682 - Handle content length correctly for moz-icon channels. r=tn 2015-03-29 17:47:49 -07:00
Seth Fowler
b6704cffc6 Bug 1148397 - Fix data race on imgRequest::mHadInsecureRedirect. r=tanvi 2015-03-29 16:25:48 -07:00
Seth Fowler
2405897776 Bug 1148684 - Compact SourceBuffer even if it contains only one chunk. r=tn 2015-03-29 16:25:15 -07:00
Nicolas Silva
52be9f47b5 Bug 1132854 - Remove useless ThebesIntSize conversion helper. r=Bas 2015-03-29 16:59:15 +02:00
Nicolas Silva
e3eaf89e3f Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc 2015-03-29 16:59:08 +02:00
Seth Fowler
b10e8c2f7f Bug 1148213 - Implement image locking for VectorImage. r=dholbert 2015-03-27 20:17:23 -07:00
Seth Fowler
cb919c552d Bug 1148640 - Bail if OnStartRequest is delivered more than once to imgCacheValidator. r=tn 2015-03-27 20:07:20 -07:00
Andrea Marchesini
e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
atlanto
abb22998f0 Bug 1137615 - "Some icons are not displayed in the bookmarks sidebar" [r=seth] 2015-03-25 01:00:00 -07:00
Wes Kocher
8ef8d2c097 Backed out changeset 8f5b359fc9fc (bug 1141894) for m-oth failures CLOSED TREE
--HG--
extra : amend_source : 8b3a4d36927acc91cce7450e7888aebb24f8cb06
2015-03-24 17:18:10 -07:00
Seth Fowler
5e1bf3762e Bug 1124088 - Rename decode-on-draw to decode-only-on-draw. r=tn 2015-03-24 15:39:00 -07:00
Seth Fowler
33a2c7e011 Bug 1139225 - Followup - Remove duplicate multiPartChannel variable. 2015-03-24 14:47:01 -07:00
Seth Fowler
824bd1e1a3 Bug 1141894 - Do not bother to attempt to validate non-HTTP image cache entries. r=tn 2015-03-24 14:46:58 -07:00
Tanvi Vyas
3faad06490 Bug 1082837 - Call content policies on cached image redirects in imgLoader::ValidateSecurityInfo. Content policies check the last hop (final uri) of the cached image. For Mixed Content Blocker, we do an additional check to see if any of the intermediary hops went through an insecure redirect. r=smaug, feedback=seth 2015-03-24 09:18:48 -07:00
Tanvi Vyas
1bb8dfe2ce Bug 1082837 - Track insecure redirects on imgRequest. r=? 2014-12-15 17:40:43 -08:00
Seth Fowler
1cf6ce3a0f Bug 1139225 Followup - Replace MOZ_OVERRIDE with override and MOZ_FINAL with final in imgRequest.cpp on a CLOSED TREE.
--HG--
extra : amend_source : 253d84d31d87ccc65247031366aa51ce881a9f74
2015-03-23 20:00:42 -07:00
Seth Fowler
156efe1b0a Bug 1139818 - Merge imgRequest public and private sections. r=baku 2015-03-23 19:37:46 -07:00
Seth Fowler
54f930b0b6 Bug 1139804 (Part 6) - Make imgRequest no longer friends with ProgressTracker. r=baku 2015-03-23 19:37:45 -07:00
Seth Fowler
e8811199a7 Bug 1139804 (Part 5) - Stop accessing private imgRequest members in imgMemoryReporter. r=baku 2015-03-23 19:37:45 -07:00
Seth Fowler
45978d466b Bug 1139804 (Part 4) - Stop accessing private imgRequest members in imgLoader. r=baku 2015-03-23 19:37:45 -07:00
Seth Fowler
53de0b014b Bug 1139804 (Part 3) - Stop accessing private imgRequest members in imgCache* classes. r=baku 2015-03-23 19:37:45 -07:00
Seth Fowler
dd4f7c449e Bug 1139804 (Part 2) - Stop accessing private imgRequest members in imgRequestProxy. r=baku 2015-03-23 19:37:45 -07:00
Seth Fowler
6d7a905304 Bug 1139804 (Part 1) - Remove references to nonexistent type imgRequestNotifyRunnable. r=baku 2015-03-23 19:37:45 -07:00
Seth Fowler
ee25228a98 Bug 1141819 - Don't implicitly dispatch a runnable to the main thread in RasterImage::StartDecoding. r=baku 2015-03-23 19:37:45 -07:00
Seth Fowler
32afe4039f Bug 1139225 (Part 3) - Make OnDataAvailable threadsafe. r=tn 2015-03-23 19:37:45 -07:00
Seth Fowler
899b53d7ba Bug 1139225 (Part 2) - Dispatch OnImageAvailable to the main thread manually in imgRequest. r=tn 2015-03-23 19:37:45 -07:00
Seth Fowler
419d6b14f2 Bug 1139225 (Part 1) - Remove unused imgRequest::mBlockingOnload flag. r=tn 2015-03-23 19:37:45 -07:00