<div dir="ltr">This patch works for wedkit1 and for webkit2?<div><br></div><div>Gonzalo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 25, 2014 at 5:30 PM, Lionel Laské <span dir="ltr"><<a href="mailto:lionel@olpc-france.org" target="_blank">lionel@olpc-france.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>I've updated the env.js file to use hostname instead of protocol.</div><div>I've send a pull request [1].</div>
<div><br></div><div>How I could test it in "Stand alone" ?</div>
<div><br></div><div> Lionel.</div><div><br></div><div><br></div><div>[1] <a href="https://github.com/sugarlabs/sugar-web/pull/110" target="_blank">https://github.com/sugarlabs/sugar-web/pull/110</a></div></div>
<div class="gmail_extra">
<br><br><div class="gmail_quote">2014-02-25 18:06 GMT+01:00 Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span>:<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Probably is related to the issue of using webkit1, then http.<div>Maybe the js code can check if the ip is 0.0.0.0?<br><div><br></div><div>Gonzalo</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div>
On Tue, Feb 25, 2014 at 2:02 PM, Lionel Laské <span dir="ltr"><<a href="mailto:lionel@olpc-france.org" target="_blank">lionel@olpc-france.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>
<div dir="ltr"><br><div>I've tried to analyze more the issue. The problem come from env.js [1], the <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre-wrap">env</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre-wrap">.</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre-wrap">isStandalone</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre-wrap">()</span> test return true, so the environment parameter is an empty object. I'm not sure to understand why this test is need.</div>
<div>What means "Standalone" ? </div><div>FYI the method return true because <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre-wrap">env</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre-wrap">.</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre-wrap">getURLScheme</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre-wrap">()</span> return "http", so the test condition is false.</div>
<div>Does it mean that the test condition should not be this ?<br></div><div><br></div><div>Any suggestion about this method is welcome.</div><div><br></div><div> Lionel.</div><div><br></div><div><br></div><div>
<br></div><div>[1] <a href="https://github.com/sugarlabs/sugar-web/blob/master/env.js#L11" target="_blank">https://github.com/sugarlabs/sugar-web/blob/master/env.js#L11</a></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">
2014-02-24 23:28 GMT+01:00 Lionel Laské <span dir="ltr"><<a href="mailto:lionel@olpc-france.org" target="_blank">lionel@olpc-france.org</a>></span>:<div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi all,<div><br></div><div>I'm working to merge Sugarizer and Sugar Web API.</div><div>I've just found an issue that I thought it was related to my work but that is not because I've found the same issue in the last version of Maze Web [1].</div>
<div><br></div><div>The symptom is that the icon don't use buddy color and that the Stop button don't answer.</div><div>The trace show that the Sugar Web API don't retrieve correctly the web socket port. The port is undefined in bus.js [2]. See the log below - tested on last Sugar 0.100 build on XO-4.</div>
<div><br></div><div>I suspect that it come from a recent update of Sugar Web API because the problem doesn't appear on the same machine with an older Sugar Web Activity like FoodChain [3] - that use an old version of Sugar Web API.</div>
<div><br></div><div>BTW I didn't find why this variable could not be initialized :-(</div><div><br></div><div>Any idea ?</div><div><br></div><div> Lionel.</div><div><br></div><div><br></div><div><br></div>
<div>[1] <a href="http://activities.sugarlabs.org/en/sugar/addon/4727" target="_blank">http://activities.sugarlabs.org/en/sugar/addon/4727</a></div><div>[2] <a href="https://github.com/sugarlabs/sugar-web/blob/master/bus.js#L19" target="_blank">https://github.com/sugarlabs/sugar-web/blob/master/bus.js#L19</a></div>
<div>[3] <a href="http://activities.sugarlabs.org/en/sugar/addon/4612" target="_blank">http://activities.sugarlabs.org/en/sugar/addon/4612</a></div><div><br></div><div><br></div><div><br></div><div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:02] "GET /lib/sugar-web/activity/shortcut.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/bus.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/env.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/datastore.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/icon.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/activitypalette.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/rot.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/palette.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/text.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/activitypalette.html HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/domReady.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/icons/emblems/arrow-down.svg HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /activity/activity-icon.svg HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/icons/emblems/arrow-up.svg HTTP/1.1" 200 -</div><div>** Message: console message: <a href="http://0.0.0.0:36408" target="_blank">http://0.0.0.0:36408</a> @0: Invalid url for WebSocket ws://localhost:undefined</div>
<div><br></div><div>** Message: console message: <a href="http://0.0.0.0:36408/lib/sugar-web/bus.js" target="_blank">http://0.0.0.0:36408/lib/sugar-web/bus.js</a> @19: SYNTAX_ERR: DOM Exception 12: An invalid or illegal string was specified.</div>
<div><br></div></div></div>
</blockquote></div></div></div><br></div>
<br></div></div>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Learning Software for children<br></div></div>
</font></span></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Learning Software for children<br></div></div>
</div>