Skip to content

Fix Safari share preprocessing - #12

Merged
patrickschiller merged 1 commit into
mainfrom
codex/fix-safari-share-input
Aug 14, 2026
Merged

patrickschiller merged 1 commit into
mainfrom
codex/fix-safari-share-input

Conversation

@patrickschiller

Copy link
Copy Markdown
Owner

Problem

Safari could open the Share Extension but it never received the page payload, so saving failed before GitHub access.

Implementation

Export ExtensionPreprocessingJS as the global object Safari invokes, rather than as a constructor whose run method only existed on its prototype. Added a regression test that evaluates the bundled script and verifies URL, title, selected text, and article text.

Privacy and permissions

No permissions, network endpoints, storage formats, or credential handling changed.

Checks

  • python3 -m unittest discover -s tests -p 'test_ios*.py'\n- xcodebuild -project SourceBraid.xcodeproj -scheme SourceBraid -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO build

Signed-off-by: Patrick Schiller <p@trickschiller.de>
@patrickschiller
patrickschiller merged commit 9258e85 into main Aug 14, 2026
1 check passed
@patrickschiller
patrickschiller deleted the codex/fix-safari-share-input branch August 14, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant