New issue
Advanced search Search tips

Issue 724650 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

No way to check for chrome.runtime.lastError with chrome.downloads.setShelfEnabled

Reported by bugs.chr...@eigenvektor.de, May 19 2017

Issue description

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

Steps to reproduce the problem:
1. install an extension that disables the download shelf
2. write another extension and do: chrome.downloads.setShelfEnabled(true)

What is the expected behavior?

What went wrong?
setShelfEnabled doesn't have a callback function, so I can't check for lastError.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 58.0.3029.110  Channel: n/a
OS Version: 
Flash Version: Shockwave Flash 24.0 r0

I'm still new to Chrome extensions, but every source tells me to check for lastError in the callback function. Please tell me if there is another way.
 

Comment 1 by woxxom@gmail.com, May 20 2017

It's not the only function in extensions API that generates errors/exceptions without providing any way to detect/catch them. A few reported issues are already submitted to this bugtracker (e.g. issue 696494). I wonder if rdevlin's work on C++ bindings in  issue 653596  will fix that.
Labels: Needs-Triage-M58
Components: Platform>Extensions>API
Labels: -Hotlist-Interop
Labels: TE-NeedsTriageHelp
Project Member

Comment 5 by sheriffbot@chromium.org, May 23 2018

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment