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

Issue 698339 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

chrome.mojoPrivate.define fails silently

Project Member Reported by jrw@google.com, Mar 3 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
Call define() with an invalid dependency, e.g.

  chrome.mojoPrivate.define('foo', ['no such dependency'], () => {});

What is the expected behavior?
Several options, from most to least preferable (IMHO):

- The call should throw an exception.
- An error should be logged to the JS console.
- The dependency should resolve to null.
- An error should be logged with LOG/DLOG/VLOG.

Ideally I'd like this call to throw an exception.  If that's not possible (because dependencies are resolved asynchronously), I'd like to see an error logged to the console, and if that's too hard to implement, perhaps the callback could be invoked with null in place of the missing dependency.

What went wrong?
The function returns undefined, and the callback is not invoked.

Did this work before? No 

Chrome version: 57.0.2987.54  Channel: beta
OS Version: 3.13.0-106-generic
Flash Version:

 
Components: -Blink Platform>Extensions
Cc: kavvaru@chromium.org
Labels: Needs-Feedback
Could you please provide any sample test file or URL to triage the issue from test team  end.

Thanks,
Project Member

Comment 3 by sheriffbot@chromium.org, Jul 26 2017

Labels: Hotlist-Google
Status: WontFix (was: Unconfirmed)
As there is no action on this issue for long time closing this issue. Request you to update your Chrome to latest #66.0.3359.181 and verify. Feel free to file a new issue if the issue is still reproduced at your end.

Thanks!

Sign in to add a comment