Skip to content
This repository has been archived by the owner. It is now read-only.

Support chrome.send method on internal resource pages #11418

Closed
jonathansampson opened this issue Oct 10, 2017 · 0 comments
Closed

Support chrome.send method on internal resource pages #11418

jonathansampson opened this issue Oct 10, 2017 · 0 comments

Comments

@jonathansampson
Copy link
Collaborator

@jonathansampson jonathansampson commented Oct 10, 2017

Description

For chrome-app integration, we'll need to implement the chrome.send method, allowing us to issue commands like the following:

chrome.send('launchApp', [
    this.appId, APP_LAUNCH.NTP_APPS_MAXIMIZED, 'chrome-ntp-icon', e.button,
    e.altKey, e.ctrlKey, e.metaKey, e.shiftKey
]);

This method is used extensively through chrome://apps:

image

Relevant Chromium Source:

  1. https://cs.chromium.org/chromium/src/ios/web/webui/resources/web_ui_send.js?type=cs&sq=package:chromium&l=9-12
  2. https://cs.chromium.org/chromium/src/content/renderer/web_ui_extension.cc?type=cs&sq=package:chromium&l=89-129

See also Creating Chrome WebUI Interfaces for further example.

Brave Version

0.19.37

about:brave info:

Brave: 0.19.37
rev: c6ee3b2
Muon: 4.4.25
libchromiumcontent: 61.0.3163.100
V8: 6.1.534.41
Node.js: 7.9.0
Update Channel: Beta
OS Platform: Microsoft Windows
OS Release: 10.0.15063
OS Architecture: x64

Additional Information

@bsclifton bsclifton added this to the Triage Backlog milestone Nov 27, 2017
@bsclifton bsclifton removed this from the Triage Backlog milestone Aug 24, 2018
@bsclifton bsclifton closed this Aug 24, 2018
@bsclifton bsclifton added the wontfix label Aug 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.