Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Issue 14301016: Fix a couple of bugs relating to sending Tab info with chrome.runtime.connect and (Closed)

Created:
7 years, 8 months ago by not at google - send to devlin
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, cduvall
Visibility:
Public.

Description

Fix a couple of bugs relating to sending Tab info with chrome.runtime.connect and sendMessage: don't send it when the connection originates from an extension page, and don't sent it regardless to platform apps. To compensate, send the URL down separately. BUG=55316, 234384 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196316

Patch Set 1 #

Total comments: 5

Patch Set 2 : comments, check target extension is not app #

Patch Set 3 : rebase #

Patch Set 4 : add key to app1/manifest.json #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -185 lines) Patch
M chrome/browser/extensions/api/messaging/extension_message_port.h View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/messaging/extension_message_port.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.h View 1 4 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 1 10 chunks +73 lines, -65 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 1 chunk +7 lines, -8 lines 0 comments Download
M chrome/common/extensions/api/runtime.json View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 4 chunks +26 lines, -15 lines 0 comments Download
M chrome/renderer/chrome_mock_render_thread.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/chrome_mock_render_thread.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.h View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.h View 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.cc View 2 chunks +4 lines, -9 lines 0 comments Download
M chrome/renderer/extensions/miscellaneous_bindings.h View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/renderer/extensions/miscellaneous_bindings.cc View 5 chunks +22 lines, -12 lines 0 comments Download
M chrome/renderer/extensions/runtime_custom_bindings.cc View 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/renderer/resources/extensions/miscellaneous_bindings.js View 3 chunks +29 lines, -20 lines 0 comments Download
M chrome/renderer/resources/extensions/test_custom_bindings.js View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/messaging/connect/page.js View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/messaging/connect/test.js View 3 chunks +13 lines, -8 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/messaging/app1/manifest.json View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/messaging/app2/background.js View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
not at google - send to devlin
Also add tests. I haven't actually quite finished this. I realised in my writing of ...
7 years, 8 months ago (2013-04-23 01:05:22 UTC) #1
Matt Perry
LGTM https://codereview.chromium.org/14301016/diff/1/chrome/browser/extensions/api/messaging/message_service.cc File chrome/browser/extensions/api/messaging/message_service.cc (left): https://codereview.chromium.org/14301016/diff/1/chrome/browser/extensions/api/messaging/message_service.cc#oldcode235 chrome/browser/extensions/api/messaging/message_service.cc:235: Why delete this? https://codereview.chromium.org/14301016/diff/1/chrome/browser/extensions/api/messaging/message_service.cc File chrome/browser/extensions/api/messaging/message_service.cc (right): https://codereview.chromium.org/14301016/diff/1/chrome/browser/extensions/api/messaging/message_service.cc#newcode316 ...
7 years, 8 months ago (2013-04-23 18:00:16 UTC) #2
not at google - send to devlin
Ok, comments addressed, and I added the platform app check. Led itself to a tiny ...
7 years, 8 months ago (2013-04-23 18:30:18 UTC) #3
Matt Perry
lgtm https://codereview.chromium.org/14301016/diff/1/chrome/browser/extensions/api/messaging/message_service.cc File chrome/browser/extensions/api/messaging/message_service.cc (left): https://codereview.chromium.org/14301016/diff/1/chrome/browser/extensions/api/messaging/message_service.cc#oldcode235 chrome/browser/extensions/api/messaging/message_service.cc:235: On 2013/04/23 18:30:18, kalman wrote: > On 2013/04/23 ...
7 years, 8 months ago (2013-04-23 18:39:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/14301016/5001
7 years, 8 months ago (2013-04-23 18:40:57 UTC) #5
commit-bot: I haz the power
Presubmit check for 14301016-5001 failed and returned exit status 1. INFO:root:Found 24 file(s). ..ERROR:root:File system ...
7 years, 8 months ago (2013-04-23 18:41:09 UTC) #6
not at google - send to devlin
+jschuh for message change +sky for non-extension changes
7 years, 8 months ago (2013-04-23 18:43:39 UTC) #7
not at google - send to devlin
sky -> thestig (sky is busy) jschuh -> cdn (jschuh is ooo)
7 years, 8 months ago (2013-04-23 20:45:24 UTC) #8
Lei Zhang
non-extension bits lgtm
7 years, 8 months ago (2013-04-23 20:52:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/14301016/5001
7 years, 8 months ago (2013-04-23 23:24:36 UTC) #10
not at google - send to devlin
tbr'ing for extension_messages since it was pretty trivial. apologies if I introduce something that can ...
7 years, 8 months ago (2013-04-23 23:26:47 UTC) #11
Cris Neckar
Please don't TBR these. I am in the process of looking now.
7 years, 8 months ago (2013-04-23 23:29:18 UTC) #12
not at google - send to devlin
ok
7 years, 8 months ago (2013-04-23 23:29:46 UTC) #13
Cris Neckar
lgtm for ipc security review
7 years, 8 months ago (2013-04-23 23:34:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/14301016/5001
7 years, 8 months ago (2013-04-23 23:35:25 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=106170
7 years, 8 months ago (2013-04-24 02:02:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/14301016/47001
7 years, 8 months ago (2013-04-24 22:00:15 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=139207
7 years, 8 months ago (2013-04-24 23:53:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/14301016/47001
7 years, 8 months ago (2013-04-24 23:54:30 UTC) #19
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-25 01:42:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/14301016/47001
7 years, 8 months ago (2013-04-25 02:22:44 UTC) #21
commit-bot: I haz the power
7 years, 8 months ago (2013-04-25 04:55:02 UTC) #22
Message was sent while issue was closed.
Change committed as 196316

Powered by Google App Engine
This is Rietveld 408576698