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

Issue 1588533002: Never connect a port to the same frame (Closed)

Created:
4 years, 11 months ago by robwu
Modified:
4 years, 11 months ago
Reviewers:
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

Never connect a port to the same frame Connecting to the same frame does not make sense because onMessage should not be triggered for the same frame. BUG=479425, 575234 Committed: https://crrev.com/0a6b622545af1c2c8fe3ef1863020e1d9c8ba6e6 Cr-Commit-Position: refs/heads/master@{#369379}

Patch Set 1 #

Total comments: 2

Patch Set 2 : s/WillConnectToPort/RemoveCommonFrames/ #

Patch Set 3 : Also rename invocation of WillConnectToPort #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -6 lines) Patch
M chrome/browser/extensions/api/messaging/extension_message_port.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/messaging/extension_message_port.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 4 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_messages_apitest.cc View 1 chunk +5 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/messaging/background_only/manifest.json View 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/messaging/background_only/test.js View 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
robwu
4 years, 11 months ago (2016-01-13 13:55:56 UTC) #2
Devlin
lgtm. I have some slight reservations that we shouldn't necessarily disallow listening to a message ...
4 years, 11 months ago (2016-01-13 17:37:22 UTC) #3
robwu
https://codereview.chromium.org/1588533002/diff/1/chrome/browser/extensions/api/messaging/message_service.cc File chrome/browser/extensions/api/messaging/message_service.cc (right): https://codereview.chromium.org/1588533002/diff/1/chrome/browser/extensions/api/messaging/message_service.cc#newcode579 chrome/browser/extensions/api/messaging/message_service.cc:579: // Remove duplicate frames. On 2016/01/13 17:37:22, Devlin wrote: ...
4 years, 11 months ago (2016-01-13 19:56:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1588533002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1588533002/20001
4 years, 11 months ago (2016-01-13 19:56:55 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/79135) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 11 months ago (2016-01-13 20:08:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1588533002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1588533002/40001
4 years, 11 months ago (2016-01-13 20:14:15 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/79142) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 11 months ago (2016-01-13 20:23:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1588533002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1588533002/60001
4 years, 11 months ago (2016-01-14 00:22:49 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/101561) linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-14 02:12:02 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1588533002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1588533002/60001
4 years, 11 months ago (2016-01-14 08:44:52 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 11 months ago (2016-01-14 09:28:22 UTC) #23
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 09:29:12 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0a6b622545af1c2c8fe3ef1863020e1d9c8ba6e6
Cr-Commit-Position: refs/heads/master@{#369379}

Powered by Google App Engine
This is Rietveld 408576698