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

Issue 19751003: [NaCl SDK] Check that browser has support for NaCl/PNaCl/PPAPI. (Closed)

Created:
7 years, 5 months ago by jvoung (off chromium)
Modified:
7 years, 5 months ago
Reviewers:
binji
CC:
chromium-reviews, Sam Clegg
Visibility:
Public.

Description

[NaCl SDK] Check that browser has support for NaCl/PNaCl/PPAPI. Demonstrate a canonical way to detect if the browser has support for NaCl/PNaCl in the SDK examples. Do the check before creating the embed tag, when the page loads. If the browser does not have support, do not create the embed and just update the status message. If NaCl is disabled in about:plugins, then this will show an error. If NaCl is not enabled in about:flags, then this will not show an error and continue loading. The embed tag will then either (a) be created for CWS apps or (b) show a puzzle piece for the open web. For PNaCl, the page will show an error and not attempt to create an embed tag if either NaCl is disabled in about:plugins, or PNaCl is disabled in about:flags. BUG=243040 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213271

Patch Set 1 #

Patch Set 2 : typo and comments #

Patch Set 3 : some fixes #

Patch Set 4 : indicate it could be disabled #

Total comments: 7

Patch Set 5 : cleanup and disable check for host #

Patch Set 6 : cap #

Patch Set 7 : paren on if #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -14 lines) Patch
M native_client_sdk/src/examples/common.js View 1 2 3 4 5 6 4 chunks +53 lines, -14 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jvoung (off chromium)
7 years, 5 months ago (2013-07-23 15:29:08 UTC) #1
binji
lgtm https://codereview.chromium.org/19751003/diff/9001/native_client_sdk/src/examples/common.js File native_client_sdk/src/examples/common.js (right): https://codereview.chromium.org/19751003/diff/9001/native_client_sdk/src/examples/common.js#newcode25 native_client_sdk/src/examples/common.js:25: * @param {bool} is_release True if this is ...
7 years, 5 months ago (2013-07-23 18:29:31 UTC) #2
jvoung (off chromium)
Thanks! Hmm it seemed like --register-pepper-plugin didn't add the mime type? Or maybe something was ...
7 years, 5 months ago (2013-07-23 19:57:45 UTC) #3
binji
https://codereview.chromium.org/19751003/diff/9001/native_client_sdk/src/examples/common.js File native_client_sdk/src/examples/common.js (right): https://codereview.chromium.org/19751003/diff/9001/native_client_sdk/src/examples/common.js#newcode286 native_client_sdk/src/examples/common.js:286: var is_release = path.toLowerCase().indexOf('release') != -1; On 2013/07/23 19:57:45, ...
7 years, 5 months ago (2013-07-23 20:01:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/19751003/25001
7 years, 5 months ago (2013-07-23 23:11:32 UTC) #5
commit-bot: I haz the power
7 years, 5 months ago (2013-07-23 23:31:02 UTC) #6
Message was sent while issue was closed.
Change committed as 213271

Powered by Google App Engine
This is Rietveld 408576698