Andrew Osmond
9aff749657
Bug 1341624 - Include shared handle totals in memory reports for images. r=tnikkel
2017-02-22 09:30:22 -05:00
Tom Tromey
a4b717ab39
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Sylvestre Ledru
31bb27607d
Bug 1338086 - Remove useless else blocks in order to reduce complexity image/ r=dholbert
...
MozReview-Commit-ID: 8qUQk8w0QSk
2017-02-10 13:52:27 +01:00
Tim Huang
b3fb2c8458
Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
2017-02-07 11:49:34 +08:00
Andrea Marchesini
46a9207d60
Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby
2017-01-12 17:38:48 +01:00
Thomas Nguyen
82e1caab63
Bug 1304623 - Create a pref to control the default referrer policy - part 3. r=bkelly
...
MozReview-Commit-ID: 1A6IHPeNYBQ
2017-01-05 11:29:56 +08:00
Yoshi Huang
13130453ba
Bug 1324115 - Part 2: replace the callers to use C++ helper. r=smaug
2016-12-21 14:59:21 +08:00
Andi-Bogdan Postelnicu
b9dbecdab5
Bug 1318000 - Use C++11's override and remove virtual where applicable in image/. r=jrmuizel
...
MozReview-Commit-ID: B0ZIwPnhAIT
2016-11-16 17:41:47 +02:00
Andi-Bogdan Postelnicu
9f300e2979
Bug 1318000 - Replace default bodies of special member functions with = default; in image/. r=jrmuizel
...
MozReview-Commit-ID: FYzbhclEgyD
2016-11-16 17:39:43 +02:00
Andi-Bogdan Postelnicu
7e8d751ec9
Bug 1318000 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in image/. r=jrmuizel
...
MozReview-Commit-ID: DpS7zsWD75j
2016-11-16 17:39:05 +02:00
Ehsan Akhgari
285f1a3412
Bug 1306800 - Remove support for app theming; r=myk,baku
2016-10-13 13:23:03 -04:00
Tim Huang
b5e4764b5a
Bug 1277803 - Part 3 : Make the image library uses the correct originAttributes and triggering principal when opening a image channel for favicon loading. r=tnikkel
2016-10-13 15:43:57 +08:00
Wes Kocher
85edded572
Backed out 8 changesets (bug 1277803) for browser-chrome test failures a=backout
...
Backed out changeset 477890efdb88 (bug 1277803)
Backed out changeset 49da326bfe68 (bug 1277803)
Backed out changeset 2d17a40a9077 (bug 1277803)
Backed out changeset b1cb0a195ca1 (bug 1277803)
Backed out changeset c7d82459d152 (bug 1277803)
Backed out changeset 3be9a06248af (bug 1277803)
Backed out changeset 8d119ca96999 (bug 1277803)
Backed out changeset be767a6f7ecd (bug 1277803)
2016-10-12 14:26:00 -07:00
Tim Huang
0d65a0e22a
Bug 1277803 - Part 3 : Make the image library uses the correct originAttributes and triggering principal when opening a image channel for favicon loading. r=tnikkel
2016-10-12 17:32:06 +08:00
Andrew Osmond
d1fe355e89
Bug 1275464 - Part 1. Unregister from handling image memory reports when shutting down. r=njn
2016-09-19 13:29:59 -04:00
James Andreou
1e947fec6c
Bug 1282124 - Remove nsILoadInfo.usePrivateBrowsing and the SEC_FORCE_PRIVATE_BROWSING flag; r=smaug,jryans
2016-09-27 16:56:44 -04:00
Kate McKinley
90c8afbeac
Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally
...
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.
Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.
nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.
MozReview-Commit-ID: ES1JruCtDdX
2016-09-27 11:27:00 -04:00
Nicholas Nethercote
41e583fbd6
Bug 1297300 - Add missing checks to GetSpec() calls in image/. r=tnikkel.
2016-08-29 15:34:32 +10:00
Nicholas Nethercote
62b6b0fce6
Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
...
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:
nsAutoCString spec;
uri->GetSpec(spec);
printf("uri: %s", spec.get());
to be changed to this:
printf("uri: %s", uri->GetSpecOrDefault().get());
This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.
I will fold this into part 1 before landing.
2016-08-26 16:02:31 +10:00
Nicholas Nethercote
1009bf0056
Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
...
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.
The patch also does some associated clean-up.
- Replaces some uses of nsIMemoryReporterCallback with the preferred
nsIHandleReportCallback typedef.
- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
parameter names, for consistency.
- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.
- Uses the MOZ_COLLECT_REPORT macro in all suitable places.
Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.
2016-08-24 15:23:45 +10:00
Seth Fowler
ed50277add
Bug 1293472 (Part 3) - Store animated images in the surface cache as a sequence of frames, rather than each frame getting its own cache entry. r=dholbert,edwin,njn
2016-08-18 15:42:48 -07:00
Jonathan Hao
ebff5db148
Bug 1270680 - Part 1: Double-key the image cache by origin attribute. r=jdm
2016-08-04 20:22:00 +02:00
Yoshi Huang
7937ade983
Bug 1264231 - Part 3: remove loadInfo work-around. r=sicking
2016-08-05 19:44:57 +08:00
Chris Peterson
6c0f810682
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Daniel Holbert
d48e7feafc
Bug 1282670, part 3: Make several imagelib .cpp files #inclue their corresponding .h file as their very first #include, per Gecko convention. r=seth
...
(In some cases, I've left "ImageLogging.h" being included before the corresponding .h file, because I ran across a warning comment saying that it needs to be included before any IPDL-generated files & anything that includes prlog.h; and it seems possible that Foo.cpp's corresponding Foo.h file could include such headers now or in the future.)
MozReview-Commit-ID: HPvUVj8YuKc
2016-06-30 10:27:03 -07:00
Daniel Holbert
d5653afeea
Bug 1282670, part 2: Remove unnecessary/redundant string-related #include & "using" declarations in imagelib. r=seth
...
MozReview-Commit-ID: 1hgnUosiOFU
2016-06-30 10:25:35 -07:00
Christoph Kerschbaumer
d5670ccb25
Bug 1274170 - Remove unnecessary includes of nsCorsListenerProxy. r=jkingston
2016-06-21 12:54:03 +02:00
Thomas Nguyen
95d5e9b396
Bug 1223838 - Fix wrong policy associated with empty string. r=fkiefer,hsivonen
...
MozReview-Commit-ID: 7kFH39cegmH
2016-05-30 15:17:45 +08:00
Jonathan Hao
cc18311684
Bug 1280006 - Backout "Bug 1270680 - Part 1: Double-key the image cache by origin attribute." r=tanvi
...
This reverts commit bb0482fe09fbfad9be89384ec5cb8b6518187379.
2016-06-14 12:43:21 +01:00
Jonathan Hao
ec84988870
Bug 1280006 - Backout "Bug 1270680 - Part 3 - Get origin attributes from loadInfo in LoadImageWithChannel()." r=tanvi
...
This reverts commit 8ef7edb6a790df9128558e6eb520701f4fc600a0.
2016-06-14 12:43:14 +01:00
Blake Kaplan
37317cd21c
Bug 1274516 - Add a helper to iterate over all ContentParents and use it to clear the image cache in both the parent and child processes. r=billm r=seth
2016-06-10 16:00:22 -07:00
Jonathan Hao
317ff2eac8
Bug 1270680 - Part 3 - Get origin attributes from loadInfo in LoadImageWithChannel(). r=tanvi
2016-06-02 20:50:00 +02:00
Jonathan Hao
9e1494388d
Bug 1270680 - Part 1: Double-key the image cache by origin attribute. r=jdm,seth
2016-06-01 23:07:00 +02:00
Jonathan Watt
29b7b0d8c3
Bug 1275266 - Rename imgLoader::Singleton and imgLoader::PBSingleton to something less misleading, and document them. r=tnikkel
2016-05-19 13:31:15 +01:00
Jonathan Watt
71b02a10b0
Bug 1275229 - Stop using do_CreateInstance("@mozilla.org/image/loader;1") to create gecko internal imgLoader instances. r=tikkel
2016-05-19 13:31:15 +01:00
Jonathan Watt
7f4af30d23
Bug 1274881 - Get rid of imgLoader::GetInstance. r=tnikkel
2016-05-18 10:19:19 +01:00
Christoph Kerschbaumer
d3cb477cd4
Bug 1206961 - Use channel->AsyncOpen2() in image/imgLoader.cpp; removing security checks from the callsite reveals that we have to pass the accurate contentPolicyType to ValidateEntry (r=seth,bz)
2016-04-27 19:40:56 +02:00
Kris Maglione
3531a8e293
Bug 1261231: Fix shutdown leak in imgLoader::GetInstance. r=gabor
...
MozReview-Commit-ID: K3kQrva1mG7
2016-03-31 16:26:38 -07:00
Dragana Damjanovic
1080454580
Bug 1125916 - Fix code that miss proper flags and originAttributes in LoadInfo. Also fix some tests. r=sicking, r=jduell
2016-04-13 15:34:36 +02:00
Christoph Kerschbaumer
6767081426
Bug 1256999 - Use nsIDocument for ImageCacheKey. r=bz r=seth
2016-04-11 11:00:03 +02:00
Christoph Kerschbaumer
8ffee19dd7
Bug 1256999 - Pass the right context to new channels for image loads. r=bz r=seth
2016-04-11 10:58:03 +02:00
Timothy Nikkel
f257eeb055
Bug 1260247. In chaos mode randomly decide to start a new image load even if the image is in the image cache when allowed by spec. r=seth
...
If the image load is from the same document that cached the image we are required to use the cached version. Otherwise we should be free to ignore the cached version.
2016-04-02 13:53:12 -05:00
Birunthan Mohanathas
bfee0fb40c
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d871b9515f
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
245cd6a02f
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
sajitk
be6729e98a
Bug 1219474 - Replace PRLogModuleInfo w/ LazyLogModule in the 'image/' directory. r=seth
2015-11-16 18:21:00 +01:00
Nathan Froyd
947ea1b4a4
Bug 1217571 - fix the imagelib cache to work in e10s; r=seth
...
nsICachingChannel isn't available in the child process; we have to use
nsICacheInfoChannel instead.
2015-11-12 15:09:52 -05:00
Sotaro Ikeda
e3957d6ea0
Bug 1186796 - Replace nsBaseHashtable::EnumerateRead() calls in image/ with iterators r=njn
2015-11-10 23:07:09 -08:00
Sotaro Ikeda
3859b0b06f
Bug 1187149 - Replace nsBaseHashtable::Enumerate() calls in image/ with iterators r=njn
2015-11-10 21:30:02 -08:00
Ehsan Akhgari
b7a8f34e2a
Bug 1202085 - Part 6: Clear the entries in the image cache belonging to a controlled document when it gets destroyed; r=seth
2015-10-30 16:03:13 -04:00