Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

popup windows display the allow/deny bar in the wrong window #297

Closed
msxfm opened this issue Jul 7, 2014 · 10 comments
Closed

popup windows display the allow/deny bar in the wrong window #297

msxfm opened this issue Jul 7, 2014 · 10 comments
Milestone

Comments

@msxfm
Copy link

msxfm commented Jul 7, 2014

Issue by alexlehm
Tuesday Mar 20, 2012 at 18:24 GMT
Originally opened as RequestPolicy/requestpolicy#297


when clicking on a link that opens a new empty window and then redirects this windows url to the target url, the yellow message bar with allow/deny is displayed in the opening window, not in the new window. this means that when you click allow, the wrong window displays the opened content.

@msxfm
Copy link
Author

msxfm commented Jul 7, 2014

Comment by DavidJCobb
Saturday Oct 06, 2012 at 03:02 GMT


This also often happens when opening a link in a new tab, if that link redirects to a different URL. The opener tab (or sometimes both tabs) will show the Allow/Deny bar. If both tabs show that bar, then clicking Allow in one tab and switching to the other will re-show the bar in that other tab.

@nodiscc
Copy link
Contributor

nodiscc commented Nov 11, 2014

@alexlehm do you still have this problem? Is there a page where I can test this?

This also often happens when opening a link in a new tab, if that link redirects to a different URL. The opener tab (or sometimes both tabs) will show the Allow/Deny bar

I can't reproduce this either (for example, "open in new tab" on a google search result, the redirect warning appears in the proper tab). @DavidJCobb do you still have this problem or a link to a page where we can reproduce this?

Thanks

@alexlehm
Copy link

I am still seeing the issue, whether this happens depends on the way a redirect is implemented in a new window.
Please take a look at my example page at http://www.lehmann.cx/redirtest/ this has 4 kinds of redirects, the first two work, the last two don't.

Redirect with Refresh shows the warning bar in the original window and the new opened window (this is redir3 in my examples) and redirect by opening the window first and assigning a new url later shows the warning bar only in the original window (and redirects the wrong window afterwards) (this is redir4 in my examples)
The fourth example is not quite correctly implemented, I had to put in the alert to make the redirect work, however I have seen this kind of redirect and the issue with some pages which couldn't find again.

@myrdd myrdd added this to the 1.0 milestone Nov 12, 2014
@myrdd
Copy link
Member

myrdd commented Nov 12, 2014

@alexlehm I can confirm this bug for link redir3

@alexlehm
Copy link

I think I have found another instance where something similar happens. On twitter cards, a window is opened but the base page displays that a request to the target url was blocked.
E.g. if you take a look at this twitter post https://twitter.com/GeorgeTakei/status/532610034346106880 and click on view, it will show that a request to ohmyyy.gt was blocked and the opened page stays empty.
If the target domain is allowed before it works and the redirect to the domain is displayed in the correct window.

@nodiscc
Copy link
Contributor

nodiscc commented Nov 14, 2014

This is what I get on https://twitter.com/GeorgeTakei/status/532610034346106880 (default deny policy):

  • left click on "View now" button: blank tab opens about:blank, no redirection warning. Going back to the twitter page now lists ohmyyy.gt as blocked target
  • Ctrl+click: same result.
  • Middle click: Firefox's popup warning, prevents from opening http://ohmyyy.gt/b3ZoD2, nothing gets added to RP̈́'s menu. No RP redirection warning either.

So this is another bug? I don't have redirection warnings (unless I whitelist ohmyyy.gt as you said, and then it's working as expected)

@alexlehm
Copy link

I think that is another variant of the same bug, the page that should receive the warning is the empty page, but the other page processes the redirect and blocks it. when the target domain is whitelisted it opens the windows and goes to the page, it also does so when requestpolicy is disabled.

@myrdd
Copy link
Member

myrdd commented Nov 14, 2014

The bug @nodiscc describes (left-click and ctrl-click on https://twitter.com/GeorgeTakei/status/532610034346106880) is issue #36

Middle click: Firefox's popup warning, prevents from opening http://ohmyyy.gt/b3ZoD2, nothing gets added to RP̈́'s menu. No RP redirection warning either.

This has nothing to do with RP.

Btw @alexlehm I can also reproduce the bug for redir4.

@myrdd myrdd modified the milestones: 1.0.beta9, 1.0 Nov 14, 2014
@myrdd
Copy link
Member

myrdd commented Nov 14, 2014

I will fix this bug after e10s compatibility is completed – see #489 (comment) for details

@myrdd myrdd modified the milestones: 1.0.beta9, 1.0.beta11 Apr 28, 2015
@myrdd
Copy link
Member

myrdd commented Jan 13, 2016

I think this issue is solved. If not, please reopen.

@myrdd myrdd closed this as completed Jan 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants