Re: Web WhatsApp and Chromium or Firefox, does not finish loading

2022-09-11 Thread Mikolaj Kucharski
On Sun, Sep 11, 2022 at 06:19:50PM +0200, Caspar Schutijser wrote:
> On Sat, Sep 10, 2022 at 08:32:27AM +, Mikolaj Kucharski wrote:
> > Hi,
> > 
> > I've noticed this problem many weeks before, but didn't report at the
> > time, as I thought it was random cookie problem, but then I started to
> > open new instances of Chroimum or Firefox, like scripts show at the very
> > end of this email. WhatsApp never finishes loading for me. Can anyone of
> > you reproduce the problem?
> 
> That has to do with WebAssembly. See
> https://marc.info/?l=openbsd-misc=165209716832707=2 for an earlier
> thread about similar issues.
> 
> Caspar
> 

Thanks! Exporting ENABLE_WASM=1 per above thread made Web WhatsApp work
on dedicated Chromium instance.

-- 
Regards,
 Mikolaj



Re: Web WhatsApp and Chromium or Firefox, does not finish loading

2022-09-11 Thread Caspar Schutijser
On Sat, Sep 10, 2022 at 08:32:27AM +, Mikolaj Kucharski wrote:
> Hi,
> 
> I've noticed this problem many weeks before, but didn't report at the
> time, as I thought it was random cookie problem, but then I started to
> open new instances of Chroimum or Firefox, like scripts show at the very
> end of this email. WhatsApp never finishes loading for me. Can anyone of
> you reproduce the problem?

That has to do with WebAssembly. See
https://marc.info/?l=openbsd-misc=165209716832707=2 for an earlier
thread about similar issues.

Caspar

> 
> 
> Chromium
> 
> --->8---
> #!/bin/sh
> 
> umask 077
> 
> temp=`mktemp -d "${TMPDIR:=/tmp}/chrome."` || exit 1
> trap 'rm -rfP -- "$temp"' EXIT
> trap 'exit 1' HUP INT QUIT TRAP PIPE TERM INFO USR1 USR2
> 
> if cd "$temp"
> then
> chrome \
> --user-data-dir="$temp/${0##*/}" \
> --incognito "$@"
> exit $?
> fi
> ---8<---
> 
> 
> Firefox
> 
> --->8---
> #!/bin/sh
> 
> umask 077
> 
> temp=`mktemp -d "${TMPDIR:=/tmp}/firefox."` || exit 1
> trap 'rm -rfP -- "$temp"' EXIT
> trap 'exit 1' HUP INT QUIT TRAP PIPE TERM INFO USR1 USR2
> 
> if cd "$temp"
> then
> if ! mkdir -m 0700 "$temp/${0##*/}"
> then
> exit 5
> fi
> /usr/local/bin/firefox \
> --new-instance --private-window \
> --profile "$temp/${0##*/}" "$@"
> exit $?
> fi
> ---8<---
> 
> -- 
> Regards,
>  Mikolaj
>