8000 refactor: add ipcMainUtils.invokeInWebContents / ipcRendererUtils.handle helpers by miniak · Pull Request #17313 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: add ipcMainUtils.invokeInWebContents / ipcRendererUtils.handle helpers #17313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2019

Conversation

miniak
Copy link
Contributor
@miniak miniak commented Mar 9, 2019

Description of Change

Allows invoking handlers easily in renderers from main via IPC, handling errors and promises.
Simplifies #17312 (feat: promisify executeJavaScript)

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes
  • PR title follows semantic commit guidelines

Release Notes

Notes: no-notes

/cc @nornagon, @MarshallOfSound

@miniak miniak added the wip ⚒ label Mar 9, 2019
@miniak miniak self-assigned this Mar 9, 2019
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Mar 9, 2019
@miniak miniak mentioned this pull request Mar 9, 2019
6 tasks
@miniak miniak changed the title [wip] refactor: add ipcMainUtils.invoke / ipcRendererUtils.handle helpers refactor: add ipcMainUtils.invoke / ipcRendererUtils.handle helpers Mar 9, 2019
@miniak miniak removed the wip ⚒ label Mar 9, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Mar 10, 2019
@miniak miniak force-pushed the miniak/ipc-helpers branch from dd1afbd to 78fb556 Compare March 12, 2019 07:20
@miniak miniak changed the title refactor: add ipcMainUtils.invoke / ipcRendererUtils.handle helpers refactor: add ipcMainUtils. invokeInWebContents / ipcRendererUtils.handle helpers Mar 12, 2019
@miniak miniak changed the title refactor: add ipcMainUtils. invokeInWebContents / ipcRendererUtils.handle helpers refactor: add ipcMainUtils.invokeInWebContents / ipcRendererUtils.handle helpers Mar 12, 2019
Copy link
Member
@codebytere codebytere left a comment

Choose a reason for hiding this comment

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

the logic seems sound and we're testing this through insertCSS so i'm ✅ but cc @MarshallOfSound can you give this a second 👀 before we merge?

Update: merged after offline discussion with Sam

@codebytere codebytere merged commit faabd0c into master Mar 13, 2019
@release-clerk
Copy link
release-clerk bot commented Mar 13, 2019

No Release Notes

@miniak miniak deleted the miniak/ipc-helpers branch March 14, 2019 10:41
kiku-jw pushed a commit to kiku-jw/electron that referenced this pull request May 16, 2019
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.

4 participants
0