Skip to content

fix(mac): allow display of package help file linked content 🍎 - #16458

Open
sgschantz wants to merge 1 commit into
epic/mac-configfrom
fix/mac/9628-help-links
Open

fix(mac): allow display of package help file linked content 🍎#16458
sgschantz wants to merge 1 commit into
epic/mac-configfrom
fix/mac/9628-help-links

Conversation

@sgschantz

Copy link
Copy Markdown
Contributor

.pdf, .txt and .png files are loaded locally when linked from help files in package

Fixes: #9628

Build-bot: release:mac
Test-bot: skip

User Testing

  • TEST_HELP_LINKS:
    Run Keyman Configuration and install the Syriac/Aramaic keyboard
    Select the ? icon to open the help for the package
    Click on the 'Aramaic (Hebrew layout)' link to load that child page
    Click on both 'Font license' text link and the 'Font documentation' PDF link to verify that they load correctly

.pdf, .txt and .png files will now be loaded locally
when linked from help files in package

Fixes: #9628
@sgschantz sgschantz added this to the A19S36 milestone Aug 28, 2026
@sgschantz sgschantz self-assigned this Aug 28, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Keyman Aug 28, 2026
@keymanapp-test-bot keymanapp-test-bot Bot added has-user-test user-test-required User tests have not been completed labels Aug 28, 2026
@keymanapp-test-bot

keymanapp-test-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

User Test Results

Test specification and instructions

Test Artifacts

@keymanapp-test-bot keymanapp-test-bot Bot changed the title fix(mac): allow display of package help file linked content fix(mac): allow display of package help file linked content 🍎 Aug 28, 2026
@sgschantz
sgschantz requested a review from mcdurdin August 28, 2026 13:23
@keyman-server keyman-server modified the milestones: A19S36, B19S1 Aug 30, 2026
@Meng-Heng

Copy link
Copy Markdown
Contributor

Test Specs

  1. macOS Sequoia
  2. Keyman for macOS 19.0.267-alpha-test-16458

Test Results

  • TEST_HELP_LINKS (PASSED):
  1. Remove previous version of Keyman for macOS from ~/Library/Input Method

  2. Install Keyman -> Trigger a restart

  3. Launch Keyman Configuration -> Click "Add Keyboard" -> Search "Syriac/Aramaic" -> Install the keyboard

  4. Click on the ? -> The Keyboard Package view opens

  5. Click on "Aramaic (Hebrew layout)"

  6. VERIFIED: The sub/children page shows up

  7. VERIFIED: Click on "Font license" & "Font documentation" work as expected

  8. Interactive buttons in Font documentation are working as expected, except the arrow down button:
    Screenshot 2026-09-01 at 10 47 16 in the morning

  9. Clicking on it does not do anything.

@keymanapp-test-bot keymanapp-test-bot Bot removed the user-test-required User tests have not been completed label Sep 1, 2026
Comment on lines +16 to +17
private static let allowedLocalExtensions = ["pdf", "txt", "png", "jpg", "jpeg"]
private static let allowedMimeTypes = ["application/pdf", "text/plain", "image/jpeg", "image/png"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am uncomfortable with this. There may be many other file types included, e.g. webp, gif, videos, css, fonts. This is hard to whitelist correctly.

Is this for navigation operations only?

Comment on lines +114 to +120
if let mimeType = navigationResponse.response.mimeType {
if PackageContentWebView.allowedMimeTypes.contains(mimeType) {
decisionHandler(.allow)
return
}
}
decisionHandler(.allow)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be a nothing test? both code paths give decisionHandler(.allow)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

bug(mac): The blue links appearing on the Syriac/Aramaic keyboard help page is not working

4 participants