From 2a457b4c8f613feb7d5a24d5971036f2162bee47 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Tue, 3 Feb 2026 20:35:00 +0800 Subject: [PATCH 001/503] =?UTF-8?q?=E2=9C=A8=20Adds=20posh=20context=20men?= =?UTF-8?q?us?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/Article/WebViewController.swift | 2 +- .../MainTimelineModernViewController.swift | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/iOS/Article/WebViewController.swift b/iOS/Article/WebViewController.swift index cbca90d03..5552a3703 100644 --- a/iOS/Article/WebViewController.swift +++ b/iOS/Article/WebViewController.swift @@ -67,7 +67,7 @@ final class WebViewController: UIViewController { weak var coordinator: SceneCoordinator! weak var delegate: WebViewControllerDelegate? - private(set) var article: Article? + var article: Article? let scrollPositionQueue = CoalescingQueue(name: "Article Scroll Position", interval: 0.3, maxInterval: 0.3) var windowScrollY = 0 { diff --git a/iOS/MainTimeline/MainTimelineModernViewController.swift b/iOS/MainTimeline/MainTimelineModernViewController.swift index 33174ba6d..858c0e730 100644 --- a/iOS/MainTimeline/MainTimelineModernViewController.swift +++ b/iOS/MainTimeline/MainTimelineModernViewController.swift @@ -490,7 +490,14 @@ extension MainTimelineModernViewController: UICollectionViewDelegate { func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemsAt indexPaths: [IndexPath], point: CGPoint) -> UIContextMenuConfiguration? { guard let firstIndex = indexPaths.first, let dataSource, let article = dataSource.itemIdentifier(for: firstIndex) else { return nil } - return UIContextMenuConfiguration(identifier: firstIndex.row as NSCopying, previewProvider: nil, actionProvider: { [weak self] _ in + return UIContextMenuConfiguration(identifier: firstIndex.row as NSCopying, + previewProvider: { + let previewController = WebViewController() + previewController.coordinator = self.coordinator + previewController.article = article + return previewController + }, + actionProvider: { [weak self] _ in guard let self = self else { return nil } @@ -543,6 +550,15 @@ extension MainTimelineModernViewController: UICollectionViewDelegate { }) } + + func collectionView(_ collectionView: UICollectionView, willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration, animator: any UIContextMenuInteractionCommitAnimating) { + animator.addCompletion { [weak self] in + guard let indexRow = configuration.identifier as? Int, + let dataSource = self?.dataSource, + let article = dataSource.itemIdentifier(for: IndexPath(item: indexRow, section: 0)) else { return } + self?.coordinator?.selectArticle(article) + } + } func collectionView(_ collectionView: UICollectionView, contextMenuConfiguration configuration: UIContextMenuConfiguration, highlightPreviewForItemAt indexPath: IndexPath) -> UITargetedPreview? { guard let row = configuration.identifier as? Int, From 6432162e66ea66c376809a05d512efc203391437 Mon Sep 17 00:00:00 2001 From: Dan Berglund Date: Tue, 6 Oct 2026 10:17:42 +0200 Subject: [PATCH 002/503] fix: De-sanitize parts of FreshRSS sanitized HTML. This de-sanitizes HTML from FreshRSS, which allows inline footnotes to work properly. Initially I tried fixing this by adding workarounds in `newsfoot.js`, but I realized that we also use some CSS for the footnotes (notably to hide the backlink in the popover). Thus it seems like a reasonable solution to just de-sanitize the `id` and `class` attributes that we need. This can be tested by subscribing/reading an article through FreshRSS. Without this fix the footnotes will be "dumb" and just link out to Safari, and with the fix they will properly be shown inline. Here's two recent-ish articles with footnotes that can be tested: - https://daringfireball.net/2026/09/iphone_4_antennagate_q_and_a - https://www.seangoedecke.com/shipping-is-the-foundation/ Fixes: #5472 --- .../Article Rendering/ArticleRenderer.swift | 6 ++-- .../ArticleRenderingSpecialCases.swift | 9 ++++++ .../ArticleRenderingSpecialCasesTests.swift | 31 +++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/Shared/Article Rendering/ArticleRenderer.swift b/Shared/Article Rendering/ArticleRenderer.swift index ba859a4ed..7a94f0723 100644 --- a/Shared/Article Rendering/ArticleRenderer.swift +++ b/Shared/Article Rendering/ArticleRenderer.swift @@ -114,11 +114,13 @@ import Account // render just the body fragment. // if let content = extractedArticle?.content { - self.body = ArticleRenderingSpecialCases.extractBodyFragmentIfNeeded(content) + let body = ArticleRenderingSpecialCases.extractBodyFragmentIfNeeded(content) + self.body = ArticleRenderingSpecialCases.desanitizeFreshRSSContent(body) self.baseURL = extractedArticle?.url } else { let articleBody = ArticleRenderingSpecialCases.extractBodyFragmentIfNeeded(article?.body ?? "") - self.body = ArticleRenderingSpecialCases.insertParagraphTagsIfNeeded(articleBody, feedURLString: article?.feed?.url) + let withParagraphs = ArticleRenderingSpecialCases.insertParagraphTagsIfNeeded(articleBody, feedURLString: article?.feed?.url) + self.body = ArticleRenderingSpecialCases.desanitizeFreshRSSContent(withParagraphs) self.baseURL = article?.baseURL?.absoluteString } } diff --git a/Shared/Article Rendering/ArticleRenderingSpecialCases.swift b/Shared/Article Rendering/ArticleRenderingSpecialCases.swift index 1cce9a0cf..7a027a4a1 100644 --- a/Shared/Article Rendering/ArticleRenderingSpecialCases.swift +++ b/Shared/Article Rendering/ArticleRenderingSpecialCases.swift @@ -200,4 +200,13 @@ struct ArticleRenderingSpecialCases { return filteredHTML } + + /// De-sanitize some parts of the HTML that FreshRSS sanitized. + /// + /// Doing this allows inline footnotes to work, without it they are broken, since they rely on matching `id` and `class` attributes. + static func desanitizeFreshRSSContent(_ content: String) -> String { + content + .replacingOccurrences(of: "data-sanitized-class", with: "class") + .replacingOccurrences(of: "data-sanitized-id", with: "id") + } } diff --git a/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift b/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift index 319ff93ba..7276120ff 100644 --- a/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift +++ b/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift @@ -102,4 +102,35 @@ import Testing let hackadayLink = try #require(URL(string: "https://hackaday.com/2025/12/01/necroprinting-isnt-as-bad-as-it-sounds/")) #expect(ArticleRenderingSpecialCases.baseURLForRendering(hackadayLink) == hackadayLink) } + + // MARK: De-sanizite FreshRSS content + @Test( + "The sanitization happening in FreshRSS breaks inline footnotes, so we de-sanitize id and class attributes", + .bug("https://github.com/Ranchero-Software/NetNewsWire/issues/5472") + ) + func freshRSSContent_desanitizedIdAndClass(){ + let sanitized = """ +
+
  • +

    + This is the footnote content + Go back to content +

    +
  • +
    +""" + let expected = """ +
    +
  • +

    + This is the footnote content + Go back to content +

    +
  • +
    +""" + + #expect(ArticleRenderingSpecialCases.desanitizeFreshRSSContent(sanitized) == expected) + } + } From fc7416e10df4155707c2b2b96da8c082e7c8c46f Mon Sep 17 00:00:00 2001 From: Dan Berglund Date: Wed, 7 Oct 2026 08:49:50 +0200 Subject: [PATCH 003/503] Only match `data-sanitized-(id|class)` inside html tags --- .../ArticleRenderingSpecialCases.swift | 12 +++++++++--- .../ArticleRenderingSpecialCasesTests.swift | 6 +++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Shared/Article Rendering/ArticleRenderingSpecialCases.swift b/Shared/Article Rendering/ArticleRenderingSpecialCases.swift index 7a027a4a1..5410d673a 100644 --- a/Shared/Article Rendering/ArticleRenderingSpecialCases.swift +++ b/Shared/Article Rendering/ArticleRenderingSpecialCases.swift @@ -205,8 +205,14 @@ struct ArticleRenderingSpecialCases { /// /// Doing this allows inline footnotes to work, without it they are broken, since they rely on matching `id` and `class` attributes. static func desanitizeFreshRSSContent(_ content: String) -> String { - content - .replacingOccurrences(of: "data-sanitized-class", with: "class") - .replacingOccurrences(of: "data-sanitized-id", with: "id") + let classRegex = /(?'open'<.*)data-sanitized-class(?'close'.*>)/ + let idRegex = /(?'open'<.*)data-sanitized-id(?'close'.*>)/ + return content + .replacing(classRegex, with: { match in + match.output.open + "class" + match.output.close + }) + .replacing(idRegex, with: { match in + match.output.open + "id" + match.output.close + }) } } diff --git a/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift b/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift index 7276120ff..08bc4b845 100644 --- a/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift +++ b/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift @@ -108,12 +108,12 @@ import Testing "The sanitization happening in FreshRSS breaks inline footnotes, so we de-sanitize id and class attributes", .bug("https://github.com/Ranchero-Software/NetNewsWire/issues/5472") ) - func freshRSSContent_desanitizedIdAndClass(){ + func freshRSSContent_desanitizedIDAndClass(){ let sanitized = """
  • - This is the footnote content + This is the footnote content, about `data-sanitized-class`. Go back to content

  • @@ -123,7 +123,7 @@ import Testing
  • - This is the footnote content + This is the footnote content, about `data-sanitized-class`. Go back to content

  • From 6dc14b331d310b2d4dddb04c0daabeff60b6d6b0 Mon Sep 17 00:00:00 2001 From: Dan Berglund Date: Wed, 7 Oct 2026 08:58:54 +0200 Subject: [PATCH 004/503] Only do desanitization for articles from FreshRSS feeds --- Shared/Article Rendering/ArticleRenderer.swift | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Shared/Article Rendering/ArticleRenderer.swift b/Shared/Article Rendering/ArticleRenderer.swift index 7a94f0723..b2d4dad79 100644 --- a/Shared/Article Rendering/ArticleRenderer.swift +++ b/Shared/Article Rendering/ArticleRenderer.swift @@ -113,16 +113,19 @@ import Account // Some feeds embed a full HTML document as the article content — // render just the body fragment. // + var articleBody: String if let content = extractedArticle?.content { - let body = ArticleRenderingSpecialCases.extractBodyFragmentIfNeeded(content) - self.body = ArticleRenderingSpecialCases.desanitizeFreshRSSContent(body) + articleBody = ArticleRenderingSpecialCases.extractBodyFragmentIfNeeded(content) self.baseURL = extractedArticle?.url } else { - let articleBody = ArticleRenderingSpecialCases.extractBodyFragmentIfNeeded(article?.body ?? "") - let withParagraphs = ArticleRenderingSpecialCases.insertParagraphTagsIfNeeded(articleBody, feedURLString: article?.feed?.url) - self.body = ArticleRenderingSpecialCases.desanitizeFreshRSSContent(withParagraphs) + articleBody = ArticleRenderingSpecialCases.extractBodyFragmentIfNeeded(article?.body ?? "") + articleBody = ArticleRenderingSpecialCases.insertParagraphTagsIfNeeded(articleBody, feedURLString: article?.feed?.url) self.baseURL = article?.baseURL?.absoluteString } + if article?.account?.type == .freshRSS { + articleBody = ArticleRenderingSpecialCases.desanitizeFreshRSSContent(articleBody) + } + self.body = articleBody } // MARK: - API From bdf638ba304371dbfcb9ba127ef85732c3f7ff92 Mon Sep 17 00:00:00 2001 From: Dan Berglund Date: Thu, 8 Oct 2026 19:14:07 +0200 Subject: [PATCH 005/503] Improved regex, that's not greedy and only matches inside html tags --- Shared/Article Rendering/ArticleRenderingSpecialCases.swift | 4 ++-- .../NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Shared/Article Rendering/ArticleRenderingSpecialCases.swift b/Shared/Article Rendering/ArticleRenderingSpecialCases.swift index 5410d673a..7f4fdecda 100644 --- a/Shared/Article Rendering/ArticleRenderingSpecialCases.swift +++ b/Shared/Article Rendering/ArticleRenderingSpecialCases.swift @@ -205,8 +205,8 @@ struct ArticleRenderingSpecialCases { /// /// Doing this allows inline footnotes to work, without it they are broken, since they rely on matching `id` and `class` attributes. static func desanitizeFreshRSSContent(_ content: String) -> String { - let classRegex = /(?'open'<.*)data-sanitized-class(?'close'.*>)/ - let idRegex = /(?'open'<.*)data-sanitized-id(?'close'.*>)/ + let classRegex = /(?'open'<[^>]*?)data-sanitized-class(?'close'[^<]*?>)/ + let idRegex = /(?'open'<[^>]*?)data-sanitized-id(?'close'[^<]*?>)/ return content .replacing(classRegex, with: { match in match.output.open + "class" + match.output.close diff --git a/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift b/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift index 08bc4b845..ffa78bc00 100644 --- a/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift +++ b/Tests/NetNewsWireTests/ArticleRenderingSpecialCasesTests.swift @@ -117,6 +117,7 @@ import Testing Go back to content

    +
  • Another footnote, about `data-sanitized-id`.Go back to content

  • """ let expected = """ @@ -127,10 +128,10 @@ import Testing Go back to content

    +
  • Another footnote, about `data-sanitized-id`.Go back to content

  • """ #expect(ArticleRenderingSpecialCases.desanitizeFreshRSSContent(sanitized) == expected) } - } From fff6f1b4436d391af9d74c7a82b3d2483aeb9978 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 10 Oct 2026 08:54:37 -0700 Subject: [PATCH 006/503] Write release notes. Update versions. Update status. --- Technotes/ReleaseNotes-Mac.markdown | 14 ++++++++++++++ Technotes/ReleaseNotes-iOS.markdown | 19 +++++++++++++++++++ Technotes/Status.md | 8 ++++---- .../NetNewsWire_mac_target_common.xcconfig | 2 +- xcconfig/common/NetNewsWire_version.xcconfig | 2 +- 5 files changed, 39 insertions(+), 6 deletions(-) diff --git a/Technotes/ReleaseNotes-Mac.markdown b/Technotes/ReleaseNotes-Mac.markdown index 8eb9cd8b5..16d6ed61b 100644 --- a/Technotes/ReleaseNotes-Mac.markdown +++ b/Technotes/ReleaseNotes-Mac.markdown @@ -1,5 +1,19 @@ # Mac Release Notes +### 7.2b3 7220 10 Oct 2026 - branch: main tag: mac-7.2b3 + +Fixed the Settings layout on macOS 15 +Added Spanish translations for Settings and the Sort Articles By menu +Made each Settings pane size itself to fit, for languages that need more room +Fixed bug where the sidebar could reopen with no width when it had been collapsed in 7.1.x +Fixed a memory leak when closing a main window +Fixed a possible crash when the sidebar or timeline had no visible rows +Changed sorting by title and by feed to sort numbers by value — “Episode 2” comes before “Episode 10” +Improved finding feeds in a page by skipping links to X, Twitter, Facebook, and Instagram, and links to files with uppercase extensions or URL queries (such as .PDF or .jpg?w=600) +Fixed bug where some sites with “youtube” in their names were treated as YouTube +Fixed Slashdot feed detection (for Slashdot special cases) when the feed comes through a proxy such as FeedBurner +Changed VoiceOver to say “unread” for sidebar unread counts shown as dots + ### 7.2b2 7219 7 Oct 2026 - branch: main tag: mac-7.2b2 Added support for Substack-style footnotes diff --git a/Technotes/ReleaseNotes-iOS.markdown b/Technotes/ReleaseNotes-iOS.markdown index 7c2589212..ee4d97c27 100644 --- a/Technotes/ReleaseNotes-iOS.markdown +++ b/Technotes/ReleaseNotes-iOS.markdown @@ -1,5 +1,24 @@ # iOS Release Notes +### 7.2 build 7220 10 Oct 2026 - branch: main tag: iOS-7.2-7220 + +Fixed bug where Add Feed lost the typed URL and title after choosing a folder +Offered Update Credentials in the account error alert for all username and password accounts, not just Feedbin +Filled in the API URL when editing a FreshRSS account’s credentials +Removed a newly added account when its credentials can’t be saved to the keychain +Stopped account sheets from being swiped away while they’re working +Showed unavailable rows in Add Account and the Add Feed folder picker as disabled +Trimmed spaces from folder names when adding a folder +Fixed timeline text sometimes showing white on the gray selection background +Stopped the scroll animation when restoring the selection in the feeds list and timeline +Changed sort-by-feed to sort feed names with numbers by value — “Episode 2” comes before “Episode 10” +Improved finding feeds in a page by skipping links to X, Twitter, Facebook, and Instagram, and links to files with uppercase extensions or URL queries (such as .PDF or .jpg?w=600) +Fixed bug where some sites with “youtube” in their names were treated as YouTube +Fixed Slashdot feed detection (for Slashdot special cases) when the feed comes through a proxy such as FeedBurner +Changed VoiceOver to say “unread” for unread counts shown as dots +Added VoiceOver labels and values for the Settings pop-up buttons +Told VoiceOver which folder is selected in the Add Feed folder picker + ### 7.2 build 7218 6 Oct 2026 - branch: main tag: iOS-7.2-7218 Added unread count display setting — show the count, show a dot, or hide it — which applies to the app icon badge, feeds list, and widgets diff --git a/Technotes/Status.md b/Technotes/Status.md index 70c2a4551..667a7ec6c 100644 --- a/Technotes/Status.md +++ b/Technotes/Status.md @@ -8,13 +8,13 @@ https://github.com/Ranchero-Software/NetNewsWire/milestone/74 iOS shipping: 7.1.4 (7213) https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.1.3-7206 -iOS beta: 7.2 (7218) -https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.2-7218 +iOS beta: 7.2 (7220) +https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.2-7220 ## Mac Mac shipping: 7.1.5 https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.1.5 -Mac beta: 7.2b2 -https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.2b2 +Mac beta: 7.2b3 +https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.2b3 diff --git a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig index fa2578b8e..84592a721 100644 --- a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig +++ b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig @@ -1,7 +1,7 @@ #include "./NetNewsWire_version.xcconfig" // High Level Settings common to both the Mac application and any extensions we bundle with it -MARKETING_VERSION = 7.2b2 +MARKETING_VERSION = 7.2b3 APP_GROUP_ID = group.$(ORGANIZATION_IDENTIFIER).NetNewsWire-Evergreen$(APP_GROUP_SUFFIX) diff --git a/xcconfig/common/NetNewsWire_version.xcconfig b/xcconfig/common/NetNewsWire_version.xcconfig index 42acefeca..918aad311 100644 --- a/xcconfig/common/NetNewsWire_version.xcconfig +++ b/xcconfig/common/NetNewsWire_version.xcconfig @@ -1 +1 @@ -CURRENT_PROJECT_VERSION = 7219 +CURRENT_PROJECT_VERSION = 7220 From a8b932e4c65ed31c7a5a15b1522d1c0a068dd22b Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 10 Oct 2026 09:12:31 -0700 Subject: [PATCH 007/503] Update appcast. --- Appcasts/netnewswire-beta.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Appcasts/netnewswire-beta.xml b/Appcasts/netnewswire-beta.xml index 75962dda8..719910888 100644 --- a/Appcasts/netnewswire-beta.xml +++ b/Appcasts/netnewswire-beta.xml @@ -6,6 +6,31 @@ Most recent NetNewsWire changes with links to updates. en + + NetNewsWire 7.2b3 + View > Use Column Layout menu item. Also note the new setting for unread counts at the top of the General (first) settings tab. +

    +Changes since 7.2b2: +

      +
    • Fixed the Settings layout on macOS 15 +
    • Added Spanish translations for Settings and the Sort Articles By menu +
    • Made each Settings pane size itself to fit, for languages that need more room +
    • Fixed bug where the sidebar could reopen with no width when it had been collapsed in 7.1.x +
    • Fixed a memory leak when closing a main window +
    • Fixed a possible crash when the sidebar or timeline had no visible rows +
    • Changed sorting by title and by feed to sort numbers by value — “Episode 2” comes before “Episode 10” +
    • Improved finding feeds in a page by skipping links to X, Twitter, Facebook, and Instagram, and links to files with uppercase extensions or URL queries (such as .PDF or .jpg?w=600) +
    • Fixed bug where some sites with “youtube” in their names were treated as YouTube +
    • Fixed Slashdot feed detection (for Slashdot special cases) when the feed comes through a proxy such as FeedBurner +
    • Changed VoiceOver to say “unread” for sidebar unread counts shown as dots +
    + ]]>
    + Sat, 10 Oct 2026 09:05:00 -0700 + + 15.0 +
    + NetNewsWire 7.2b2 Date: Sat, 10 Oct 2026 10:23:56 -0700 Subject: [PATCH 008/503] Fix bug on iPad where fullscreen YouTube embeds would be black with audio only. --- Shared/Article Rendering/WebViewConfiguration.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Shared/Article Rendering/WebViewConfiguration.swift b/Shared/Article Rendering/WebViewConfiguration.swift index f2b3a9eb3..2ca27ed2c 100644 --- a/Shared/Article Rendering/WebViewConfiguration.swift +++ b/Shared/Article Rendering/WebViewConfiguration.swift @@ -127,7 +127,13 @@ private extension WebViewConfiguration { let preferences = WKPreferences() preferences.javaScriptCanOpenWindowsAutomatically = false preferences.minimumFontSize = 12 +#if os(iOS) + // With element fullscreen enabled, YouTube embeds go fullscreen on iPad as a black screen with audio only. + // Without it, they use video fullscreen like on iPhone. + preferences.isElementFullscreenEnabled = UIDevice.current.userInterfaceIdiom != .pad +#else preferences.isElementFullscreenEnabled = true +#endif return preferences } From cfa36a413a4f99cbb390ee5bd486123bc7da160f Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 10 Oct 2026 11:16:07 -0700 Subject: [PATCH 009/503] =?UTF-8?q?Keep=20inline=20aspect-ratio=20on=20ifr?= =?UTF-8?q?ames=20so=20embeds=20like=20Inoreader=E2=80=99s=20YouTube=20pla?= =?UTF-8?q?yer=20don=E2=80=99t=20collapse=20to=20150px=20tall.=20Fixes=20#?= =?UTF-8?q?5479.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shared/Article Rendering/main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Shared/Article Rendering/main.js b/Shared/Article Rendering/main.js index 73bbca4df..a670c402a 100644 --- a/Shared/Article Rendering/main.js +++ b/Shared/Article Rendering/main.js @@ -43,7 +43,11 @@ function stripStyles() { document.getElementsByTagName("body")[0].querySelectorAll("style, link[rel=stylesheet]").forEach(element => element.remove()); // Removing "background" and "font" will also remove properties that would be reflected in them, e.g., "background-color" and "font-family" // The stylesheet forces images to height: auto, so an author aspect-ratio box can't be filled by its image — content after the box overlaps the overflowing image. - document.getElementsByTagName("body")[0].querySelectorAll("[style]").forEach(element => stripStylesFromElement(element, ["color", "background", "font", "max-width", "max-height", "position", "aspect-ratio"])); + // Iframes keep their aspect-ratio: without it an iframe with no pixel height collapses to the default 150px. + document.getElementsByTagName("body")[0].querySelectorAll("[style]").forEach(element => { + const isIframe = element.tagName === "IFRAME"; + stripStylesFromElement(element, isIframe ? ["color", "background", "font", "max-width", "max-height", "position"] : ["color", "background", "font", "max-width", "max-height", "position", "aspect-ratio"]); + }); } // Constrain the height of iframes whose heights are defined relative to the document body to be at most From 68bda7487824060f9e48700ca850cf79683d4a01 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 11 Oct 2026 10:17:05 -0700 Subject: [PATCH 010/503] Write release notes. Update version. --- Technotes/ReleaseNotes-iOS.markdown | 5 +++++ xcconfig/common/NetNewsWire_version.xcconfig | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Technotes/ReleaseNotes-iOS.markdown b/Technotes/ReleaseNotes-iOS.markdown index ee4d97c27..8b11f6812 100644 --- a/Technotes/ReleaseNotes-iOS.markdown +++ b/Technotes/ReleaseNotes-iOS.markdown @@ -1,5 +1,10 @@ # iOS Release Notes +### 7.2 build 7221 11 Oct 2026 - branch: main tag: iOS-7.2-7221 + +Fixed bug on iPad where fullscreen YouTube videos were black with audio only +Fixed bug where embedded videos with no set height — such as Inoreader’s YouTube player — collapsed to a short strip + ### 7.2 build 7220 10 Oct 2026 - branch: main tag: iOS-7.2-7220 Fixed bug where Add Feed lost the typed URL and title after choosing a folder diff --git a/xcconfig/common/NetNewsWire_version.xcconfig b/xcconfig/common/NetNewsWire_version.xcconfig index 918aad311..9b252c3a6 100644 --- a/xcconfig/common/NetNewsWire_version.xcconfig +++ b/xcconfig/common/NetNewsWire_version.xcconfig @@ -1 +1 @@ -CURRENT_PROJECT_VERSION = 7220 +CURRENT_PROJECT_VERSION = 7221 From 06e7a29a1144d2ceacf08629b7885bcf4acb0c5a Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 11 Oct 2026 10:17:53 -0700 Subject: [PATCH 011/503] Update status. --- Technotes/Status.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Technotes/Status.md b/Technotes/Status.md index 667a7ec6c..1536e2ffa 100644 --- a/Technotes/Status.md +++ b/Technotes/Status.md @@ -8,8 +8,8 @@ https://github.com/Ranchero-Software/NetNewsWire/milestone/74 iOS shipping: 7.1.4 (7213) https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.1.3-7206 -iOS beta: 7.2 (7220) -https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.2-7220 +iOS beta: 7.2 (7221) +https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.2-7221 ## Mac From b7f4d8c7d273e4247c5d033ee47014805072297b Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 11 Oct 2026 10:34:04 -0700 Subject: [PATCH 012/503] Write release notes. Update version and status. --- Technotes/ReleaseNotes-Mac.markdown | 4 ++++ Technotes/Status.md | 4 ++-- xcconfig/common/NetNewsWire_mac_target_common.xcconfig | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Technotes/ReleaseNotes-Mac.markdown b/Technotes/ReleaseNotes-Mac.markdown index 16d6ed61b..d4e912262 100644 --- a/Technotes/ReleaseNotes-Mac.markdown +++ b/Technotes/ReleaseNotes-Mac.markdown @@ -1,5 +1,9 @@ # Mac Release Notes +### 7.2b4 7221 11 Oct 2026 - branch: main tag: mac-7.2b4 + +Fixed bug where embedded videos with no set height — such as Inoreader’s YouTube player — collapsed to a short strip + ### 7.2b3 7220 10 Oct 2026 - branch: main tag: mac-7.2b3 Fixed the Settings layout on macOS 15 diff --git a/Technotes/Status.md b/Technotes/Status.md index 1536e2ffa..0ca365da3 100644 --- a/Technotes/Status.md +++ b/Technotes/Status.md @@ -16,5 +16,5 @@ https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.2-7221 Mac shipping: 7.1.5 https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.1.5 -Mac beta: 7.2b3 -https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.2b3 +Mac beta: 7.2b4 +https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.2b4 diff --git a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig index 84592a721..19890883b 100644 --- a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig +++ b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig @@ -1,7 +1,7 @@ #include "./NetNewsWire_version.xcconfig" // High Level Settings common to both the Mac application and any extensions we bundle with it -MARKETING_VERSION = 7.2b3 +MARKETING_VERSION = 7.2b4 APP_GROUP_ID = group.$(ORGANIZATION_IDENTIFIER).NetNewsWire-Evergreen$(APP_GROUP_SUFFIX) From a3e61ddc5ab3c5b8fe49297cbaddb60b6201017f Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 11 Oct 2026 11:16:28 -0700 Subject: [PATCH 013/503] Update appcast. --- Appcasts/netnewswire-beta.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Appcasts/netnewswire-beta.xml b/Appcasts/netnewswire-beta.xml index 719910888..11f2badc8 100644 --- a/Appcasts/netnewswire-beta.xml +++ b/Appcasts/netnewswire-beta.xml @@ -6,6 +6,21 @@ Most recent NetNewsWire changes with links to updates. en + + NetNewsWire 7.2b4 + View > Use Column Layout menu item. Also note the new setting for unread counts at the top of the General (first) settings tab. +

    +Changes since 7.2b3: +

      +
    • Fixed bug where embedded videos with no set height — such as Inoreader’s YouTube player — collapsed to a short strip +
    + ]]>
    + Sun, 11 Oct 2026 11:10:00 -0700 + + 15.0 +
    + NetNewsWire 7.2b3 Date: Tue, 13 Oct 2026 15:40:34 -0700 Subject: [PATCH 014/503] Restore the status bar at the bottom of the window from NetNewsWire of Yore (1-3). --- Mac/AppDefaults.swift | 59 +++ Mac/AppDelegate.swift | 29 ++ Mac/MainMenu/Base.lproj/MainMenu.xib | 14 + Mac/MainMenu/mul.lproj/MainMenu.xcstrings | 24 + .../Detail/Base.lproj/DetailView.xib | 6 +- .../Detail/DetailContainerView.swift | 4 +- ...View.swift => DetailLinkOverlayView.swift} | 8 +- .../Detail/DetailViewController.swift | 38 +- Mac/MainWindow/MainWindowController.swift | 145 +++++- .../Sidebar/Base.lproj/SidebarView.xib | 3 +- ...arView.swift => SidebarProgressView.swift} | 29 +- ...idebarViewController+ContextualMenus.swift | 40 ++ .../Sidebar/SidebarViewController.swift | 9 + .../MainWindowContentViewController.swift | 88 ++++ .../StatusBar/MainWindowStatusBarView.swift | 473 ++++++++++++++++++ .../StatusBar/StatusBarGearButton.swift | 93 ++++ .../StatusBar/StatusBarSplitHandleView.swift | 35 ++ .../Contents.json | 0 Shared/Localizable.xcstrings | 33 ++ 19 files changed, 1090 insertions(+), 40 deletions(-) rename Mac/MainWindow/Detail/{DetailStatusBarView.swift => DetailLinkOverlayView.swift} (87%) rename Mac/MainWindow/Sidebar/{SidebarStatusBarView.swift => SidebarProgressView.swift} (80%) create mode 100644 Mac/MainWindow/StatusBar/MainWindowContentViewController.swift create mode 100644 Mac/MainWindow/StatusBar/MainWindowStatusBarView.swift create mode 100644 Mac/MainWindow/StatusBar/StatusBarGearButton.swift create mode 100644 Mac/MainWindow/StatusBar/StatusBarSplitHandleView.swift rename Mac/Resources/Assets.xcassets/{DetailStatusBarBackground.colorset => DetailLinkOverlayBackground.colorset}/Contents.json (100%) diff --git a/Mac/AppDefaults.swift b/Mac/AppDefaults.swift index 7e0c5f08b..e6f438185 100644 --- a/Mac/AppDefaults.swift +++ b/Mac/AppDefaults.swift @@ -15,6 +15,21 @@ enum FontSize: Int { case veryLarge = 3 } +/// What the status bar’s count text shows. Clicking the text switches between them. +enum StatusBarCountMode: Int { + case unreadCount = 0 + case foldersAndFeeds = 1 + + var toggled: StatusBarCountMode { + switch self { + case .unreadCount: + .foldersAndFeeds + case .foldersAndFeeds: + .unreadCount + } + } +} + final class AppDefaults: Sendable { static let defaultThemeName = "Default" @@ -31,6 +46,9 @@ final class AppDefaults: Sendable { static let timelineSortDirection = "timelineSortDirection" static let timelineGroupByFeed = "timelineGroupByFeed" static let useColumnLayout = "useColumnLayout" + static let showStatusBar = "showStatusBar" + static let showStatusBarThemeMenu = "showStatusBarThemeMenu" + static let statusBarCountMode = "statusBarCountMode" static let detailFontSize = "detailFontSize" static let openInBrowserInBackground = "openInBrowserInBackground" static let subscribeToFeedsInDefaultBrowser = "subscribeToFeedsInDefaultBrowser" @@ -286,6 +304,45 @@ final class AppDefaults: Sendable { } } + /// The main window status bar. Applies to all windows. + var showStatusBar: Bool { + get { + AppDefaults.bool(for: Key.showStatusBar) + } + set { + AppDefaults.setBool(for: Key.showStatusBar, newValue) + } + } + + /// The status bar is off by default on macOS 26 and on by default everywhere else. + static var showStatusBarDefault: Bool { + if #available(macOS 27.0, *) { + return true + } + if #available(macOS 26.0, *) { + return false + } + return true + } + + var showStatusBarThemeMenu: Bool { + get { + AppDefaults.bool(for: Key.showStatusBarThemeMenu) + } + set { + AppDefaults.setBool(for: Key.showStatusBarThemeMenu, newValue) + } + } + + var statusBarCountMode: StatusBarCountMode { + get { + StatusBarCountMode(rawValue: UserDefaults.standard.integer(forKey: Key.statusBarCountMode)) ?? .unreadCount + } + set { + UserDefaults.standard.set(newValue.rawValue, forKey: Key.statusBarCountMode) + } + } + var timelineShowsSeparators: Bool { return AppDefaults.bool(for: Key.timelineShowsSeparators) } @@ -344,6 +401,8 @@ final class AppDefaults: Sendable { Key.timelineSortDirection: ComparisonResult.orderedDescending.rawValue, Key.timelineGroupByFeed: false, Key.useColumnLayout: false, + Key.showStatusBar: Self.showStatusBarDefault, + Key.showStatusBarThemeMenu: true, "NSScrollViewShouldScrollUnderTitlebar": false, Key.refreshInterval: RefreshInterval.every2Hours.rawValue, Key.showDebugMenu: showDebugMenu, diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index 60f7892c8..ce865fc8f 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -53,6 +53,8 @@ let appName = "NetNewsWire" @IBOutlet var debugMenuItem: NSMenuItem! @IBOutlet var useColumnLayoutMenuItem: NSMenuItem? + @IBOutlet var showStatusBarMenuItem: NSMenuItem? + @IBOutlet var showStatusBarThemeMenuMenuItem: NSMenuItem? @IBOutlet var checkForUpdatesMenuItem: NSMenuItem! var unreadCount = 0 { @@ -204,6 +206,7 @@ let appName = "NetNewsWire" } updateColumnLayoutMenuItem() + updateStatusBarMenuItems() if mainWindowController == nil { let mainWindowController = createAndShowMainWindow() @@ -399,6 +402,7 @@ let appName = "NetNewsWire" func userDefaultsDidChange() { updateColumnLayoutMenuItem() + updateStatusBarMenuItems() if lastRefreshInterval != AppDefaults.shared.refreshInterval { refreshTimer?.update() @@ -501,6 +505,10 @@ let appName = "NetNewsWire" return AccountManager.shared.hasiCloudAccount } + if item.action == #selector(toggleStatusBarThemeMenu(_:)) { + return AppDefaults.shared.showStatusBar + } + if item.action == #selector(toggleWebInspectorEnabled(_:)) { (item as! NSMenuItem).state = AppDefaults.shared.webInspectorEnabled ? .on : .off } @@ -765,6 +773,14 @@ let appName = "NetNewsWire" AppDefaults.shared.useColumnLayout.toggle() } + @IBAction func toggleStatusBar(_ sender: Any?) { + AppDefaults.shared.showStatusBar.toggle() + } + + @IBAction func toggleStatusBarThemeMenu(_ sender: Any?) { + AppDefaults.shared.showStatusBarThemeMenu.toggle() + } + @IBAction func checkForUpdates(_ sender: Any?) { softwareUpdater?.checkForUpdates() } @@ -884,6 +900,19 @@ extension AppDelegate { useColumnLayoutMenuItem?.state = AppDefaults.shared.useColumnLayout ? .on : .off } + @MainActor func updateStatusBarMenuItems() { + if AppDefaults.shared.showStatusBar { + showStatusBarMenuItem?.title = NSLocalizedString("Hide Status Bar", comment: "Command") + } else { + showStatusBarMenuItem?.title = NSLocalizedString("Show Status Bar", comment: "Command") + } + if AppDefaults.shared.showStatusBarThemeMenu { + showStatusBarThemeMenuMenuItem?.title = NSLocalizedString("Hide Theme Menu in Status Bar", comment: "Command") + } else { + showStatusBarThemeMenuMenuItem?.title = NSLocalizedString("Show Theme Menu in Status Bar", comment: "Command") + } + } + func importTheme(url: URL) { guard let window = mainWindowController?.window else { return } diff --git a/Mac/MainMenu/Base.lproj/MainMenu.xib b/Mac/MainMenu/Base.lproj/MainMenu.xib index 89e292ff2..bef15b34e 100644 --- a/Mac/MainMenu/Base.lproj/MainMenu.xib +++ b/Mac/MainMenu/Base.lproj/MainMenu.xib @@ -17,6 +17,8 @@ + + @@ -438,6 +440,18 @@ + + + + + + + + + + + + diff --git a/Mac/MainMenu/mul.lproj/MainMenu.xcstrings b/Mac/MainMenu/mul.lproj/MainMenu.xcstrings index 6e06ae635..19eda08b0 100644 --- a/Mac/MainMenu/mul.lproj/MainMenu.xcstrings +++ b/Mac/MainMenu/mul.lproj/MainMenu.xcstrings @@ -1963,6 +1963,30 @@ } } }, + "stB-ar-mI1.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Show Status Bar\"; ObjectID = \"stB-ar-mI1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Show Status Bar" + } + } + } + }, + "stT-hm-mI1.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Show Theme Menu in Status Bar\"; ObjectID = \"stT-hm-mI1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Show Theme Menu in Status Bar" + } + } + } + }, "Td7-aD-5lo.title" : { "comment" : "Class = \"NSMenu\"; title = \"Window\"; ObjectID = \"Td7-aD-5lo\";", "extractionState" : "extracted_with_value", diff --git a/Mac/MainWindow/Detail/Base.lproj/DetailView.xib b/Mac/MainWindow/Detail/Base.lproj/DetailView.xib index ccacb0c80..4057af57c 100644 --- a/Mac/MainWindow/Detail/Base.lproj/DetailView.xib +++ b/Mac/MainWindow/Detail/Base.lproj/DetailView.xib @@ -8,7 +8,7 @@ - + @@ -18,7 +18,7 @@ -