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

Issue 6532042: Make chromoting connect always work (Closed)

Created:
9 years, 10 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
Reviewers:
awong
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, Erik does not do reviews, dmaclach+watch_chromium.org, garykac+watch_chromium.org, Aaron Boodman, lambroslambrou+watch_chromium.org, pam+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Make chromoting connect always work There was a race condition in the chromoting extension javascript. We wait for OnUpdated() in order to send the chromoting tab a request for connection. However OnUpdated() is insufficient for the chromoting tab is fully loaded. And thus sending a request may not always work. This change will wait for the tab to go to a "complete" status before a request is sent. BUG=73202 TEST=Click on chromoting connect, it should always connect Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75341

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -7 lines) Patch
M remoting/client/extension/background.js View 1 1 chunk +25 lines, -7 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Alpha Left Google
9 years, 10 months ago (2011-02-18 00:19:21 UTC) #1
awong
good catch! Couple of comments http://codereview.chromium.org/6532042/diff/1/remoting/client/extension/background.js File remoting/client/extension/background.js (right): http://codereview.chromium.org/6532042/diff/1/remoting/client/extension/background.js#newcode68 remoting/client/extension/background.js:68: console.log("We're trying now to ...
9 years, 10 months ago (2011-02-18 00:31:01 UTC) #2
Alpha Left Google
http://codereview.chromium.org/6532042/diff/1/remoting/client/extension/background.js File remoting/client/extension/background.js (right): http://codereview.chromium.org/6532042/diff/1/remoting/client/extension/background.js#newcode68 remoting/client/extension/background.js:68: console.log("We're trying now to send to " + tab.id); ...
9 years, 10 months ago (2011-02-18 00:44:06 UTC) #3
awong
9 years, 10 months ago (2011-02-18 00:50:16 UTC) #4
Add a comment and lgtm
On Feb 17, 2011 4:44 PM, <hclam@chromium.org> wrote:
>
>
http://codereview.chromium.org/6532042/diff/1/remoting/client/extension/backg...
> File remoting/client/extension/background.js (right):
>
>
http://codereview.chromium.org/6532042/diff/1/remoting/client/extension/backg...
> remoting/client/extension/background.js:68: console.log("We're trying
> now to send to " + tab.id);
> On 2011/02/18 00:31:01, awong wrote:
>> At some point, I'm wondering if we should have a custom "log" function
> that
>> inspects a variable which can be toggled at runtime.
>
> hm.. i was thinking about this too, but since we don't connect a lot we
> won't be writing a lot of of messages so it's ok.
>
>
http://codereview.chromium.org/6532042/diff/1/remoting/client/extension/backg...
> remoting/client/extension/background.js:81: // Wait for 500ms and then
> get the tab and check its status.
> On 2011/02/18 00:31:01, awong wrote:
>> Is there no way to have a signal on tab status change? a 500ms loop
> is fine as
>> a stop-gap, but it's guarantees a 500ms latency in the UI.
>
> there's only two ways, pass arguments as url into chromoting_tab.js, or
> inspect the tab status..
>
> There's is a 500ms latency only if the first trial failed, we can
> shorten the timeout though.
>
> http://codereview.chromium.org/6532042/

Powered by Google App Engine
This is Rietveld 408576698