Bug 201805 - [PATCH] www/chromium: enable native message service API for extensions
Summary: [PATCH] www/chromium: enable native message service API for extensions
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-chromium (Nobody)
URL:
Keywords: patch, patch-ready
Depends on:
Blocks:
 
Reported: 2015-07-24 04:52 UTC by Matthias Petermann
Modified: 2017-02-06 19:35 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (chromium)
cpm: merge-quarterly?


Attachments
Patch for enabling native messaging (2.25 KB, patch)
2015-07-24 04:52 UTC, Matthias Petermann
no flags Details | Diff
patch for enabling native messaging (2.62 KB, patch)
2016-08-24 18:07 UTC, Carlos J. Puga Medina
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Petermann 2015-07-24 04:52:51 UTC
Created attachment 159130 [details]
Patch for enabling native messaging

Chrome / Chromium are supporting a native Messaging API[1] which is useful to interact with external processes from as Chrome app. There is a good usage example available, too[2].

The current Chromium on FreeBSD doesn't support native Messaging due this is implicitly excluded in the respective source code file at compile time. 

This results in Chromium returning an error message when trying to open a channel to an external process:

"native Messaging is not supported on this platform."

Adding OS_FREEBSD to the expression makes this work and can be successfully tested. Please find the patch attached to this report.

[1] https://developer.chrome.com/extensions/nativeMessaging
[2] https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/docs/examples/api/nativeMessaging
Comment 1 Carlos J. Puga Medina freebsd_committer freebsd_triage 2016-08-24 17:56:54 UTC
This patch was added in r416521.
Comment 2 Carlos J. Puga Medina freebsd_committer freebsd_triage 2016-08-24 18:07:18 UTC
Created attachment 174022 [details]
patch for enabling native messaging
Comment 3 Carlos J. Puga Medina freebsd_committer freebsd_triage 2017-02-06 19:35:39 UTC
(In reply to Carlos J. Puga Medina from comment #1)

Patch has been added in r433510.

Thanks