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

After upgrading to FF47, "null" destination appears on some sites and functionality is broken #784

Closed
fzimmerm opened this issue Jun 22, 2016 · 3 comments

Comments

@fzimmerm
Copy link

fzimmerm commented Jun 22, 2016

Version: 1.0.beta12.1

Steps to reproduce:

  1. Create a new Firefox profile
  2. Set RP's default policy to "deny"
  3. Visit http://gbatemp.net/review/mighty-no-9.467/
  4. Allow *.cloudflare.com
  5. Scroll down and try to click on one of the image thumbnails

What happens?

  1. The image opens in a modal, all images scroll by very quickly and the modal closes.
  2. Notice how "null" appears as a destination. Allowing requests to it doesn't fix the issue.

What should happen?

  1. A modal showing the image and allowing navigation between images should appear.

Other, similar bug:

Steps to reproduce:

  1. Create a new Firefox profile
  2. Set RP's default policy to "deny"
  3. Install and enable the rikaichan add-on and a dictionary.
  4. Open a page with japanese characters and hover over a kanji character.

What happens?

  1. Instead of a pop-up with the translation being displayed near the cursor, an unformatted translation is displayed at the bottom of the page.
  2. Notice that "rikaichan" appeared as a destination. Globally allowing requests to it seems to fix the problem.

What should happen?

  1. A pop-up with the translation should appear near the cursor.
@myrdd
Copy link
Member

myrdd commented Jun 24, 2016

Okay, seems like these are two issues. Both issues are independent of the Firefox version, i.e. they are also an issue on Fx45-esr. However, both issues have been introduced by commit d1f6976. I already expected this would break something. Thank you for reporting.

In the first issue, a request to "about:blank" is made. The fix will be to globally allow requests to "about:blank" again. Fyi, you can read about about:blank in the NoScript FAQ.

The rikaichan add-on causes a request from the website's url to chrome://rikaichan/skin/popup-blue.css. This request should be allowed in case the rikaichan add-on is installed.

I'm planning to release a hotfix this weekend. Until then, please use beta11.1 to work around the first issue.

@myrdd
Copy link
Member

myrdd commented Jun 26, 2016

Regarding the second issue, I'm going to allow chrome://*/skin/, since other Add-ons need this as well (see e.g. this review).

Allowing chrome://*/skin/ seems to be safe; it looks like Fx does security checks on "chrome" uris. See this screenshot of my test:
screenshot of trying to access a skin file, fails with security error
The site tries to show an image with the given URI. The error message is Security Error: Content at http://www.maindomain.test/internal-destinations_1.html may not load or link to chrome://rpcontinued/skin/requestpolicy-icon-blocked.png., and RP is not even asked whether the request should be allowed.

myrdd added a commit that referenced this issue Jun 26, 2016
myrdd added a commit that referenced this issue Jun 26, 2016
@myrdd
Copy link
Member

myrdd commented Jun 26, 2016

Should be fixed in 1.0.beta12.2 and 1.0.beta12.2.1508.rbb94a69.pre.

@myrdd myrdd closed this as completed Jun 26, 2016
jrrdev pushed a commit to jrrdev/requestpolicy that referenced this issue Nov 22, 2017
jrrdev pushed a commit to jrrdev/requestpolicy that referenced this issue Nov 22, 2017
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

2 participants