New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 635792 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 607555
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

Log to the JavaScript console when an origin trial token fails

Project Member Reported by mgiuca@chromium.org, Aug 9 2016

Issue description

Origin trial tokens can fail for a wide range of reasons:
- The signature is invalid.
- The token is invalid for some reason.
- The token has expired.
- The trial has been globally disabled.
- The trial has ended.
- etc

Currently any of these failures just result in the feature being silently disabled. There should be a console error logged if an origin trial token has been supplied but it the trial cannot be activated for any reason, and the reason should be given.
 
Some of these are problematic, in a world where multiple browsers implement the Origin Trial framework. We want to encourage site authors to add multiple tokens to a page, in order to support:
  - tokens for multiple browser vendors
  - multiple signing keys in chrome (test and production, for instance)
  - multiple origins (so you can serve the same content from testing, staging and production origins)
  - tokens for features you don't use on a page
  - tokens for features we don't recognize yet

None of these are errors, even though they're all situations where a given browser may not be able to use a token.

We had console logging for a while, but it was rather spammy (even though it only reported the single most-specific error it could find).

We have crbug.com/607555 to add an interface to devtools that can show you the status of any and all tokens on the page, which I think will be a more useful interface than console output.
Labels: -Type-Bug Type-Feature

Comment 3 by mgiuca@chromium.org, Aug 10 2016

Mergedinto: 607555
Status: Duplicate (was: Available)
Thanks for the summary. That's fine, you already have a bug tracking more helpful feedback, and your approach seems more reasonable.

Sign in to add a comment