Bug 9706

Summary: Support "javascript:" URLs (Pnglet examples at elf.org don't work)
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Minor CC: emacemac7, fishd
Priority: P2 Keywords: HasReduction
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: http://www.elf.org/pnglets/
Description Flags
test case
test case (works with Firefox 2)
javascript: in SCRIPT src none

Description Alexey Proskuryakov 2006-07-03 03:20:32 PDT
Pnglet is a JavaScript library for creating PNG images on the fly. I've seen it work with Safari before, but the "official" example page is broken, for whatever reason (missing image icons are displayed instead of the examples). 

Works fine in Firefox 1.5.
Comment 1 Alexey Proskuryakov 2006-07-03 11:33:45 PDT
Created attachment 9172 [details]
test case

Looks like Mozilla supports "javascript:" URLs as image sources, and WebKit doesn't.
Comment 2 Darin Fisher (:fishd, Google) 2006-11-14 16:02:30 PST
IE does not seem to support javascript: URLs as image source either.
Comment 3 Alexey Proskuryakov 2006-11-14 21:40:06 PST
Created attachment 11524 [details]
test case (works with Firefox 2)

The original test case no longer works in Firefox 2 for some reason, adding one that does.
Comment 4 Alexey Proskuryakov 2007-01-25 11:40:29 PST
Created attachment 12669 [details]
javascript: in SCRIPT src

"javascript:" URLs don't work for scripts either (do work in Firefox). Looks like they only work for main resources at the moment.
Comment 5 Alexey Proskuryakov 2011-05-13 17:24:01 PDT
HTML5 used to support javascript: URLs, but it no longer does: <http://html5.org/tools/web-apps-tracker?from=6138&to=6139>.