Issue metadata
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 descriptionUserAgent: 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:
,
Apr 23 2018
,
Apr 24 2018
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..
,
Apr 24 2018
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
,
Apr 24 2018
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
,
Apr 24 2018
,
Apr 25 2018
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..
,
Apr 25 2018
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by woxxom@gmail.com
, Apr 23 2018