Site Navigation

Showing posts with label alert. Show all posts
Showing posts with label alert. Show all posts

Thursday, April 30, 2009

bug 436 - Google Chrome alert() eats your content

Issue: #436
Affects: Google Chrome 1, Google Chrome 2
Fixed in: Google Chrome 5 (possibly earlier, please inform us if you know the exact version)

This particular bug took some time to figure out as it only happens under certain circumstances.

The JavaScript window.alert() function in Chrome will eat (truncate) some of your message if your content meets the following criteria.

If one of the lines in your multi-line message contains 40 or more characters without spaces.

Example:

<script type="text/javascript">
var msg = 'You can not see the secret word in Google Chrome!\n';
msg += '=========================================\n';
msg += 'The Secret word is: Bamboozled!';
alert(msg);
</script>


You don't believe me, do you? I wouldn't either... so here, try it!



In other browsers you get the secret word, but in Chrome its gone!

Well it gets even more interesting...

So here's what we've found so far:

  • The line after the line with 40+ non-space characters doesn't render

  • Any text beyond the 40+ non-space characters on the same line also doesn't render

  • A Blank line is rendered after the 40+ non-space characters line

  • The content 2 lines after the 40+ non-space characters line DOES render just fine





Known Workarounds: None.


Related Issues: None.


Bug/Site Feedback |
Submit a bug

Tuesday, February 12, 2008

bug 139 - javascript dialogs don't center correctly in IE

Issue: #139
Affects: IE6, IE7, IE8, IE9 PP4
Partially Affects: Safari 3 (alert & confirm only)
Status Fixed in Safari 4 Beta

MSIE Feedback ID: 333954

JavaScript has 3 dialogs for user interaction;
Alert,
Confirm,
& Prompt.

You've already read that the prompt dialog is in serious need of an overhaul (bug 109), but even the alert() and confirm() dialogs need help too.

So, what's wrong with the alert() and confirm() dialogs? The Centering.

They center on the Desktop, not the Browser Window.

Why is this wrong? Well if you surf with a full screen window, you won't ever notice, but if you have a wide screen LCD, or 2 or more monitors your desktop is wide enough to see 2, or even 3 applications/web pages at once.

So, if you have a wide screen, the dialogs appear out of the browser window, out of context... but if you have a dual screen setup, the dialogs appear SPLIT! across 2 screens making them completely unreadable.


Known Workarounds: None.



Related Issues: (bug 109).

Bug/Site Feedback |
Submit a bug