Channel links: "Unsafe JavaScript attempt to initiate navigation for frame with URL"

Channel links: "Unsafe JavaScript attempt to initiate navigation for frame with URL"
0

#1

Hello! i’m finishing my twitch tv project but i still have one issue that i can’t solve. When you click in any channel, the twitch page doesn’t load and i don’t understand why.

The console error is: “Unsafe JavaScript attempt to initiate navigation for frame with URL ‘https://www.twitch.tv/food’ from frame with URL ‘http://s.codepen.io/boomerang/fd3e04d4703d9f9e421217074845aca91475776882091/index.html’. The frame attempting navigation is sandboxed, and is therefore disallowed from navigating its ancestors.”

This is my pen http://codepen.io/mundovacio/pen/JRAqNv?editors=0010

I appreciate some help! thanks!


#2

Hey, you made a typo on line 98 of your JS. It should be target="_blank" instead of _blanck.

BTW: Nice, clean design!


#3

you are right, I corrected to target="blank" but it still doesn’t loads the twitch page :confused: some suggestion?

thank you for the compliment!


#4

How do you mean doesn’t load? It does open a new tab for me.


#5

yeah, opens a new tab but don’t loads the twitch page content, it stays on load event forever :watch:. That’s the problem


#6

this is what i see. Is it only in my device?


#7

It is codepen ‘bug’:

Solution: replace pen in your codepen address with debug (and you can also remove ?editors=0010):

http://codepen.io/mundovacio/debug/JRAqNv

#8

Big thank you! In mobile devices seems to work fine without using your url http://codepen.io/mundovacio/debug/JRAqNv

Thanks to @BenGitter and @jenovs for helping me!