Error: TypeError: keys[0].match(...) is null

Bug reports and enhancement requests
Post Reply
User avatar
therube
Ambassador
Posts: 7972
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Error: TypeError: keys[0].match(...) is null

Post by therube »

NoScript 2.9.0.13rc1
XP SP3

URL: http://www.staples.com/coupons
(Truncated version of something like: http://www.staples.com/coupons?om_rid=a ... @email.com)

For whatever reason I have a page where changing "allows" (initially not allowed; staples.com & staples-static.com, then allowed) is not refreshing the page, where it should.
Page happened to be opened from Session Restore.

Haven't noticed the behavior before, & opening the link in a new window, I'm unable to duplicate. (Nor with other links also opened from Session Restore.)

Only thing I'm seeing in Error Console & don't know if its relevant or not?

Code: Select all

Error: TypeError: keys[0].match(...) is null
Source File: jar:file:///C:/extensions/%7B73a6fe31-595d-460b-a920-fcc0f8843232%7D.xpi!/components/noscriptService.js
Line: 2476

Code: Select all

let prefix = keys[0].match(/^(?:ht|f)tps?:\/\//i)[0] + "*.";
      while (keys.length > 2) {
        keys.shift();
        key = prefix + keys.join(".");
        if (key in map || hasPort && key.replace(portRx, ":0") in map) return true;
...

I do have 2.9.0.14rc1 staged, but not installed.
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:43.0) Gecko/20100101 SeaMonkey/2.40
Post Reply