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

button to load newly whitelisted content without reloading the page #2

Closed
3 tasks done
Exagone313 opened this issue Apr 18, 2018 · 1 comment
Closed
3 tasks done
Labels
declined declined by the developer enhancement New feature or request

Comments

@Exagone313
Copy link

Prerequisites

  • Did you perform a cursory search of the issue tracker?
    • Your issue may already be reported.

(Removing these, not a bug)

  • Are you running the latest version?
  • Did you check the documentation?

Description

I'm not enabling 1st-party JavaScript for unknown websites. A regular issue occurs when submitting cross-origin forms, e.g. when paying with a credit card (it goes from the shop website to a bank website, etc...): you definitely don't want to repeat the HTTP request because it's common to have the new request forbidden, and you can't easily add rules for that bank website before submitting the form, without checking in dev tools each time where it will go. If the accessed website works without JavaScript, fine, I can proceed. If not, I have to manually edit the HTML in dev tools or to cancel the request and try again.

Steps to Reproduce

  1. Visit a domain shop.invalid that has a POST form to bank.invalid
  2. Submit the form
  3. Enable JavaScript for that new origin
  4. Reload page
  5. The website forbids this second request for some stupid internal reason (uniquely valid token, not just short-living token)

Feature request

It would be nice if uMatrix saved a list of all blocked requests or rather DOM elements, to be able to load them after changing the whitelist (for blacklisting it's definitely not possible to unload JavaScript without reloading the page, or else when reloading all JavaScript files, you might have a repeated XMLHttpRequest or similar).

Then, you'd have a button (there is exactly the space for one more 😛) to try to load content previously blocked.

I understand that it may cause issues for unexperienced users in some cases when it fails to load new content properly. For example, whitelisting a library after scripts depending on it.


If you think that this feature could fit in uMatrix, but may not want to implement it yourself, I may work on it myself although I have numerous projects around. As you know the code, you have a better idea if something is possible without drastic changes.

Your environment

  • uMatrix version: 1.3.6
  • Browser Name and version: Firefox 59.0.2 (self built without EME support)
  • Operating System and version: Arch Linux
@gorhill
Copy link
Member

gorhill commented Apr 18, 2018

Not realistically possible. When a page loads, javascript resources are executed in a specific order -- can't just load them afterward and expect this will work.

Declined.

@gorhill gorhill closed this as completed Apr 18, 2018
@uBlock-user uBlock-user added the declined declined by the developer label Apr 19, 2018
@uBlock-user uBlock-user changed the title Feature request: button to load newly whitelisted content without reloading the page button to load newly whitelisted content without reloading the page Jul 2, 2018
@uBlock-user uBlock-user added the enhancement New feature or request label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
declined declined by the developer enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants