Brent Simmons
5d8e49057d
Add description methods for Mac state restoration models.
2026-01-05 19:18:50 -08:00
Brent Simmons
9ff1bd9836
Fix various SwiftLint warnings.
2026-01-02 17:50:35 -08:00
Brent Simmons
d0d7d0c823
Fix various SwiftLint warnings.
2026-01-02 15:13:44 -08:00
Brent Simmons
9180ec3ecd
Fix various SwiftLint warnings.
2026-01-02 15:05:23 -08:00
Brent Simmons
e45490fb1e
Fix various SwiftLint warnings.
2026-01-02 11:57:55 -08:00
Brent Simmons
0832a7cf67
Fix various SwiftLint warnings.
2026-01-01 17:55:12 -08:00
Brent Simmons
833d06c076
Fix various concurrency issues.
2025-11-18 20:22:48 -08:00
Brent Simmons
3c24f9139a
Fix various concurrency issues.
2025-11-18 14:33:24 -08:00
Brent Simmons
653789b913
Use Swift 6.2 with the app. Fix some concurrency issues.
2025-11-18 10:00:50 -08:00
Brent Simmons
02bddb792d
Convert to async/await.
2025-11-10 08:53:54 -08:00
Brent Simmons
9efde554d4
Clean whitespace-only lines.
2025-11-05 11:22:10 -08:00
Brent Simmons
48bb1b407c
Rename some instances of webfeed as feed.
2025-11-02 16:17:42 -08:00
Brent Simmons
fb35e2857c
Fix build error.
2025-11-02 10:30:28 -08:00
Brent Simmons
bb8a7633d6
Remove references to MAC_APP_STORE.
2025-11-01 22:27:39 -07:00
Brent Simmons
5e39b569a7
Merged main to branch.
2025-11-01 15:53:33 -07:00
Brent Simmons
5d0236f7e4
Show the web view after navigation did commit rather than after didFinish, which can prevent a surprisingly long delay in some cases. Fix #4030 .
2025-10-07 09:20:24 -07:00
Brent Simmons
55cb86f258
Use new shared WebViewConfiguration.
2025-09-22 22:20:28 -07:00
Brent Simmons
4b7ea6d920
Mark classes as final when they can be, to communicate intent (don’t subclass these). Fix #4751 .
2025-09-16 10:21:29 -07:00
Brent Simmons
91f66835f9
Mark classes as final. Create private Key structs instead of duplicating string literals. Make supportsSecureCoding let instead of var.
2025-08-14 16:24:54 -07:00
Brent Simmons
74890781c5
Remove unneeded return.
2025-08-14 16:23:03 -07:00
Brent Simmons
15132bcbd9
Remove unneeded return.
2025-08-14 16:22:52 -07:00
Maurice Parker
17860b72f5
Change Mac state preservation to be NSSecureCoding compliant
2025-08-13 14:24:29 -05:00
Stuart Breckenridge
cabaa32be5
🔥 Removes unused #available checks
2025-06-20 19:48:15 +08:00
Henrik Hørlück Berg
389c8529cc
Disable audio autoplay on macOS
...
- To be in-line with how this is threated on iOS
2025-04-28 21:07:47 -07:00
Ethan Wong
d4f9c25df4
Allow 'Open Link' item to show on the contextual menu of web links. ( fixes #3666 )
2025-04-28 08:40:28 -07:00
Brent Simmons
2826913235
Add and use ArticleRenderingSpecialCases — the one special case is The Verge’s feed. This works around their bug.
2025-04-25 21:14:35 -07:00
Brent Simmons
93e76f617b
Fix several warnings.
2025-04-25 08:46:34 -07:00
Brent Simmons
5f4533cc6b
Fixed layout recursion warning by getting rid of bigSurOffsetFix hack, which no longer appears to be needed. Fix #4590 .
2025-04-20 21:36:50 -07:00
Brent Simmons
aa75efaa2e
Fix test-time crashes by making sure some main thread code runs on main thread.
2025-04-20 21:21:38 -07:00
Brent Simmons
2056adf5d6
Rename WebFeedIconDownloader to FeedIconDownloader.
2024-12-14 10:28:28 -08:00
Brent Simmons
6860637912
Restore showing link in status bar on hover.
2023-12-01 17:10:01 -08:00
Brent Simmons
ee26aadb82
Create new web view controllers when the JavaScript setting changes, so that the effect of the change is immediate and apparent.
2023-11-28 21:37:38 -08:00
Brent Simmons
faaf1baba9
Remove code that watches for JavaScript setting change — that change needs to be handled elsewhere.
2023-11-27 21:46:02 -08:00
Brent Simmons
2bdd60cdf5
Reload article when JavaScript setting changes.
2023-11-25 21:58:39 -08:00
Brent Simmons
1b236c425e
Create Mac UI for JavaScript setting.
2023-11-25 20:50:45 -08:00
Brent Simmons
dfd778d038
Add isJavascriptEnabled setting, defaulting to false, and respect it in the web view.
2023-11-25 11:53:19 -08:00
Brent Simmons
279a99259e
Use WKUserScript to inject scripts into the page. Use permalink as base URL.
2023-11-25 11:29:56 -08:00
Maurice Parker
c26f09ad1c
Fix bug that prevented us from returning to the original text size
2021-11-01 21:24:56 -05:00
Maurice Parker
b43d8b6b28
Change reload so that the text size style can be used in more places.
2021-09-17 15:59:43 -05:00
Maurice Parker
de956f9473
Change to use JavaScript to detect scroll events as it will also capture scrollbar events
2021-09-13 21:03:27 -05:00
Maurice Parker
2c801a388c
Restore the article scroll position when restarting NetNewsWire
2021-09-13 20:42:58 -05:00
Maurice Parker
abd66ea1bb
Maintain scroll position when changing themes
2021-09-11 20:53:57 -05:00
Maurice Parker
596202fc33
Reload the article if the theme changes
2021-09-08 15:55:42 -05:00
Maurice Parker
b568f03edc
Unify the stylesheets into a single one to make building themes easier
2021-09-08 04:58:26 -05:00
Maurice Parker
512e83d786
Refactor Styles to now be Themes
2021-09-07 16:58:06 -05:00
Daniel Jalkut
2e652351ec
Implement the WKUIDelegate method that is reached when JavaScript in a web view invokes window.open(). This ensures that attempts to open links from code, such as from the YouTube embedded video player, work as expected. Fixes #3088 .
2021-07-27 17:34:48 -04:00
Chris Campbell
364f3a7639
Prevent infinite loop in DetailWebView.setFrameSize()
...
DetailWebView.setFrameSize() calls bigSurOffsetFix(), which changes the window's frame, which ultimately calls setFrameSize() again (which calls bigSurOffsetFix(), etc). In practice, this isn't causing an infinite loop (I think NSWindow.setFrame(_:display:) is smart enough to prevent reentrancy) but it's still dangerous to have such a glaring logic error in the code.
2021-04-30 00:52:15 -04:00
Chris Campbell
bf77d77669
Expand workaround for macOS 11 WebView origin offset bug. Fixes #2916
...
Move the code that twiddles the window frame from DetailWebView.viewDidEndLiveResize() into a new bigSurOffsetFix() API so it can also be called by setFrameSize() when the frame size is changed outside of a live resize.
2021-04-30 00:02:10 -04:00
Jed Fox
4750e9b93a
Add dir=auto to page.html
2021-03-29 17:20:09 -04:00
Maurice Parker
ab5421f533
Merge branch 'mac-release' into main
2021-03-27 17:21:49 -05:00