From 69b5e7513a9418a61bfae3bc5889bb2c543a580a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 8 Apr 2021 18:16:26 +0100 Subject: [PATCH] Another rewrite of the WASM apology message. Now I've had a chance to collect some more data from browser users, it's got a list of browsers in which we've definitely seen the WASM puzzle working (so that if _your_ instance of one of those browsers fails, you should check it for problems at your end, like configuration details or overzealous web filtering software), and some thoughts about what to report. The result is a lot longer than the previous error message, so I've put the bulk of it in a
. That way it won't look so silly when it initially flashes up while things are loading. --- html/jspage.pl | 47 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/html/jspage.pl b/html/jspage.pl index 599295b..2101030 100755 --- a/html/jspage.pl +++ b/html/jspage.pl @@ -205,6 +205,16 @@ EOF * from above. */ display: block; } + +#apology { + padding: 0 1em 0 1em; + margin: 1em; + border: 2px solid red; +} + +.apology-title { + text-align: center; +} @@ -245,11 +255,36 @@ ${unfinishedpara}
-

Sorry, this WebAssembly puzzle doesn't seem to work in your web -browser.

-

Most modern browsers should support WASM, but if yours isn't -working, please report the problem, including as much -diagnostic information as you can find.

+

If you've been reading this message for more +than a second or two, then this WebAssembly puzzle doesn't +seem to be working in your web browser. Sorry!

+

+

+More information +

Most modern browsers should support WASM. I've had reports of success from: +

    +
  • Firefox 87.0
  • +
  • Chrome 89.0.4389.114
  • +
  • Safari 14.0.3 (16610.4.3.1.7)
  • +
  • Edge 89.0.774.68
  • +
  • Opera 75.0.3969.149
  • +

+

If this puzzle isn't working in one of those browsers (or a later +version), check to see whether you have any local configuration that +might have turned off WebAssembly completely, or some kind of blocking +software that might have prevented the WASM code from being downloaded +in the first place.

+

(For example, in Firefox, it's possible to turn off WASM completely +by setting javascript.options.wasm to false +in the about:config interface. If you've done that, or +something analogous in another browser, this puzzle won't run.)

+

In other browsers, the problem might be that WebAssembly isn't +supported at all (for example, Internet Explorer 11), or that a +browser update is needed.

+

If you think that your browser should support WebAssembly, +but this puzzle still isn't running, then please report the problem, +including as much diagnostic information as you can +find.

In particular, try opening your browser's Javascript error console and then reloading this page, and tell me if it reports any error messages.

@@ -257,6 +292,8 @@ messages.

experiment, to make sure it is successfully loading both of the auxiliary files ${filename}.js and ${filename}.wasm.

+
+