noscript.key.revokeTemp shortcut not working.

Ask for help about NoScript, no registration needed to post
Mercury

noscript.key.revokeTemp shortcut not working.

Post by Mercury »

The noscript.key.revokeTemp keyboard shortcut does not work. It does, work, temporarily, immediately after being set, but this does not survive a browser restart.

Repro steps:

- Open about:config
- Set noscript.keys.tempAllowPage to VK_F8
- Set noscript.keys.revokeTemp to VK_F9
- (Optional) Navigate to a page with blocked scripts. Press F8. Press F9. Observe that both shortcuts work as intended.
- Completely close Firefox and restart.
- Navigate to a page with blocked scripts. Press F8. Observe this shortcut works as intended.
- Press F9. Observe that nothing happens.

Can anyone else confirm?
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.5) Gecko/20150608 PaleMoon/25.5.0
barbaz
Senior Member
Posts: 11066
Joined: Sat Aug 03, 2013 5:45 pm

Re: noscript.key.revokeTemp shortcut not working.

Post by barbaz »

Thanks for the report

I can confirm this in a clean Firefox 39.0 on Linux Mint 64-bit.
noscript.keys.revokeTemp must be set in the same session in which it's to be used. Doesn't seem to matter what keystroke you assign to it.

Nothing related in the Browser Console.
*Always* check the changelogs BEFORE updating that important software!
-
Mercury

Re: noscript.key.revokeTemp shortcut not working.

Post by Mercury »

Hello,

After a couple of updates, this bug is still not fixed (as of 2.6.9.38)

I understand if it's a low-priority issue, but is there an actual bug logged for this anywhere? Or, if not, any way for me to log a bug, other than in this forum?
Mozilla/5.0 (Windows NT 5.1; rv:25.7) Gecko/20151003 PaleMoon/25.7.2
barbaz
Senior Member
Posts: 11066
Joined: Sat Aug 03, 2013 5:45 pm

Re: noscript.key.revokeTemp shortcut not working.

Post by barbaz »

This forum is the place to report bugs, this thread is where it has been logged. Technically the place to report bugs is the NoScript Development forum, but that requires registration and in practice bugs often get reported in NoScript Support threads. Support vs Development can be a blurred line.
The best you can do is keep bumping this thread every few months or so (as you just did).
(If you do decide to register, we can move this thread to NoScript Development...)
*Always* check the changelogs BEFORE updating that important software!
-
palme
Junior Member
Posts: 34
Joined: Thu Sep 16, 2010 1:05 pm

Re: Key shortcut

Post by palme »

it seems the noscript.key.revokeTemp key doesn't work. it has to be set every startup of firefox manually to make it work again (go to about:confing and reassign a value), noscript.keys.tempAllowPage works as expected without setting it every startup.

would be nice to get this fixed. the bug was already reported here: viewtopic.php?f=7&t=21077
Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0
palme
Junior Member
Posts: 34
Joined: Thu Sep 16, 2010 1:05 pm

Re: Key shortcut

Post by palme »

i fixed the bug :) - "keys.revokeTemp" is not initialized therefore it doesn't work.

With this patch applied "keys.revokeTemp" works without setting it manually after every startup

Code: Select all

diff --git a/content/noscript/noscriptOverlay.js b/content/noscript/noscriptOverlay.js
index b047456..16325f1 100644
--- a/content/noscript/noscriptOverlay.js
+++ b/content/noscript/noscriptOverlay.js
@@ -2255,7 +2255,7 @@ return noscriptUtil.service ? {
       const initPrefs = [
         "statusIcon", "statusLabel", "preset",
         "keys.ui", "keys.toggle", "keys.tempAllowPage",
-        "notify", "notify.bottom",
+        "keys.revokeTemp", "notify", "notify.bottom",
         "notify.hide", "notify.hidePermanent", "notify.hideDelay",
         "stickyUI.liveReload",
         "hoverUI"
Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0
barbaz
Senior Member
Posts: 11066
Joined: Sat Aug 03, 2013 5:45 pm

Re: noscript.key.revokeTemp shortcut not working.

Post by barbaz »

Thank you for the patch. 8-) I will notify Giorgio that this is here.
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: noscript.key.revokeTemp shortcut not working.

Post by Giorgio Maone »

Thank you so much, it's gonna be in next release.
Mozilla/5.0 (Android 5.1; Mobile; rv:42.0) Gecko/42.0 Firefox/42.0
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: noscript.key.revokeTemp shortcut not working.

Post by therube »

(Heh. Funny, that come FF 44, or whatever, with signing, a user can't just go in & make the fix & be done.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:42.0) Gecko/20100101 SeaMonkey/2.39
palme
Junior Member
Posts: 34
Joined: Thu Sep 16, 2010 1:05 pm

Re: noscript.key.revokeTemp shortcut not working.

Post by palme »

Giorgio Maone wrote:Thank you so much, it's gonna be in next release.
You are welcome, thanks for the best addon ever :)

when will the next version be released?
Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0
Post Reply