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

Issue 986553004: Hold messages in message port service when a message port is (Closed)

Created:
5 years, 9 months ago by sgurun-gerrit only
Modified:
5 years, 9 months ago
Reviewers:
hush (inactive), nasko
CC:
chromium-reviews, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hold messages in message port service when a message port is being transferred. This CL addresses a long standing TODO for addressing message queuing. When Message ports are in flight, race conditions that lead to dropped messages, or ghost messages (messages arriving for already transferred ports can occur). To prevent this, messages are queued at the message port service during transfer. Note that this CL also restricts transferring message ports from Java to JS under certain circumstances. Basically, message ports that are already used for communication from Java to JS are not allowed to be transferred at the time. This restriction can be relaxed later. BUG=463269 Committed: https://crrev.com/79815049c8dcde0c59aba4e3ee1dd85048c734f0 Cr-Commit-Position: refs/heads/master@{#319943}

Patch Set 1 #

Total comments: 3

Patch Set 2 : address hush nit #

Messages

Total messages: 12 (3 generated)
sgurun-gerrit only
On 2015/03/06 21:57:20, sgurun wrote: > mailto:sgurun@chromium.org changed reviewers: > + mailto:hush@chromium.org, mailto:nasko@chromium.org hush please ...
5 years, 9 months ago (2015-03-06 21:57:50 UTC) #2
hush (inactive)
lgtm https://codereview.chromium.org/986553004/diff/1/android_webview/java/src/org/chromium/android_webview/MessagePort.java File android_webview/java/src/org/chromium/android_webview/MessagePort.java (right): https://codereview.chromium.org/986553004/diff/1/android_webview/java/src/org/chromium/android_webview/MessagePort.java#newcode54 android_webview/java/src/org/chromium/android_webview/MessagePort.java:54: * 10. c2.port1.postMessage("test2",[c1.port2]) indent to the left by ...
5 years, 9 months ago (2015-03-06 22:32:37 UTC) #3
sgurun-gerrit only
https://codereview.chromium.org/986553004/diff/1/android_webview/java/src/org/chromium/android_webview/MessagePort.java File android_webview/java/src/org/chromium/android_webview/MessagePort.java (right): https://codereview.chromium.org/986553004/diff/1/android_webview/java/src/org/chromium/android_webview/MessagePort.java#newcode54 android_webview/java/src/org/chromium/android_webview/MessagePort.java:54: * 10. c2.port1.postMessage("test2",[c1.port2]) On 2015/03/06 22:32:37, hush wrote: > ...
5 years, 9 months ago (2015-03-06 22:51:34 UTC) #4
nasko
I don't quite follow why the two new methods are needed. Can you help me ...
5 years, 9 months ago (2015-03-09 18:39:01 UTC) #5
sgurun-gerrit only
On 2015/03/09 18:39:01, nasko wrote: > I don't quite follow why the two new methods ...
5 years, 9 months ago (2015-03-09 20:38:21 UTC) #6
nasko
As we discussed, once this is working, we should find a better way to implement ...
5 years, 9 months ago (2015-03-10 17:53:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/986553004/20001
5 years, 9 months ago (2015-03-10 18:04:24 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-10 19:27:57 UTC) #11
commit-bot: I haz the power
5 years, 9 months ago (2015-03-10 19:28:36 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/79815049c8dcde0c59aba4e3ee1dd85048c734f0
Cr-Commit-Position: refs/heads/master@{#319943}

Powered by Google App Engine
This is Rietveld 408576698