Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

addons.mozilla.org rmb downloads dont work #91

Closed
9 tasks done
dezhavu opened this issue Dec 24, 2018 · 16 comments
Closed
9 tasks done

addons.mozilla.org rmb downloads dont work #91

dezhavu opened this issue Dec 24, 2018 · 16 comments
Labels
invalid Not a valid issue

Comments

@dezhavu
Copy link

dezhavu commented Dec 24, 2018

Prerequisites

  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
  • This is not a support issue or a question
    • Support issues and questions are handled at /r/uMatrix
  • I tried to reproduce the issue when...
    • uMatrix is the only extension
    • uMatrix with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uMatrix
  • I checked the documentation to understand that the issue I report is not a normal behavior
  • I used the logger to rule out that the issue is caused by my ruleset

Description

A specific URL where the issue occurs

Steps to Reproduce

ok, this one came up suddenly:

  1. go to addons.mozilla.org and choose any addon:
    https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers
  2. RIGHT CLICK on green button "Add to Firefox" > Save Link As... > and you get alert:
    "The download cannot be saved because an unknown error occurred.
    Please try again."

Ruleset

defaults


https-strict: behind-the-scene false
matrix-off: about-scheme true
matrix-off: behind-the-scene true
matrix-off: chrome-extension-scheme true
matrix-off: chrome-scheme true
matrix-off: moz-extension-scheme true
matrix-off: opera-scheme true
matrix-off: wyciwyg-scheme true
noscript-spoof: * true
referrer-spoof: * true
referrer-spoof: behind-the-scene false
* * * block
* * css allow
* * frame block
* * image allow
* 1st-party * allow
* 1st-party frame allow

Supporting evidence

imagebam.com

Your environment

  • uMatrix version: latest
  • Browser Name and version: ffx 64 x64
  • Operating System and version: win10 1809 x64

Firefox 64 all default settings+ these custom two to prevent addons.mozilla.org blocks:
privacy.resistFingerprinting.block_mozAddonManager=true
( btw privacy.resistFingerprinting=false )

@dezhavu
Copy link
Author

dezhavu commented Dec 24, 2018

@dezhavu
Copy link
Author

dezhavu commented Dec 24, 2018

WebConsole output

[Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIWebBrowserPersist.savePrivacyAwareURI]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: chrome://global/content/contentAreaUtils.js :: internalPersist :: line 523" data: no]
internalPersist
chrome://global/content/contentAreaUtils.js:523:5
continueSave
chrome://global/content/contentAreaUtils.js:438:5
internalSave/<
chrome://global/content/contentAreaUtils.js:392:7

@Thorin-Oakenpants
Copy link

amo

You need to allow "other"

@uBlock-user uBlock-user added the invalid Not a valid issue label Dec 25, 2018
@uBlock-user
Copy link
Contributor

uBlock-user commented Dec 25, 2018

I used the logger to rule out that the issue is caused by my ruleset

You didn't do that, this issue is caused by blocked other column.

@gorhill That cell number count on the "other" column doesn't appear in the UI matrix on v1.13.15rc1 on Firefox.

@gwarser
Copy link

gwarser commented Dec 25, 2018

That cell number count on the "other" column doesn't appear in the UI matrix on v1.13.15rc1 on Firefox.

Because it's seen as "tabless" (behind the scene, with mozilla.net context)

@uBlock-user
Copy link
Contributor

@gwarser That doesn't happen in rc0 build, so that's not the case. This is a regression.

@gwarser
Copy link

gwarser commented Dec 25, 2018

Yes, in rc0 this request is not detected as tab-less.


Only one change gorhill/uMatrix@494cd9e

@uBlock-user
Copy link
Contributor

so is it a regression or not a regression ?

@gorhill
Copy link
Member

gorhill commented Dec 25, 2018

Whatever I could reproduce given the missing information, I didn't see anything unexpected.

@uBlock-user
Copy link
Contributor

Whatever I could reproduce given the missing information, I didn't see anything unexpected.

You mean OP's case ?

@gorhill
Copy link
Member

gorhill commented Dec 25, 2018

As per logger, I got one behind-the-scene network request on my side, everything else was properly reported in the matrix. Screenshots of popup panel are pointless if they are not accompanied by logger output if trying to make a point something is wrong in the panel. I will investigate if and only if someone makes the case that something in the logger, which not tabless, is not reported in the panel.

@gorhill
Copy link
Member

gorhill commented Dec 25, 2018

The missing information by OP is the value of his extensions.webextensions.restrictedDomains string, so I just removed addons.mozilla.org on my side.

@uBlock-user
Copy link
Contributor

uBlock-user commented Dec 25, 2018

Screenshots of popup panel are pointless if they are not accompanied by logger output if trying to make a point something is wrong in the panel.

I didn't post any screenshots here, not sure whether you're addressing this to me or to the OP.

My issue is different and is posted in - #91 (comment)

The requests that are expected to appear but don't appear in the other column on AMO are tabless.

@Remu-rin
Copy link

Remu-rin commented Jan 9, 2019

@gorhill

As per logger, I got one behind-the-scene network request on my side, everything else was properly reported in the matrix.

Previously, starting from 1.3.8 (see #5 (comment)) and up to 1.3.14 (or 1.13.15rc0, as stated above by the users of dev builds) uMatrix also reported "save as" requests in the popup (on github releases page for example, or AMO if you remove restriction for extensions to work). It was easier to see and unblock for users.

In doing so, it also tries to find the tab which matches best that context. So when you try to "Save as File...", you will have a network request of type "other" reported in the matrix.

Now in 1.3.16 it is broken and only visible in the logger. Hence discussions in this issue, #92 (though it is opened with 1.3.14 version) and partly #62. Is this change intentional or a regression?

@gorhill
Copy link
Member

gorhill commented Jan 9, 2019

Before 1.3.16 there was a patch to map a tab-less network request to an existing tab where possible. This patch of code was put in place in order to allow users to be able to set rules on these tab-less network requests for which a context was available, as there was no other way to set rules for these requests other than blindly guessing and manually entering them in the rule editor.

With 1.3.16, it is now possible to properly set rules with all the proper context information, even for tab-less network requests, such that the patch is no longer needed.

That patch was not the proper solution, it was added strictly to have at least some ways to set rules for tab-less requests until the proper solution was provided, thus the patch was removed from 1.3.16.

It is not the proper solution because uMatrix merely looked-up a tab for which a tab-less request was a match, and the resulting tab may or may not have been directly related to the request. If a site uses a service worker and you have 10 tabs opened for that site, uMatrix would have maybe be able to find a tab to which to report it, and the tab may or may not be the one in which an action was triggered to cause the tab-less request to be fired.

The proper way is to report the network requests as accurately as possible, and thus tab-less network requests can't be reported in tab-bound popup panel.

@uBlock-user
Copy link
Contributor

thus tab-less network requests can't be reported in tab-bound popup panel

So gwarser's suggestion can't be implemented ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid Not a valid issue
Projects
None yet
Development

No branches or pull requests

6 participants