Audiocontext error results in website being unable to load

Users and developers helping users with technical Pale Moon issues (Windows and other non-Linux O.S.). Please direct questions about the Linux version to the appropriate Linux board.

Moderators: trava90, satrow

Forum rules
This board is for technical/usage questions and troubleshooting for the Pale Moon browser only. The main focus here is on Pale Moon on Windows. Please direct your questions for Linux, Android and Mac to the dedicated boards.
Technical issues and questions not related to the Pale Moon browser should be posted in "technical chat"
Please keep off-topic and general discussion out of this board, thank you!
fillerup
Lunatic
Lunatic
Posts: 493
Joined: 2014-05-19, 19:14
Location: Finland

Audiocontext error results in website being unable to load

Unread post by fillerup » 2019-01-04, 04:38

Fresh profile, Win10 1809 x64. Website in question is https://preference-test.sonarworks.com which returns only a blank page instead of loading.

The error console threw up the following:

Image

Same thin g happens on Basilisk, so most definitely a UXP error imo.

yami_
Lunatic
Lunatic
Posts: 448
Joined: 2018-04-26, 11:05

Re: Audiocontext error results in website being unable to load

Unread post by yami_ » 2019-01-04, 11:39

This:

Code: Select all

const audio = new AudioContext({ sampleRate: data.sampleRate });
According to Mozilla there is no browser that supports this (this inforamtion may not be correct):
Screen Shot 2019-01-04 at 12.29.30.png
fig. 1 - MDN AudioContext browser support table
The standard defines it here. The easiest option would be to ignore the sampleRate member - the sound card driver or the OS should automatically re-sample the stream anyway.
cat came back from Berkeley waving flags -- rob pike

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1755
Joined: 2015-09-03, 19:47
Location: UA
Contact:

Re: Audiocontext error results in website being unable to load

Unread post by JustOff » 2019-01-04, 12:59

I guess the solution is in bug #1361475, and it seems it can be easily ported to UXP.
Here are the add-ons I made in a spare time. That was fun!

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 23449
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Audiocontext error results in website being unable to load

Unread post by Moonchild » 2019-01-04, 15:15

Will be solved in Issue #924 (UXP).
Last edited by Moonchild on 2019-01-04, 16:54, edited 1 time in total.
Reason: Now without stupid wrong number
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

Post Reply