Bug 57242 - iframe src with javascript: url fails to execute JavaScript code (JavaScript iis enabled)
Summary: iframe src with javascript: url fails to execute JavaScript code (JavaScript ...
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: unspecified
Platform: Compiled Sources Other
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-15 02:26 UTC by Adam Zell
Modified: 2004-09-09 11:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Zell 2003-04-15 02:26:38 UTC
Version:           Apple Safari Beta 2 (build 73) (using KDE Devel)
Installed from:    Compiled sources
OS:          Other

Sample page:

<html>
<head>
<title>iframe test</title>
</head>
<body>
<iframe src="javascript:alert(window);"></iframe>
<center>
Simple text.
</center>
</body>
</html>

In MSIE 4+ and Mozilla 5+ (Mac and Windos), the above page will pop-up a window with something
like "[object]".  However, Konqueror does nothing.  It doesn't seem to understand javascript:
urls as sources.
Comment 1 George Staikos 2003-06-18 06:51:47 UTC
Yup, it's not supported apparently. 
Comment 2 Luís Pedro Coelho 2004-09-09 11:10:03 UTC
On HEAD there is now a messagebox.
Since mozilla seems to do the same thing, I assume this is expected behaviour.

(besides, I believe that generally javascript: URLs have been supported for  while, even though I cannot tell the exact date).