feat: add protocol.handle by nornagon · Pull Request #36674 · electron/electron · GitHub
Skip to content

feat: add protocol.handle - #36674

Merged
nornagon merged 40 commits into
mainfrom
protocol-handle
Mar 27, 2023
Merged

nornagon merged 40 commits into
mainfrom
protocol-handle

Conversation

@nornagon

@nornagon nornagon commented Dec 15, 2022 •

Copy link
Copy Markdown
Contributor

Description of Change

This adds a new method to the protocol module, protocol.handle, which replaces the existing register{Buffer,String,Stream,File,Http}Protocol and intercept{Buffer,String,Stream,File,Http}Protocol methods.

See electron/governance#368 for motivation and further details, though this PR has progressed the design slightly.

Checklist

Release Notes

Notes: Added protocol.handle, replacing and deprecating protocol.{register,intercept}{String,Buffer,Stream,Http,File}Protocol.

@nornagon nornagon added no-backport semver/minor backwards-compatible functionality labels Dec 15, 2022
@nornagon
nornagon marked this pull request as draft December 15, 2022 23:38
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Dec 22, 2022
ABCDEV666

This comment was marked as spam.

Comment thread docs/api/structures/handle-protocol-response.md Outdated
@nornagon
nornagon marked this pull request as ready for review March 8, 2023 22:56
@nornagon
nornagon requested a review from a team as a code owner March 8, 2023 22:56

@zcbenz zcbenz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

API LGTM

@nornagon

Copy link
Copy Markdown
Contributor Author

@nornagon

Copy link
Copy Markdown
Contributor Author

i noticed a lot of what i noted above is already documented at https://www.electronjs.org/docs/latest/api/protocol#protocolregisterschemesasprivilegedcustomschemes, so maybe this isn't as big of an issue as i thought.

@nornagon
nornagon merged commit fda8ea9 into main Mar 27, 2023
@nornagon
nornagon deleted the protocol-handle branch March 27, 2023 17:00
@release-clerk

release-clerk Bot commented Mar 27, 2023

Copy link
Copy Markdown

Release Notes Persisted

Added protocol.handle, replacing and deprecating protocol.{register,intercept}{String,Buffer,Stream,Http,File}Protocol.

@WilliamQiufeng

This comment was marked as resolved.

@RobertWHurst

Copy link
Copy Markdown

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants