New issue
Advanced search Search tips

Issue 835766 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 835287
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

chrome.runtime properties and method not working for latest chrome update Version 66.0.3359.117

Reported by ttplsha...@gmail.com, Apr 23 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36

Steps to reproduce the problem:
call any properties or method in script 
e.g : 

chrome.runtime.lastError  or 
chrome.runtime.id  or 
chrome.runtime.getManifest() 

its not working 

What is the expected behavior?
No Error

What went wrong?
Gives type error 

TypeError: Cannot read property 'lastError' of undefined

Did this work before? Yes before this Version 66.0.3359.117

Chrome version: 66.0.3359.117  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 

Comment 1 by woxxom@gmail.com, Apr 23 2018

Since none of the known extensions are affected, there must be something else broken in your case.
Attach an extension that exhibits the problem or at least a screencast video.
Labels: Needs-Bisect Needs-Triage-M66
Cc: susan.boorgula@chromium.org
Labels: Triaged-ET Needs-Feedback
ttplshared@ Thanks for the issue.

As per comment #1, request you to provide a extension/test URL and the screen cast of the steps followed to reproduce this issue, which will help us in further triaging.

Thanks..
Thank u for reverting on my issue

My js code : 

const VFD = {
	extensionId: "myid",
	strPort: port,
	strFirstLine: " WELCOME",
	strSecondLine: "",
	write: function(strFirstLine, strSecondLine) {
		if (typeof chrome != "undefined") {
			this.strFirstLine = strFirstLine;
			this.strSecondLine = strSecondLine;

			if (this.strPort != "" && this.strFirstLine != "") {
				var messageToken = {
					"port": this.strPort,
					"firstLine": this.strFirstLine,
					"secondLine": this.strSecondLine,
				}

				chrome.runtime.sendMessage(this.extensionId, messageToken, this.onSend);
			}
		}
	},
	onSend: function(response) {

	},

};




Extention code : 
code is in attached files.
PFA
scripts.js
3.2 KB View Download
manifest.json
341 bytes View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Apr 24 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Blink Platform>Extensions>API
Labels: Needs-Feedback
ttplshared@ Thanks for the update.

Tested this issue on Windows 10 on the reported version 66.0.3359.117 and the latest Canary 68.0.3405.0 by following the below steps.

1. Added the above given files to a folder.
2. launched chrome and navigated to chrome://extensions and tried loading the file, but can see the error "Could not load background script 'background.js'.Could not load manifest."
Attached is the screen cast of the steps followed.

Request you to check and confirm if anything is missed from our end in triaging the issue.

Thanks..
835766.webm
2.8 MB View Download
Mergedinto: 835287
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment