Page 1 of 1

https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-25, 10:28
by BenUpsakin
Hello fellow PM users,

Now library's website https://catalogue.bm-lyon.fr/ doesn't load under Pale Moon. It doesn't work either with Internet Explorer or kmeleon or Seamonkey. It still works with Edge.

But, and this is rather odd, it works with Pale Moon clone (or so I think it is) MyPal.

I sent an email to the library but don't know if hey're going to answer me.

That it works with MyPal but not Pale Moon is the most peculiar to me. I mean, I thought it was just the same browser just a little faster and optimized for Windows XP.

Hope someone can help, or a next Pale Moon update will help fix it. Thanks.

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-25, 11:06
by vannilla
The error is:

Code: Select all

SyntaxError: expected expression, got keyword 'import'
As for why it works on MyPal maybe it's because of the user agent string.

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-25, 13:28
by gepus
vannilla wrote:
2021-07-25, 11:06
The error is:

Code: Select all

SyntaxError: expected expression, got keyword 'import'
You get the same error with MyPal and as expected the site won't load with it either.

I took the extra effort to download MyPal and check since the story smelled fishy to begin with. :wtf:

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-25, 15:56
by New Tobin Paradigm
gepus wrote:
2021-07-25, 13:28
You get the same error with MyPal and as expected the site won't load with it either.

I took the extra effort to download MyPal and check since the story smelled fishy to begin with. :wtf:
Gross. But deception on the part of the XPFucks is not unexpected. Each group is taking turns coming at us it seems so it was only a matter of time before they showed up again.

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-27, 20:51
by BenUpsakin
I wondered how to change useragent, in case it was the culprit. Now it no longer works in MyPal. In Mypal I created a string value in the about:config,

general.useragent.override.bm-lyon.fr
with this value
Mozilla/5.0 (Windows NT 5.1; rv:99.9) Gecko/20100101 Firefox/99.9

and it doesn't work either.

Has someone any suggestion as to how to fix this? Thanks

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-27, 20:54
by BenUpsakin
I almost forgot to say, I also downloaded the basilisk browser to make it work on a goanna browser, but it hasn't worked so far. No goanna browser (MyPal, PaleMoon, Kmeleon, Basilisk) could load that webpage.

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-28, 00:23
by Moonchild
Verified in a supported browser not on XP.

Since for once it's not minified, the problem is the following code:

Code: Select all

// Trick to dispatch events when module is hot reloaded
if (false) {
    Promise.all([import('webpack-hot-middleware/client'), import('./redux/globalActions')]).then(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            client = _ref2[0],
            actions = _ref2[1];

        client.subscribeAll(function (event) {
            if (event.action == "built") {
                store.dispatch(actions.fetchManifest());
            }
        });
    });
}
This fails because even if this code will never run (it's in an if(false) {} block so will never be executed) it still requires the code to properly parse for the interpreter. Especially because they force strict mode ("use strict;" clause).
If the site isn't actually using that code they shouldn't shove it out to browsers, for one. Using import() as a function that way does not work in our engine; it's a reserved keyword. This trips up the parser which in turn aborts the entire script (because something that can't be parsed also can't be executed), which, in turn, delivers a blank page because they do not have any content except the content generated by the (now failing) script.

The webmaster can fix this by not pushing the offending code out to browsers (delete the code I indicated) since it's not in use anyway.

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-28, 13:14
by BenUpsakin
OK I sent an email to the library - hope they will forward it to the webmaster and he'll change that blocking piece of java script. Thank you for having taken time to analyse what was going wrong,

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-28, 14:45
by New Tobin Paradigm
Why would the lib contact the site?

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-28, 15:25
by BenFenner
New Tobin Paradigm wrote:
2021-07-28, 14:45
Why would the lib contact the site?
Because the library commissioned the web site and would be the first point of contact when trying to report an issue with the web site of the library (physical books library).
Heck, maybe the web site was created by the library staff themselves...

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-28, 15:52
by New Tobin Paradigm
Huh?

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-28, 19:07
by Moonchild
library as in a physical library, Tobin. You know, a place that has and lends out books?

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-28, 20:48
by New Tobin Paradigm
Books... made with paper?

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-28, 21:26
by Moonchild
Yes, and real ink! Sometimes even pictures you can't just copy at will!

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-28, 21:27
by New Tobin Paradigm
Pfft.. nonsense.

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-07-29, 07:32
by BenUpsakin
Sorry for not having made that clear. It's a library's website I'm having these problems with - the library of the city of Lyon in France. I can no longer access their catalog.

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-11-26, 10:33
by BenUpsakin
Dear all,

I had the same problem with Seamonkey. But I have just solved it by spoofing the User Agent.

about:config

New string

general.useragent.override

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

I wonder if the way to spoof the user agent is the same in Pale Moon? (actually I use MyPal but I consider it and pale moon are twins)

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-11-26, 14:30
by gepus
BenUpsakin wrote:
2021-11-26, 10:33
I wonder if the way to spoof the user agent is the same in Pale Moon?
No need to spoof the user agent. The site seems to work so far. Tested with Pale Moon 29.4.2.1, something you could have done before posting.

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-11-26, 18:20
by coffeebreak
The site loaded here as well, though quite slowly, it took at least a full minute.
Got same result with both Compat and Native UA modes.
Error console showed nothing.

BenUpsakin wrote:
2021-11-26, 10:33
the user agent
For info (since it seems entirely unnecessary for this site):
1. Read the release notes (archived) for Pale Moon v28.17.0 (2020-12-18) that describe changes to how that's done.

2. More importantly - Why spoof globally when you're trying to affect just ONE domain?
UA spoofing can be site-specific:
general.useragent.override.somedomain.com
your string

BenUpsakin wrote:
2021-11-26, 10:33
(actually I use MyPal but I consider it and pale moon are twins)
YOU might think like that, but the developers of this project don't.
MyPal is not supported on this forum. Please don't seek support for MyPal here in future.

Re: https://catalogue.bm-lyon.fr/ gives blank page

Posted: 2021-11-26, 22:55
by Moonchild
Please don't waste people's time here by asking for support for a different browser.
Pale Moon and Mypal are not twins. Don't assume they are just because the GUI looks similar.