Chris Peterson
6137e4ff8b
Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
...
MozReview-Commit-ID: CrkIP4iHP1U
2017-09-03 22:14:11 -07:00
Kershaw Chang
c4c64cf6ee
Bug 1247843 - Part 3: Set request context ID to the http channel created in imgLoader::LoadImage. r=baku
...
In order to let necko postpone the load of favicon, we have to set request context ID to the http channel that is created to load favicon.
This patch starts with passing a request context ID to nsContentUtils::LoadImage and makes other necessary changes to set the request context ID to the channel.
2017-09-20 20:09:00 -04:00
Ben Kelly
9cdcab780f
Bug 1397304 Avoid searching the image cache queue for an entry after we just popped it off the queue. r=tnikkel
2017-09-06 13:12:05 -07:00
Ben Kelly
c8e2128d69
Bug 1396982 Make imageCacheQueue use nsTArray instead of std::vector. r=tnikkel
2017-09-05 16:20:18 -07:00
Ben Kelly
00b37e616f
Bug 1396870 P2 Avoid dirtying when removing front entry or when the queue is empty. r=tnikkel
2017-09-05 16:20:18 -07:00
Ben Kelly
d655da9f47
Bug 1396870 P1 Avoid dirting the image cache queue when inserting a new item into a clean queue. r=tnikkel
2017-09-05 16:20:17 -07:00
Andrew Osmond
1c3d7acc55
Bug 1370412 - Part 9. Add factor of 2 state to the SurfaceCache memory reports. r=tnikkel
2017-09-05 07:58:46 -04:00
Andrew Osmond
b46801bb4b
Bug 1351869 - Part 2. Make imgCacheExpirationTracker use the system group for its expiration events. r=tnikkel
2017-08-14 20:23:16 -04:00
Nicholas Nethercote
09493fcbcf
Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
2017-07-31 14:28:48 +10:00
Nicholas Nethercote
59cb8e2717
Bug 1383982 (attempt 2) - Introduce a general mechanism for measuring memory usage of graph-like structures. r=erahm.
2017-07-28 20:10:04 +10:00
Sebastian Hengst
51534c6b52
Backed out changeset ef5feef07bed (bug 1384835)
2017-07-28 10:29:24 +02:00
Sebastian Hengst
e2be9a629c
Backed out changeset a57d8f30d1bf (bug 1383982) for build bustage at nsGlobalWindow.cpp:13826: 'class nsWindowSizes' has no member named 'mMallocSizeOf'. r=backout
2017-07-28 09:50:48 +02:00
Nicholas Nethercote
d50718f5d2
Bug 1383982 - Introduce a general mechanism for measuring memory usage of graph-like structures. r=erahm.
...
All the SizeOf{In,Ex}cludingThis() functions take a MallocSizeOf function
which measures memory blocks. This patch introduces a new type, SizeOfState,
which includes a MallocSizeOf function *and* a table of already-measured
pointers, called SeenPtrs. This gives us a general mechanism to measure
graph-like data structures, by recording which nodes have already been
measured. (This approach is used in a number of existing reporters, but not in
a uniform fashion.)
The patch also converts the window memory reporting to use SizeOfState in a lot
of places, all the way through to the measurement of Elements. This is a
precursor for bug 1383977 which will measure Stylo elements, which involve
Arcs.
The patch also converts the existing mAlreadyMeasuredOrphanTrees table in the
OrphanReporter to use the new mechanism.
2017-07-28 15:03:44 +10:00
Nicholas Nethercote
8846676f01
Bug 1384835 (part 3) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
...
This is similar like the previous patch, but for the 8-bit string variants.
Also, it changes assignment to Adopt() in GetCString() and GetDefaultCString()
to avoid an extra copy.
2017-07-27 16:45:10 +10:00
Andrew Osmond
6da77a8b33
Bug 1359833 - Part 4. imgLoader should pass down the loading document to the imgRequest. r=tnikkel
2017-07-19 14:15:11 -04:00
Andrew Osmond
a11dc5e381
Bug 1380341 - Fallback on the document's channel to check private browsing status if the load group has no load context. r=baku
2017-07-17 09:38:10 -04:00
Andrew McCreight
8b6424f039
Bug 1379786, part 4 - Use GetIsSystemPrincipal() method instead of going through secman in CHECK_PRINCIPAL_AND_DATA. r=mrbkap
...
MozReview-Commit-ID: INBsjjxbXZz
2017-07-10 15:00:03 -07:00
Yoshi Huang
7eb866e553
Bug 1267075 - Part 3: cancel imgRequestProxy if asyncOpen2 failed. r=tnikkel
...
The problem is if we found a cache hit, then we could go through
ValidateRequestWithNewChannel to validate the cache.
Then if the CSP check fail(asyncOpen2() will fail), then the
imgRequestProxy will remain there, and cause the timeout.
I run into problem when running mochitest
browser/base/content/test/general/browser_aboutHome.js in non-e10s mode.
In the beginning, browser.xul will load defaultFavicon.png, will create
an image cache there.
Next time when the test starts to run, when it loads about:home, then it
will try to load defaultFavicon.png, it will found an image cache hit
(loaded previously by browser.xul), and call
ValidateRequestWithNewChannel there, however the asyncOpen2 call failed,
and the imgRequestProxy is added to the loadGroup of about:home, and
never be notified until timeout.
2017-06-16 10:12:09 +08:00
Mats Palmgren
ce87bb3410
Bug 1371961 - Use nsRefPtrHashtable::Remove instead of Get + nsBaseHashtable::Remove to avoid unnecessary hashtable lookups. r=froydnj
...
MozReview-Commit-ID: 2TGVmqDo8YI
2017-06-14 01:54:26 +02:00
Timothy Nikkel
7ae19d6912
Bug 1342567. r=aosmond a=abillings
2017-05-30 14:49:26 -05:00
Timothy Nikkel
434dc4d839
Back out changesets from bug 1342567.
...
Backed out changeset 06d6f928ed64
* * *
Backed out changeset f577512b1a29
* * *
Backed out changeset 289645ac65c1
* * *
Backed out changeset 600f9d60d76f
* * *
Backed out changeset 445330fd1211
2017-05-17 16:17:23 -05:00
Timothy Nikkel
47a20f5a8b
Bug 1342567. r=aosmond a=abillings
2017-05-10 17:39:45 -05:00
Tom Tung
dc2648e8f2
Bug 1348050 - Part 3: Mark channel as urgent-start for loading image. r=baku,mayhemer
...
This part is mainly to mark the channel as urgent-start if src related
attributes in HTMLImageElement and HTMLInputElement is set and the channel is
open due to user interaction. Unfortunately, we cannot just check the event
state just after creating channel since some loading image tasks will be queue
and execute in stable state. Thus, I store the event state in elements and
pass it to the place where create the channel.
MozReview-Commit-ID: GBdAkPfVzsn
2017-04-25 09:17:38 +08:00
Timothy Nikkel
5108b146d8
Bug 1342567. r=aosmond a=abillings
2017-04-21 00:18:49 -05:00
Timothy Nikkel
ed416065e3
Bug 1342567. r=aosmond a=abillings
2017-04-21 00:18:46 -05:00
Timothy Nikkel
b19aa03617
Bug 1342567. r=aosmond a=abillings
2017-04-19 00:36:06 -05:00
Ehsan Akhgari
a3e4f5ce45
Backout change fb3c323635d6 (bug 1347400) because the telemetry probe didn't prove to be useful
2017-04-15 17:20:25 -04:00
Timothy Nikkel
dc5ddc6354
Bug 1342567. r=aosmond a=dveditz
2017-04-11 03:14:11 -05:00
Timothy Nikkel
ebe6656d55
Bug 1352408. Restore imgICache::RemoveEntry. r=ehsan
...
It was removed in bug 1202085 because there were no callers and changes made in that bug would have required it to be updated.
2017-04-11 03:14:09 -05:00
Eric Rahm
ed2943c7d3
Bug 943686 - Add imageLoader.cpp to unified sources. r=tn
...
MozReview-Commit-ID: G9sFOtbFYjP
2017-03-21 11:09:13 -07:00
Sebastian Hengst
5ca4ee6f9f
Backed out changeset 8c34803d1392 (bug 943686) for Windows bustage. r=backout
2017-03-20 23:00:43 +01:00
Eric Rahm
50c3bf5734
Bug 943686 - Add imageLoader.cpp to unified sources. r=tn
...
MozReview-Commit-ID: G9sFOtbFYjP
2017-03-20 14:28:40 -07:00
Ehsan Akhgari
2b185a29a4
Bug 1347400 - Add telemetry for imgLoader::LoadImage(); r=mystor,francois
2017-03-17 21:19:21 -04:00
Andrea Marchesini
313424057b
Bug 1345168 - Get rid of OriginAttributes::Inherit, r=tjr
2017-03-08 07:41:51 +01:00
Wei-Cheng Pan
90e3810db6
Bug 1310127 - Part 14: Use MOZ_MUST_USE in netwerk/protocol/http r=tnikkel
...
MozReview-Commit-ID: Gvv80wYQ7JI
2016-12-20 11:51:33 +08:00
Christoph Kerschbaumer
579df50b95
Bug 1314356: Do not reuse insecure chached image when upgrade-insecure-requests is present. r=dveditz
2017-03-02 14:08:19 +01:00
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