Chromium Code Reviews

Issue 2271143002: Ensure/document that the first parameter to the native messaging host is the origin (Closed)

Created:
4 years, 4 months ago by robwu
Modified:
4 years, 2 months ago
Reviewers:
Sergey Ulanov, Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure/document that the first parameter to the native messaging host is the origin This reflects the current implementation, and allows native messaging hosts to verify their caller when they have authorized multiple (extension) origins to invoke the native messaging host. On Windows, the first argument was --parent-window=integer, but to make the use of the origin parameter easier, the origin parameter is first, just like other platforms (Linux/OS X). BUG=651496 R=sergeyu@chromium.org Committed: https://crrev.com/f048ff5342719462f88ff146b8ac01346f320da8 Cr-Commit-Position: refs/heads/master@{#423169}

Patch Set 1 #

Patch Set 2 : Assert that first parameter is the origin #

Patch Set 3 : Make sure that the origin is really the first arg #

Total comments: 4

Patch Set 4 : Reword docs, thanks Devlin #

Total comments: 2

Patch Set 5 : Clarify parameters on Windows #

Unified diffs Side-by-side diffs Stats (+20 lines, -15 lines)
M chrome/browser/extensions/api/messaging/native_process_launcher.cc View 3 chunks +6 lines, -10 lines 0 comments
M chrome/common/extensions/docs/templates/articles/nativeMessaging.html View 2 chunks +11 lines, -1 line 0 comments
M chrome/test/data/native_messaging/native_hosts/echo.py View 1 chunk +3 lines, -4 lines 0 comments

Messages

Total messages: 33 (17 generated)
robwu
Hi Sergey, I still had to submit this documentation fix following our conversation on the ...
4 years, 4 months ago (2016-08-24 07:26:39 UTC) #1
Sergey Ulanov
lgtm
4 years, 3 months ago (2016-08-31 23:53:04 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2271143002/1
4 years, 3 months ago (2016-09-06 18:08:25 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/253624)
4 years, 3 months ago (2016-09-06 18:16:07 UTC) #6
robwu
OWNER stamp please :)
4 years, 3 months ago (2016-09-07 04:52:51 UTC) #8
Devlin
Do we already test this? I didn't immediately see anything in the native messaging tests ...
4 years, 3 months ago (2016-09-07 15:01:34 UTC) #9
Sergey Ulanov
On 2016/09/07 15:01:34, Devlin wrote: > Do we already test this? I didn't immediately see ...
4 years, 3 months ago (2016-09-07 19:47:39 UTC) #10
Devlin
On 2016/09/07 19:47:39, Sergey Ulanov wrote: > On 2016/09/07 15:01:34, Devlin wrote: > > Do ...
4 years, 3 months ago (2016-09-07 20:08:50 UTC) #11
robwu
On 2016/09/07 20:08:50, Devlin (OOO until sep 26) wrote: > On 2016/09/07 19:47:39, Sergey Ulanov ...
4 years, 2 months ago (2016-09-24 21:13:41 UTC) #12
Devlin
Awesome, thanks Rob! lgtm with nits https://codereview.chromium.org/2271143002/diff/40001/chrome/common/extensions/docs/templates/articles/nativeMessaging.html File chrome/common/extensions/docs/templates/articles/nativeMessaging.html (right): https://codereview.chromium.org/2271143002/diff/40001/chrome/common/extensions/docs/templates/articles/nativeMessaging.html#newcode133 chrome/common/extensions/docs/templates/articles/nativeMessaging.html:133: usually <code>chrome-extension://[extension ID ...
4 years, 2 months ago (2016-09-26 15:53:59 UTC) #21
robwu
Devlin - do note that I did not only change the documentation, but also the ...
4 years, 2 months ago (2016-09-28 09:07:09 UTC) #23
Devlin
On 2016/09/28 09:07:09, robwu wrote: > Devlin - do note that I did not only ...
4 years, 2 months ago (2016-09-29 15:14:51 UTC) #24
robwu
On 2016/09/29 15:14:51, Devlin (catching up) wrote: > On 2016/09/28 09:07:09, robwu wrote: > > ...
4 years, 2 months ago (2016-09-29 17:38:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2271143002/80001
4 years, 2 months ago (2016-10-05 14:55:37 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-05 15:52:23 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 15:55:34 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f048ff5342719462f88ff146b8ac01346f320da8
Cr-Commit-Position: refs/heads/master@{#423169}

Powered by Google App Engine