Welcome to the adventure

Three easy ways to crash Safari

Thursday April 26, 2007

This is what happens when you don’t dogfood your own tools, as these bugs should become evident five seconds after you start using the Safari logger. *Rage, hate*

This is in the version that ships with OSX 10.4.9 (Safari 419.3).

<html><head>

<script>
// Other logging apis support multiple arguments to log. Safari doesn't
// accept multiple arguments. Why throw an error, when you can just segfault?
console.log(1,2);
</script>

</head><body/></html>

<html><head>

<script>
// why does this alias cause a crash?
log=console.log;
log("hey");
</script>

</head><body/></html>

<html><head>

<script>
// This happens often, e.g. if I mistakenly tried to log
// "document.head" (also undefined). Sometimes it just
// makes the logging window into a zombie, where it's non-responsive.
// Othertimes it crashes
console.log(undefined);
</script>

</head><body/></html>

No Comments »

No comments yet.

Leave a comment