Avatar of Tom Knowlton
Tom Knowlton
Flag for United States of America asked on

What is this: Error in response to storage.get: SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

Error in response to storage.get: SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
at Object.eval [as callback] (eval at <anonymous> (chrome-extension://ddiblodcpaaieoopolanaoecbhicgjfo/content.js:1:5883), <anonymous>:60:337)
at eval (eval at <anonymous> (chrome-extension://ddiblodcpaaieoopolanaoecbhicgjfo/content.js:1:5883), <anonymous>:60:297)
at eval (eval at <anonymous> (chrome-extension://ddiblodcpaaieoopolanaoecbhicgjfo/content.js:1:5883), <anonymous>:60:866)
at eval (eval at <anonymous> (chrome-extension://ddiblodcpaaieoopolanaoecbhicgjfo/content.js:1:5883), <anonymous>:60:15850)
at chrome-extension://ddiblodcpaaieoopolanaoecbhicgjfo/content.js:1:5878

Open in new window

JavaScriptGoogle Chrome OSVulnerabilities

Avatar of undefined
Last Comment
Tom Knowlton

8/22/2022 - Mon
SOLUTION
OriNetworks

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Tom Knowlton

ASKER
The error only shows up in the F12 developer tools (which displays javascript errors).

It happens when I try to run a program I am writing in JavaScript -- but nothing in the JavaScript explains this problem.

I am not developing or using any extensions.

I've removed all superfluous extensions.  Still the error.

I'll consider enabling the third party stuff.


Where do I find the manifest.json file?
Tom Knowlton

ASKER
screenshot of my F12 dev tools when this error occurs:
unition

This error is happening when I run the following code (just an HTML page with embedded JavaScript) for some HTML5 canvas drawing I am learning how to do:

<!DOCTYPE html>
<html>
  <head>
  <title></title>
    <style type="text/css">
      body {
        margin: 0px;
        padding: 0px;
      }
    </style>
  </head>
  <body>
    <canvas id="myCanvas" width="578" height="400"></canvas>
    <script type="text/javascript">

        var i = 0;
        var canvas = document.getElementById('myCanvas');
        var context = canvas.getContext('2d'); 

        var one = {
            x: 300,
            y: 300,
            color: '#aff',
            useletter: 'G'
        };

        var two = {
            x: 120,
            y: 120,
            color: '#eee',
            useletter: 'T'
        };   

        _myCircleArray = [one,two];

        window.requestAnimFrame = (function (callback) {
            return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame ||
        function (callback) {
            window.setTimeout(callback, 1000 / 60);
        };
        })();

    function drawTextBubble(myCircle, context) {    
//            radius: 50,
//            startAngle: 0,
//            endAngle: Math.PI * 2,
//            counterClockwise: false,       
//            
            context.beginPath();
            context.arc(myCircle.x, myCircle.y, 50, 0, Math.PI * 2, false);
            context.fillStyle = myCircle.color;
            context.fill();             
            context.strokeStyle = '#000';
            context.stroke();

            context.beginPath();
            context.fillStyle = '#000';
            context.fill();
            context.font = "40px Georgia";
            context.fillText(myCircle.useletter, myCircle.x - 10, myCircle.y + 10);
            context.strokeStyle = '#000';
            context.stroke();

            context.beginPath();
            context.fillStyle = '#000';
            context.fill();
            context.font = "40px Georgia";
            context.fillText('n', myCircle.x + 50, myCircle.y + 50);
            context.strokeStyle = '#000';
            context.stroke();                    
        }

       

        function animate(canvas, context, startTime) {
            var time = (new Date()).getTime() - startTime;
            context.clearRect(0, 0, canvas.width, canvas.height); // only clear once
            for (var a = 0; a < _myCircleArray.length; a++) {
                var myCircle = _myCircleArray[a];
                var amplitude = 150;
                var period = 3000;
                var centerX = (canvas.width / 2) - ((myCircle.radius * 2) / 2);
                var nextX = amplitude * Math.sin(time * 2 * Math.PI / period) + centerX;
                myCircle.x = nextX;
                drawTextBubble(myCircle, context);            
            }
            requestAnimFrame(function () {
                animate(canvas, context, startTime);
            });
        }

        // wait one second before starting animation
        setTimeout(function () {
            var startTime = (new Date()).getTime();
            animate(canvas, context, startTime);
        }, 1000);       

    </script>
  </body>
</html> 

Open in new window

OriNetworks

A third-party extension exists in your browser that is causing this rather than your code. Try disabling extensions then try again.

The access denied message is related to third party cookies as a result of the extension. Since you are not the extension developer, you will not have that manifest.json file anyway.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Tom Knowlton

ASKER
Are 3rd party extensions able to just install themselves without my permission?

This is always happening to me at home and at work.

I want the browser to always ask me before installing 3rd party extensions.
Tom Knowlton

ASKER
I removed ALL of my extensions...I still have the problem.  : (

What is unition.org?
SOLUTION
COBOLdinosaur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
lenamtl

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Tom Knowlton

ASKER
Thanks!
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.