New issue
Advanced search Search tips

Issue 859334 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 837401
Owner: ----
Closed: Jul 2
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Errors in console.log() lines in background script

Reported by srineshn...@gmail.com, Jul 1

Issue description

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

Steps to reproduce the problem:
1. Create background script
2. Create manifest json
3. Turn on developer mode
4. Load unpacked extension

## background.js
```javascript
function hello() {
    console.log("hello world")
}

hello();
```

## manifest.json
```json
{
  "name": "Getting Started Example",
  "version": "1.0",
  "description": "Build an Extension!",
  "manifest_version": 2,

  "background": {
    "scripts": [
      "background.js"
    ]
  }
}
```

What is the expected behavior?
* Extension should be loaded without any errors
* 'hello word' should be printed to background page console

What went wrong?
* Error when extension is loaded

WebStore page: 

Did this work before? N/A 

Chrome version: 66.0.3359.181  Channel: stable
OS Version: Linux mint 18.3
Flash Version: 

Even though there are errors, console log is printed successfully.
 
sample ext.zip
670 bytes Download
screenshot.png
19.2 KB View Download
Duplicate of  bug 837401 .
Fixed in Chrome 68 which will be pushed to the stable channel in about a month.
Labels: Needs-Milestone
Labels: Triaged-ET
Mergedinto: 837401
Status: Duplicate (was: Unconfirmed)
The issue looks similar to issue id: 837401. Hence, merging into the issue id: 837401.

Thanks...!!

Sign in to add a comment