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: 483
Joined: Mon, 19 May 2014, 19:14
Location: Finland

Audiocontext error results in website being unable to load

Unread postby fillerup » Fri, 04 Jan 2019, 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: 404
Joined: Thu, 26 Apr 2018, 11:05

Re: Audiocontext error results in website being unable to load

Unread postby yami_ » Fri, 04 Jan 2019, 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: 1701
Joined: Thu, 03 Sep 2015, 19:47
Location: UA
Contact:

Re: Audiocontext error results in website being unable to load

Unread postby JustOff » Fri, 04 Jan 2019, 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: 23009
Joined: Sun, 28 Aug 2011, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Audiocontext error results in website being unable to load

Unread postby Moonchild » Fri, 04 Jan 2019, 15:15

Will be solved in Issue #924 (UXP).
Last edited by Moonchild on Fri, 04 Jan 2019, 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


Return to “General support”

Who is online

Users browsing this forum: New Tobin Paradigm, yereverluvinuncleber and 3 guests