You are not logged in.

#1 2023-03-19 00:30:09

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Javascript errors since latest update

Hay!
I updated the OS at Friday (17. 03.). Since then some sites (redmenta.com, start.me) javascript fails to run with weird errors: illegal escape character or illegal character. I use Seamonkey and the js related progs are:

$ pacman -Qs javascript
local/duktape 2.7.0-5
    Embeddable Javascript engine
local/qt5-declarative 5.15.8+kde+r24-2 (qt qt5)
    Classes for QML and JavaScript languages
local/qt5-webchannel 5.15.8+kde+r3-1 (qt qt5)
    Provides access to QObject or QML objects from HTML clients for seamless
    integration of Qt applications with HTML/JavaScript clients
local/webkit2gtk 2.38.5-1
    Web content engine for GTK

Why is this error here, when previously weren't?

Offline

#2 2023-03-19 07:25:11

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Javascript errors since latest update

seamonkey uses a built-in javascript engine, other updates should not be relevant.
It also comes w/ a javascript debugger to narrow down on the issue.
redmenta checks the user agent, so it might even discriminate on that basis.

Offline

#3 2023-03-20 07:29:29

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

SyntaxError: invalid identity escape in regular expression

Now I try to find out how to use debugger.

Offline

#4 2023-03-21 00:26:09

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

The error is in this part:

concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u)

Offline

#5 2023-03-21 08:08:50

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Javascript errors since latest update

In what file, context?

Offline

#6 2023-03-22 13:15:07

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

SyntaxError: invalid identity escape in regular expression application-be36419e0b2330d33fde.js:1:1049927

Offline

#7 2023-03-22 13:33:22

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Javascript errors since latest update

Neither redmenta.com nor start.me source such (or even similarily named) file here.

Edit: I'd try to spoof the useragent, pretend to be some firefox version.

Last edited by seth (2023-03-22 13:36:53)

Offline

#8 2023-03-22 15:57:12

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

I tried as SM, as SM with FF comp and as FF, both won't do it. The error comes when I try to sign in, but before I choose the method (Google/FaceBook/else).

Offline

#9 2023-03-22 16:05:05

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

It is a very long oneliner, 1049927 sized.

Offline

#10 2023-03-22 16:19:47

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

From another machine with Google Chrome, I get the following tip:

A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.
To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
Note that for performance reasons, only the first access to one of the properties is shown.

Seems like the problem is with the useragent string, but I don't know, why, because SM didn't updated since 01:25, and the error arriced last week...

Offline

#11 2023-03-22 20:09:55

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Javascript errors since latest update

I don't know, why, because SM didn't updated since 01:25, and the error arriced last week...

The page/script might have changed.

Does chrome complain about the script?
Does it load that script?
Did you try to spoof a chrome UA?

Chromium loads some scripts w/ hash-value-like names when I pretend to login at redmenta - and they do have some concat calls (unsurprisingly), but not the one you posted.

Offline

#12 2023-03-23 09:06:09

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

seth wrote:

I don't know, why, because SM didn't updated since 01:25, and the error arriced last week...

The page/script might have changed.

Does chrome complain about the script?
Does it load that script?
Did you try to spoof a chrome UA?

Chromium loads some scripts w/ hash-value-like names when I pretend to login at redmenta - and they do have some concat calls (unsurprisingly), but not the one you posted.

Chrome didn't complain this script. And some misunderstood: this script is in start.me, not in redmenta. I will look for redmenta later., that is less important. How to spoof seamonkey UA to chrome?

Offline

#13 2023-03-23 09:19:04

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

redmenta.com drops:

TypeError: asm.js type error: Disabled by debugger
vendor.js
SyntaxError: illegal character
[Learn More]
vendor.js:1:2628448
Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified
Content Security Policy: Ignoring “https:” within script-src: ‘strict-dynamic’ specified
Content Security Policy: Ignoring “http:” within script-src: ‘strict-dynamic’ specified 

Offline

#14 2023-03-23 14:42:49

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Javascript errors since latest update

How to spoof seamonkey UA to chrome?

You'll need an extension like https://chrome.google.com/webstore/deta … pkjnoahfmg and the UA string from SeaMonkey

Offline

#15 2023-03-24 09:55:42

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

Looked for extensions, but they are incompatible with my version... sad The I try By hand...

Offline

#16 2023-03-24 12:38:53

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Javascript errors since latest update

https://chrome.google.com/webstore/deta … pkjnoahfmg is provided by google, how is that incompatible w/ what version of chrome specifically??

Offline

#17 2023-03-24 13:16:02

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

No, no, for seamonkey to lie itself as chrome... smile

Offline

#18 2023-03-24 13:26:08

teckk
Member
Registered: 2013-02-21
Posts: 519

Offline

#19 2023-03-26 01:28:40

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

I can get to about:config, now I need a proper UA string.

Offline

#20 2023-03-26 02:16:25

teckk
Member
Registered: 2013-02-21
Posts: 519

Offline

#21 2023-03-27 06:37:36

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Javascript errors since latest update

Thanx. I tried some, the issue is the same - I contacted the start.me team if they have something to do.

Offline

Board footer

Powered by FluxBB