httpswitchboard icon indicating copy to clipboard operation
httpswitchboard copied to clipboard

Frames not working as expected

Open hrj opened this issue 11 years ago • 3 comments

On this website: https://ant.apache.org/manual/index.html

I have enabled "frames" in the matrix. But am not able to actually view the documents in the right-side frame, after clicking on the links in the left-side frame.

Note, you need to click to the second level of the table-of-contents in order to update the right-side frame.

The message shown in the console is:

Unsafe JavaScript attempt to initiate navigation for frame with URL 'https://ant.apache.org/manual/cover.html' from frame with URL 'https://ant.apache.org/manual/installlist.html'. The frame attempting navigation is sandboxed, and is therefore disallowed from navigating its ancestors.

httpsb version: 1.0.0.4

hrj avatar Jul 26 '14 06:07 hrj

Do you have script blocked for that site?

gorhill avatar Jul 26 '14 06:07 gorhill

Ah! I did have it blocked (by default).

Enabling JS + refreshing page got it working! (Before reporting the bug, I had tried enabling JS without refreshing. The matrix didn't show any entry for scripts, hence I didn't give it much thought.)

So the bug here seems to be that script attempt is not reported in the matrix?

hrj avatar Jul 26 '14 06:07 hrj

There is no script. It's the sandbox directive injected into the frame, it blocks everything except two specific things. It's difficult to tune, and it looks like I will have to allow something navigation to not cause the breakage you experienced. What's scares me by adding these permissions is to interfere with existing ones set by the site. I will have to read all about this (huge doc) carefully.

gorhill avatar Jul 26 '14 06:07 gorhill