Commit Graph

  • 7766bb197a Edit comment. Brent Simmons 2026-10-31 15:42:18 -07:00
  • 7fa826d5ff Stop removing folders which existed only during development builds. Brent Simmons 2026-10-31 15:41:01 -07:00
  • 43f885e5a0 Return URL strings from HTMLImageParser and delete HTMLImage, which was unused outside tests. Brent Simmons 2026-10-31 15:36:24 -07:00
  • e7a353b374 Run image removal passes less often. Brent Simmons 2026-10-31 15:31:46 -07:00
  • 008f600ea1 Log only failed thumbnail downloads, so scrolling doesn’t push sync and refresh entries out of the activity log. Brent Simmons 2026-10-31 14:43:50 -07:00
  • d481a93bd9 Read and save the scaled copy for favicons, so they aren’t rescaled from the original each time. Brent Simmons 2026-10-31 14:41:33 -07:00
  • 41094a63bf Remove the scaled icon as soon as its image changes, before posting the change notification, so nothing reads the old copy. Brent Simmons 2026-10-31 14:39:35 -07:00
  • dc1f3ce86e Skip saving a scaled icon when it’s identical to the original, so small icons and SVGs aren’t stored twice. Brent Simmons 2026-10-31 14:37:44 -07:00
  • 158bcec9dd Treat a failed image write as a transient failure, so a full disk doesn’t record the image and download it again on each use. Brent Simmons 2026-10-31 14:35:29 -07:00
  • 4dbb2488e0 Skip deleting images when the image records can’t be read, so a failed database read doesn’t delete every image. Brent Simmons 2026-10-31 14:33:49 -07:00
  • 73ca3b4b44 Skip deleting images when images folder can’t have its files listed, so a failed listing doesn’t delete every record and file. Brent Simmons 2026-10-31 14:32:20 -07:00
  • 6acb373d2f Stop recording “no favicon” for five days after a transient failure. Brent Simmons 2026-10-31 14:29:58 -07:00
  • e7063cf68b Use row map when thumbnail download fails — avoid scanning every article in every timeline. Brent Simmons 2026-10-31 12:06:10 -07:00
  • c2fe18475a Reload all timeline cells on iOS when feed icons setting changes, so row heights get recalculated. Brent Simmons 2026-10-31 12:04:40 -07:00
  • 0c7e630db7 Check provided thumbnail candidates one at a time, so attachments aren’t iterated when an earlier candidate is usable. Brent Simmons 2026-10-31 12:03:30 -07:00
  • 8721ecabf9 Request only rows that are new to the lookahead when prefetching thumbnails on Mac so scrolling doesn’t request the same rows again for each row. Brent Simmons 2026-10-31 12:01:17 -07:00
  • f41d3d2ac7 Set only the image on the cell so each download doesn’t rebuild the whole cell. Brent Simmons 2026-10-31 11:57:36 -07:00
  • 210474f6ac Parse, save, post HTML thumbnail URLs in batches of 100. Brent Simmons 2026-10-31 11:56:03 -07:00
  • b00dce516d Skip images hidden by hidden attribute or style none. Trying to avoid tracking pixels as thumbnails. Brent Simmons 2026-10-31 11:53:30 -07:00
  • 8955619c40 Stop rejecting photos with "track" or "open" in name since they could be legitimate. Brent Simmons 2026-10-31 11:50:41 -07:00
  • f70d5e0e38 Preserver waits from a Retry-After after network status changes. Brent Simmons 2026-10-31 11:48:41 -07:00
  • 0313bd5b5d Limit thumbnail downloads to two per host, so a slow host can’t block everything else. Brent Simmons 2026-10-31 11:47:00 -07:00
  • 15a43c3350 Fix srcset parser bug. Brent Simmons 2026-10-31 11:42:12 -07:00
  • fcd5d295bd Choose narrowest srcset candidate at least 1200 px wide instead of the largest candidate, to cut down on bandwidth use. Brent Simmons 2026-10-31 11:39:53 -07:00
  • 1b6b3b072f Skip icon update checks when network doesn’t allow downloads or retry wait is running. Brent Simmons 2026-10-31 11:36:40 -07:00
  • a7a1c43e7b Combine htmlThumbnailURLs and articleIDsWithNoHTMLThumbnail into single dictionary. Empty array means HTML has no thumbnail. Brent Simmons 2026-10-31 11:10:26 -07:00
  • 6f35025569 Remove code that has been replaced by findThumbnailURLs. Brent Simmons 2026-10-31 11:08:47 -07:00
  • 1302f57d3e Use findThumbnailURLs. Brent Simmons 2026-10-31 11:03:47 -07:00
  • 70b1eb70f0 Add findThumbnailURLs which loads thumbnail URLs and parses the reset. Simplifies things for callers. Brent Simmons 2026-10-31 11:01:33 -07:00
  • c0941f6db0 Load saved thumbnail URLs in small mode on Mac so titles don’t rewrap after timeline opens. Brent Simmons 2026-10-31 10:58:18 -07:00
  • 880b3e213a Decode large thumbnails to displayed height, which makes them smaller, which means more can fit in the image cache. Brent Simmons 2026-10-31 10:56:51 -07:00
  • c9a3c32586 Skip image URLs that returned something other than an image. Brent Simmons 2026-10-31 10:52:22 -07:00
  • defd3db2b2 Fall back to home page icon when feed icon URL returns something other than an image. Fixes #5376. Brent Simmons 2026-10-31 10:50:20 -07:00
  • 3735f095fc Stop retrying image URLs that return something other than an image until network status changes, so a bad URL isn’t retried every session. Brent Simmons 2026-10-31 10:47:35 -07:00
  • d404b3b8da Update cells about to be displayed, so thumbnail that arrives after the cell was prepared doesn’t leave the row gray. Brent Simmons 2026-10-31 10:43:14 -07:00
  • 2aeb9e3d8b Empty chosen thumbnail URLs cache on low memory. Brent Simmons 2026-10-31 10:40:19 -07:00
  • eb22462a06 Store articles image fields rather than entire articles in ArticleThumbnailFinder. Brent Simmons 2026-10-31 10:38:20 -07:00
  • c655a0d659 Check retry waits and network status when queued image download’s turn is up, so those requests don’t go to a host that just asked for a wait. Brent Simmons 2026-10-31 10:32:29 -07:00
  • ec803f9f76 Start hosts’s retry wait for 429, 503, or no response, so that other failures don’t apply to the host. Brent Simmons 2026-10-31 10:28:15 -07:00
  • 103cfd2a08 Double image retry wait after previous wait ends, so a bunch of failures in a row doesn’t double it to the max in a few seconds. Brent Simmons 2026-10-31 10:24:51 -07:00
  • aa900631ae Find thumbnails in data-lazy-srcset, data-srcset, and data-original. Brent Simmons 2026-10-30 22:30:13 -07:00
  • 65962b8cf4 Move row to next thumbnail source when image URL returns something that isn’t an actual image. Brent Simmons 2026-10-30 22:28:38 -07:00
  • 6d6b3f3123 Test that the largest frame of an image file is decoded. Brent Simmons 2026-10-30 22:09:53 -07:00
  • 2c56df2373 Test that a failed provided image falls back to a thumbnail found in HTML. Brent Simmons 2026-10-30 22:07:58 -07:00
  • 521f00be18 Test that an image without validators waits longest between checks. Brent Simmons 2026-10-30 22:05:49 -07:00
  • 73983d1707 Add test for saving images and checking thumbnail suitability. Brent Simmons 2026-10-30 22:04:00 -07:00
  • 3a4bac109e Add test for counting HTTP status codes as transient. Brent Simmons 2026-10-30 22:01:10 -07:00
  • 25e94de5c5 Test that relative image URL is skipped when baseURL is nil. Brent Simmons 2026-10-30 21:56:30 -07:00
  • b6fde3038d Wait for tasks to be queued in ThumbnailTaskQueueTests instead of relying on Task.yield. Brent Simmons 2026-10-30 21:55:10 -07:00
  • ff8c16536a Stop allocating an array. Brent Simmons 2026-10-30 21:52:41 -07:00
  • dcc94fa185 Check for data: URLs without copying the entire value (which could be huge). Brent Simmons 2026-10-30 21:43:12 -07:00
  • 6d5d3c27a1 Pass HTML and URL to HTMLImageParser. Brent Simmons 2026-10-30 21:41:57 -07:00
  • 6a21487b00 Use just one tag name comparison function. Brent Simmons 2026-10-30 21:39:48 -07:00
  • 1759eebd55 Remove now-unused three-day image cache flush. Brent Simmons 2026-10-30 21:36:01 -07:00
  • 8b6328deed Remove superfluous purgeImageCachesForResizingIfNeeded. Brent Simmons 2026-10-30 21:34:01 -07:00
  • 3b368771be Remove unused JPEG format support. Brent Simmons 2026-10-30 21:31:55 -07:00
  • 8239e7af20 Record decode failures but not download failures (since DownloadedImageCache does that). Brent Simmons 2026-10-30 21:30:24 -07:00
  • a7b3ffb815 Observe timelineThumbnailsDisplayDidChange notification. Brent Simmons 2026-10-30 21:27:16 -07:00
  • e3b5cd5d9e Use Use TimelineThumbnailsDisplay.thumbnailMode. Brent Simmons 2026-10-30 21:25:04 -07:00
  • e25987550a Rename isGravatarAvatar to isGravatar. Brent Simmons 2026-10-30 21:20:46 -07:00
  • 88104fb412 Pass parsed URL to isGravatarAvatar instead of URL string which then has to be parsed. Brent Simmons 2026-10-30 18:19:06 -07:00
  • 21543b9ee0 Filter provided thumbnail URLs only, since URLs found in HTML were previously filtered. Brent Simmons 2026-10-30 18:15:27 -07:00
  • 63b3078231 Figure out which images to remove in background. Brent Simmons 2026-10-30 18:09:00 -07:00
  • 187e01ef63 Use rawValue. Brent Simmons 2026-10-30 18:06:26 -07:00
  • 8119738499 Use UICollectionViewDataSourcePrefetching to prefetch iOS timeline thumbnails. Brent Simmons 2026-10-30 18:05:16 -07:00
  • 559ac33a17 Prefetch thumbnails in the scrolling direction in the timeline. Brent Simmons 2026-10-30 17:55:13 -07:00
  • 3da931b856 Find HTML images before updating rows when a timeline thumbnail fails. Brent Simmons 2026-10-30 17:49:52 -07:00
  • 262c8f16dc Decode thumbnail images a few at a time. Brent Simmons 2026-10-30 17:46:21 -07:00
  • c9b4782433 Rename DownloadLimiter to ThumbnailTaskQueue now that it’s about more than just downloading. Brent Simmons 2026-10-30 17:38:34 -07:00
  • 6e9996b182 Set the thumbnail on existing cell data. Brent Simmons 2026-10-30 17:31:37 -07:00
  • f19b70fda5 Update visible cells directly when a thumbnail arrives. Brent Simmons 2026-10-30 17:26:17 -07:00
  • 6489ad278d Reconfigure rather than reload cells in iOS timeline. Brent Simmons 2026-10-30 17:24:34 -07:00
  • d823ef56e9 Reload all rows in iOS timeline when thumbnail display changes. Brent Simmons 2026-10-30 17:22:56 -07:00
  • 3d6a4fc4d7 Load saved thumbnail URLs before applying changes to the timeline. Brent Simmons 2026-10-30 17:19:29 -07:00
  • b17bb24a67 Load saved thumbnail URLs before laying out rows for large icons. Brent Simmons 2026-10-30 17:17:48 -07:00
  • a99fd2e5df Add ArticleThumbnailFinder.loadSavedThumbnailURLs. Brent Simmons 2026-10-30 17:16:21 -07:00
  • 3d9fe5da3c Note row height changes only for rows that gained or lost a thumbnail. Brent Simmons 2026-10-30 17:09:30 -07:00
  • 6caac10700 Remove unused key from userInfo. Brent Simmons 2026-10-30 17:06:57 -07:00
  • 837406d14f Use ArticleThumbnailFinder chosen thumbnail URLs. Brent Simmons 2026-10-30 17:05:19 -07:00
  • 41c29a51a1 Use ArticleThumbnailFinder chosen thumbnail URLs. Brent Simmons 2026-10-30 17:04:06 -07:00
  • 7125510fa0 Save chosen thumbnail URL for each article. Brent Simmons 2026-10-30 12:00:32 -07:00
  • 60640b235e Use timeline copy in iOS image viewer only if correctly signed. Brent Simmons 2026-10-29 12:30:00 -07:00
  • 814e7d0d89 Sign locally-routed images so feed content and scripts can’t abuse the custom scheme handler. Brent Simmons 2026-10-29 12:23:50 -07:00
  • a645f256ff Delete database rows for HTML-found thumbnail URLs eventually. Brent Simmons 2026-10-29 12:15:18 -07:00
  • e9ec348172 Cap readDatesNoted at 10,000 URLs. Brent Simmons 2026-10-29 11:53:18 -07:00
  • 0901df57bb Delete old image cache folders in background. Brent Simmons 2026-10-29 11:16:42 -07:00
  • a9f94727b6 Save scaled icons on disk to they’re aren’t rescaled from original all the time. Brent Simmons 2026-10-29 11:14:52 -07:00
  • 99b33647e7 Add support for scaled icons on disk. Brent Simmons 2026-10-29 11:13:17 -07:00
  • 1179c33536 Use memory-mapped cached image files. Brent Simmons 2026-10-29 11:05:56 -07:00
  • 93eb48d44d Save memory by cutting the decoded thumbnail cache limit from 128MB to 64MB on iOS. Brent Simmons 2026-10-29 11:04:04 -07:00
  • f28d6041b9 Save memory by decoding small thumbnails at 256 instead of 512, which is big enough for the 76pt size at 3x. Brent Simmons 2026-10-29 11:02:32 -07:00
  • ef49feed8b Remove lock since writes are atomic. Brent Simmons 2026-10-29 11:00:40 -07:00
  • af2d55a194 Note when image was used so icons in use aren’t the first removed. Brent Simmons 2026-10-29 10:58:43 -07:00
  • 736ba28c8e Avoid saving or overwriting an image with something not an image (a captive portal login page, for instance). Brent Simmons 2026-10-29 10:29:03 -07:00
  • 377531b40c Reject images with tracking names. Brent Simmons 2026-10-29 10:06:53 -07:00
  • 308963bd66 Avoid prefetching timeline thumbnails on expensive networks or in Low Power Mode. Brent Simmons 2026-10-29 09:58:21 -07:00
  • a70f436842 Reject timeline images over a certain large size. Brent Simmons 2026-10-29 09:49:39 -07:00
  • 264911cabb Add jitter to check interval so they don’t clump (and are therefore kinder to servers). Brent Simmons 2026-10-29 09:34:38 -07:00
  • edd83c59d0 Wait before requesting anything more from a host after a transient failure. Honor Retry-After in seconds. Brent Simmons 2026-10-29 09:31:54 -07:00
  • b13d2f9d5d Treat 408 and 429 as transient so they’re retried appropriately instead of waiting five days. Brent Simmons 2026-10-29 09:27:58 -07:00