function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
matt.ian.thomasmatt.ian.thomas 

Uncaught Security Error in Chrome - Sales Console

I have a visualforce page which overrides the standard view action for Case. The page has <apex:details> and when it loads in Console none of the standard links rendered on the page layout work (for example, "edit" on a related list item). This happens only in Google Chrome and the following error is thrown:

"Uncaught SecurityError: Blocked a frame with origin "https://c.na8.visual.force.com" from accessing a frame with origin "https://na8.salesforce.com". Protocols, domains, and ports must match."

Which leads to the following source:
function srcUp(url) {
    if (window.parent && window.parent.srcFromMain) {
        window.parent.srcFromMain(url);
    } else {
        srcSelf(url);
    }
}

Has anyone seen this before and know what the cause was? I suspect that some of the custom JS I've included in the page could be the issue, but I'm not entirely sure where to start looking since I can't recall during development exactly when it popped up. Thanks!
matt.ian.thomasmatt.ian.thomas
I was trying to call out that line 2 in the above JS snip was the offending line and so I bolded it. That's why it came out with the <b> tag, but just ignore that.
Sagar PareekSagar Pareek
Do solution suggested over here worked for you ?

http://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame
matt.ian.thomasmatt.ian.thomas
Thanks Sagar, but I'm not sure how to apply that post to my visualforce page though I feel like it adequately explains the error message. I'm not explicitly creating or dealing with iframes in my page; it appears to be a situation which is created at runtime that I'm not sure how to connect back to my markup/scripts that I've written.