twchapman / nativeclient-sdk

Automatically exported from code.google.com/p/nativeclient-sdk
0 stars 0 forks source link

SDK examples fail with Chrome Canary #112

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After installing Chrome Canary, I went to the examples page: 
http://code.google.com/chrome/nativeclient/docs/examples.html

Unlike M13 which prints and error msg saying I need M14 or 10000, I get the 
following msg:

INFO: Using Google Chrome version 15 with Native Client enabled.
To run the Native Client applications on this page, click the "Run" links or 
the screenshots in the table below.

Following these instructions I click 'Run' on the very first example.  This 
appears to hang:

If the module is working correctly, a click on the "Call fortyTwo()" button 
should open a popup dialog containing 42 as its value.

Clicking on the "Call reverseText()" button should open a popup dialog 
containing the textbox contents and its reverse as its value.

Status

LOADING...

The loading status is still there minutes later.
Clicking 'Call fourtyTwo' or 'Call reverseText'  appears to do nothing.

Original issue reported on code.google.com by noelal...@google.com on 11 Aug 2011 at 5:23

GoogleCodeExporter commented 8 years ago
Turns out that the web page is not correctly detecting the state of my 
'About:Flags'.  When I look at the about:flags, native-client was not enabled.  
Turning it on allowed me to run this example correctly.

One interesting thing to note however, is there may be a collision between M14 
& M13 flags, or something strange about Canary flags since I'm pretty sure we 
tried toggling this and checking about:plugins when this first failed.

Original comment by noelal...@google.com on 11 Aug 2011 at 7:43

GoogleCodeExporter commented 8 years ago
I'm not sure we can detect the --enable-nacl flag (or the corresponding 
about:flags setting) from within the browser.  Needs some investigation.

Original comment by dsprin...@chromium.org on 12 Aug 2011 at 5:48

GoogleCodeExporter commented 8 years ago
It's possible to detect the presence of the NaCl plugin from the navigator 
object (navigator.mimeTypes[].description.indexOf('Native Client')), but it is 
not possible to read the command-line flags from within the browser.  Can't fix.

We'll review the trouble-shooting docs, but I think they cover this situation 
already.

Original comment by dsprin...@chromium.org on 15 Aug 2011 at 7:44