Commit Graph
175 Commits
Author SHA1 Message Date
Brent Simmons d404cf18a3 Log thumbnail downloading always (not just on error). Include feed name in log entries. 2026-11-15 20:59:37 -08:00
Brent Simmons e85d49b352 Fixed bug with fullscreen articles on iOS where going back to timeline would make the app would forget that you were in fullscreen mode. 2026-11-15 20:43:05 -08:00
Brent Simmons 24a5bd9642 Make arrow key navigation work from timeline to article view and back. Make up and down arrow keys scroll in article view. Fixes #5538. 2026-11-12 10:37:19 -08:00
Brent Simmons b528ad3d5f Update visible icons when grayscale icons setting changes. 2026-11-09 09:14:20 -08:00
Brent Simmons c2003b65c9 Make guard formatting conform to house style. Simplify viewWillTransition comment. 2026-11-04 10:57:16 -08:00
Brent Simmons 00590c8bb4 Record scroll position after restoring anchor, so rotation doesn’t leave stale windowScrollY. 2026-11-04 10:52:39 -08:00
Brent Simmons 0bd3841c48 Move scroll anchor JavaScript script from WebViewController to main.js. 2026-11-04 10:42:17 -08:00
Brent Simmons 169139101d Merge pull request #5507 from dave-atx/fix-article-scroll-position-on-rotation
Keep the reader's place in an article across a rotation
2026-11-04 09:57:37 -08:00
Dave Marquard fc2a39f5ff Keep the reader's place in an article across a rotation
The recorded scroll position is window.scrollY, an absolute pixel offset
baked into the rendered page. Rotating reflows the article at a new width,
so that offset points somewhere else. The web view also scrolls on its own
during the transition, overwriting the stored position before anything can
restore it.

Record the element at the top of the viewport along with its offset, stop
recording while the view changes size, and scroll back to that element once
the transition ends.

Verified on an iPhone Duo. The same loss happens on iPad, which is where I
first noticed it.

Written with help from Claude Code.
2026-11-03 14:02:00 -08:00
Brent Simmons 9bc39f5172 Split ThumbnailDownloader out from ArticleThumbnailFinder. 2026-11-03 13:40:27 -08:00
Brent Simmons dc27b508b3 Make IconImageCache the source of icon notifications. 2026-11-03 11:53:31 -08:00
Brent Simmons 966641c723 Remove SingleFaviconDownloader. 2026-11-03 11:36:06 -08:00
Brent Simmons ab921e0885 Reload article view icon only if it’s for the articles feed icon, favicon, or authors. 2026-11-02 16:54:53 -08:00
Brent Simmons 60640b235e Use timeline copy in iOS image viewer only if correctly signed. 2026-10-29 12:30:00 -07:00
Brent Simmons f5b5f28ff2 Add routesThumbnailImages so that only webviews get the local image cache URL scheme. 2026-10-28 10:09:49 -07:00
Brent Simmons 640878163e Open image in image viewer from local copy. 2026-10-27 14:29:05 -07:00
Brent Simmons 2ce850441b Make AppDefaults an enum instead of singleton class. 2026-10-22 13:46:32 -07:00
Brent Simmons c5b524b5ea Create and use a new ArticlePreviewViewController for contextual menu preview since it doesn’t have the side effects of WebViewController. 2026-10-21 21:57:51 -07:00
Stuart Breckenridge ea9adedb50 Merge branch 'experiments/posh-previews' 2026-10-14 20:49:50 +08:00
Brent Simmons 3756e7fc75 Fix crashing bug (concurrency) observing UserDefaults did change notifications. 2026-09-18 17:23:50 -07:00
Brent Simmons 29b7bcb04c Enable/disable JavaScript per navigation instead of rebuilding web views. 2026-09-18 13:53:59 -07:00
Brent Simmons 8b8d8cec5f Disable JavaScript for Slashdot, no matter what user setting says. See <https://discourse.netnewswire.com/t/dickover-in-the-slashdot-rss-feed/372> 2026-09-18 13:45:34 -07:00
Brent Simmons 9843bdb779 Rebuild web views on changing JavaScript-enabled setting. 2026-09-17 17:16:38 -07:00
Brent Simmons 3da877e99d Fix the Reader View button sometimes disappearing from the article toolbar by re-syncing its state whenever the current article page changes and by ignoring stale extractor callbacks. 2026-08-08 10:40:01 -07:00
Brent Simmons d1829e4983 Set userInterfaceStyle on SFSafariViewController in hopes of mitigating the flash of white that can happen when in dark mode. Fixes #5383. 2026-08-05 09:32:59 -07:00
Brent Simmons b5278c58a9 Exit element fullscreen before re-rendering or tearing down the article web view. Fixes #5382. 2026-08-04 11:49:57 -07:00
Brent Simmons 4795efbed4 Ignore late scroll position callbacks that arrive after the article has changed. 2026-08-03 09:30:45 -07:00
Brent Simmons 4021fb3639 Fix bug where reader view articles could open scrolled to the middle instead of the top. Fixes #5243. 2026-08-03 09:27:27 -07:00
Brent Simmons 276fcab290 Don't open a browser when WebKit reports a tap on an embedded video's controls as a link activation targeting the media source. Fixes #3788. 2026-08-02 17:22:27 -07:00
Brent Simmons 8cce44d768 Cancel the pending image download when web view activity stops, so a late completion can't present the image viewer. 2026-08-02 16:59:39 -07:00
Brent Simmons bec611c1fc Fix blank UI after dismissing a full-screen image. Fixes #3641. 2026-08-02 16:57:28 -07:00
Brent Simmons 75755af700 Use browser agent UA for image and theme downloads. Fixes #4868. 2026-07-29 10:17:31 -07:00
Brent Simmons 166b60b59f Hand off the web page instead of the article while the in-app browser is open. Fixes #5369. 2026-07-29 08:54:55 -07:00
Brent Simmons e99f23d07e Recover from WebKit content-process termination — refresh the preloaded web view pool on foreground, and never render into a web view whose process died. Fixes #5310. 2026-07-26 11:29:04 -07:00
Brent Simmons 7ed23bde76 Use SF Symbols instead of custom icons for the reader view icon. 2026-07-08 09:52:23 -07:00
Brent Simmons 4d9a6407f4 Get unread count from AccountManager rather than AppDelegate. Also: fix bug where next unread button would be enabled when there is just one unread article and it's the current article. Fixes #5008. 2026-07-07 10:57:38 -07:00
Brent Simmons 1665d2a055 Revert fragile content loading monitoring. 2026-07-06 10:19:35 -07:00
Brent Simmons f6b8c18f48 Prevent JavaScript from navigating to another page. Fixes #4150. 2026-07-06 08:52:25 -07:00
Brent Simmons 85c000aad3 Add and use DownloadResponse. Note in activity log when a download was returned from the cache. 2026-06-18 09:08:02 -07:00
Brent Simmons fb05b944cf Regularize comments for localized strings so the Localizable.xcstrings file doesn't change just because we switched targets. 2026-06-06 14:43:31 -07:00
Brent Simmons 973b79a1fc Move images code to new Images module. 2026-05-29 10:46:00 -07:00
Brent Simmons 5bdfde3876 Dismiss share sheet on going to background so it doesn’t get stuck. Fixes #4269. 2026-05-27 13:27:50 -07:00
Brent Simmons 1818caecdd Fix bug, introduced in previous beta, where the bottom of the article view could get funky and low-res. Use the proper scroll effect API. 2026-05-23 22:25:49 -07:00
Brent Simmons 83a18dea94 Hide and show the scroll edge effect view to fix a bug with it obscuring the bottom of the fullscreen article view. Fixes #5298. 2026-05-21 12:23:32 -07:00
Brent Simmons dc7da4397f Revert showBars() fullscreen guard — was breaking toolbar visibility on state restoration. 2026-05-20 14:20:33 -07:00
Brent Simmons 474d881b31 Fix a WebKit crash with fullscreen content. 2026-05-20 10:37:18 -07:00
Brent Simmons c9d54214e3 Guard WebViewController.showBars() against running when bars aren't hidden. 2026-05-18 16:50:43 -07:00
Brent Simmons a8885d0444 Fix iOS crash on article disappear: don't animate showBars() in viewWillDisappear. 2026-05-18 16:24:30 -07:00
Stuart Breckenridge d44d20b20d 🐛 Fix full-screen article view
Remove the split view collapse check from the full-screen availability
condition and drop the trait collection transition override that forced
bars to appear on rotation. Fixes #5145.
2026-04-16 21:06:44 +08:00
Brent Simmons e96aa92fdb Fix bug hiding the space for the toolbar when in fullscreen. Fixes #5234. 2026-04-12 11:59:53 -07:00