Jump to content

Chrome Dev Console: Kaspersky Protection - JS windows onload error


Recommended Posts

Hi 

I view this JS Error.

 

Chrome dev tool console

Default.aspx:1 Error handling response: TypeError: Cannot read properties of undefined (reading 'isRedirected')
    at chrome-extension://ahkjpbeeocnddjkakilopmfdlnjdpcdm/snapshot/script.main.js:6518:35

 

Unchecked runtime.lastError: The message port closed before a response was received.

 

Chrome Extension Error Path click.

> chrome-extension://ahkjpbeeocnddjkakilopmfdlnjdpcdm/snapshot/script.main.js:6518:35

// ...

})(KasperskyLab);
KasperskyLab.AddRunner("wp", function(ns, session)
{
var Webpage = function()
{
var m_callFunction = ns.EmptyFunc;

function OnPing()
{
return ns.MaxRequestDelay;
}

function isFrameRedirected(callback)
{
browsersApi.runtime.sendMessage({command: "isFrameRedirected"},
function(response)
{
callback(response.isRedirected); // This Line 6518
}
);
}

// ...

Web site source

> /Lobby/Default.aspx

...

<div style="display:none;">
<iframe src="/Lobby/LongLiveSession/Default.aspx?rnd=404695.92362861" title="LongLiveSession" style="width:1px; height:1px;"></iframe>
</div>

...

> /Lobby/LongLiveSession/Default.aspx




<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title> LongLiveSession </title>
<script type="text/javascript">
// window.onload this point
window.onload = function() {
setTimeout(
function() {
location.href = '/Lobby/LongLiveSession/Default.aspx?rnd=862638.424086682';
},
600000 // 10분
);
};
</script>
</head>
<body>
<h1>LongLiveSession</h1>
</body>
</html>

 

Chrome Extenstion, Kaspersky Protection is disable after refresh “/Lobby/Default.aspx”.

no display errror

and enable after refresh.

same error display. 

 

thank yout

Link to comment
Share on other sites

Hello @Anders Kim

Welcome!

Please share with us:

  1. Win11 build → refer: How to find the version of the operating system
  2. Name, version & patch(x), x = letter, of installed Kaspersky software → on the Windows taskbar or hidden icons, rightclick the Kaspersky icon, select About? see our example

     

     

  3. Chrome version → chrome://settings/help ? 
  4. chrome://extensions/  → Kaspersky Protection extension version
  5. Have the Kaspersky Settings been restored to Default
  6. For Chrome browser, has a Reset & cleanup {  chrome://settings/reset  } been run ? 
  7. Has the Kaspersky Protection extension been reinstalled
  8. What is the actual impact of the “JS windows.onload error”, what is it stopping? 

Please let us know?

Thank you🙏

Flood🐳+🐋

Link to comment
Share on other sites

  1. Win11 build → refer: How to find the version of the operating system
    → Winver.png
  2. Name, version & patch(x)x = letter, of installed Kaspersky software → on the Windows taskbar or hidden icons, rightclick the Kaspersky icon, select About? see our exampleShow content

    → KAVVer.png

  3. Chrome version → chrome://settings/help ? 
    → ChromeVer.png
  4. chrome://extensions/  → Kaspersky Protection extension version ? 
    → KPVer.png
  5. Have the Kaspersky Settings been restored to Default
    → No, i don’t want.
  6. For Chrome browser, has a Reset & cleanup {  chrome://settings/reset  } been run ?
    → NO i don’t want
  7. Has the Kaspersky Protection extension been reinstalled
    → No, reinstall
    Just system format → Install KAV → Run chrome → KP Extension Use question? → i action,  “Yes” 
  8. What is the actual impact of the “JS windows.onload error”, what is it stopping? 
    → Web app, session base user login. session auto destroy delay.
    → actual impact? nothing. just Chrome Dev tool console error message.
    → stopping service or function? nothing.

     

 

My system info

Name :     KJYDEVELOP
CPU :    Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz   2.90 GHz
RAM    128GB

System Type :    64bit OS, x64 base cpu
Pen, Touch  :  Not exist, not support 
 

 

Edition :    Windows 11 Pro
Version :    21H2
Setup Date :    ‎2022-‎01-‎27
OS Build :    22000.493
Experience :    Windows 기능 경험 팩 1000.22000.493.0
 

 

Thank reply :)

Link to comment
Share on other sites

  • 1 month later...
On 2/10/2022 at 10:44 PM, Anders Kim said:
  1. Win11 build → refer: How to find the version of the operating system
    → Winver.png
  2. Name, version & patch(x)x = letter, of installed Kaspersky software → on the Windows taskbar or hidden icons, rightclick the Kaspersky icon, select About? see our exampleShow content

    → KAVVer.png

  3. Chrome version → chrome://settings/help ? 
    → ChromeVer.png
  4. chrome://extensions/  → Kaspersky Protection extension version ? 
    → KPVer.png
  5. Have the Kaspersky Settings been restored to Default
    → No, i don’t want.
  6. For Chrome browser, has a Reset & cleanup {  chrome://settings/reset  } been run ?
    → NO i don’t want
  7. Has the Kaspersky Protection extension been reinstalled
    → No, reinstall
    Just system format → Install KAV → Run chrome → KP Extension Use question? → i action,  “Yes” 
  8. What is the actual impact of the “JS windows.onload error”, what is it stopping? 
    → Web app, session base user login. session auto destroy delay.
    → actual impact? nothing. just Chrome Dev tool console error message.
    → stopping service or function? nothing.

     

 

My system info

Name :     KJYDEVELOP
CPU :    Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz   2.90 GHz
RAM    128GB

System Type :    64bit OS, x64 base cpu
Pen, Touch  :  Not exist, not support 
 

 

Edition :    Windows 11 Pro
Version :    21H2
Setup Date :    ‎2022-‎01-‎27
OS Build :    22000.493
Experience :    Windows 기능 경험 팩 1000.22000.493.0
 

 

Thank reply 🙂

Hello,

In my environment, Run the html code from firefox,  Nothing occurred. This code only set a redirection after windows loaded 600000ms.

<html>
	<head>
		<meta charset="utf-8" /> 
        <meta name="viewport" content="width=device-width, initial-scale=1" />
		<title> LongLiveSession </title>
        <script type="text/javascript">
            // window.onload this point
            window.onload = function() {
                setTimeout(
                    function() {
                        location.href = 'Url for redirection';
                    },
                    600000 // 10분
                );
            };
        </script>
	</head>
	<body>
        <h1>LongLiveSession</h1>
	</body>
</html>

All the browsers occurred this error or only in chrome? Close other browser addone to check this situation.

Regards.

Link to comment
Share on other sites

  • 5 weeks later...

I'm also getting this error, win11, chrome; though its preventing the loading of a twitter widget which embeds public timelines in html

 

an example of the code it's blocking:

<a class="twitter-timeline" href="https://twitter.com/TwitterDev?ref_src=twsrc%5Etfw">Tweets by TwitterDev</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

Link to comment
Share on other sites

  • 3 weeks later...
Posted (edited)

I have check this. Since several days, like the last Update of Google chrome to the latest Version, i get this error, too!

 

Error: Unchecked runtime.lastError: The message port closed before a response was received.

I got this Error on every Sites, which you visit! And the Counter doesn't stop.

I have check this and find following:

1.)  Google says, this will happen, because Google Crhome does not allow Croos-Origin.

I have reinstall, check PCs and so... but 

2.) Only what will help, is to uninstall the extension "Kaspersky Protection".

3.) You have to check this. Uninstall the Extension: Everything fine again! (Only - no protection...)

4.) So, I think, the Developer-Area has to check this... maybe together with google, because i find every days, more and more People, who got this error. And, not forgot: Noteverybody looks in the console or knows what is "Console" in Crhome...

At Last: Only in Google - Chrome - this happen and only after the last Version ( Since Version: 99 / 100...)

@ the moment:

Deinstall the Extension: "kaspersky Protection" --> No Problem.

 

 

 

Kaspersky.jpg

Edited by DevMo
Link to comment
Share on other sites

  • 3 weeks later...
Posted (edited)

I think this thread deserve more attention, it had been showing up in the past couple of weeks (eventually I disabled the extension, just now finding out it still isn't fixed) in the javascript console on every single tab (which I have around 400, the exceptions it throws per second is literally causing performance issues), it literally wasted me 10 minutes trying to disable each plugin (I have around 60) to see which extension is causing this disturbing console spamming bug. I'm currently on Windows 11 21H2 22000.675, Kaspersky Protection extension 2.0.162.0, Brave 1.39.111 (Chromium 102.0.5005.61)

Edited by Ian Lau
Link to comment
Share on other sites

Hi, I'm having exactly the same problem.

I see this message on the console for every tab.

Error is thrown every ~100ms! Yes 10 errors by second!

Its really anoying as a web developer seeing this error counter go up quickly in every tab.

 

Only solution.... Disable kaspersky protection on chrome.

 

As far as I remember, I'm seeing this error from a week ago.

Edited by Pipe
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.