Commit 5e9ad452 authored by mjs's avatar mjs

Reviewed by Darin.

	- slightly improved situation with 3124933 (abcnews.com leads to
	empty window with sheet complaining about javascript: URL); the
	popup window still comes up empty but it doesn't put up a sheet.

        * kwq/KWQKHTMLPartBrowserExtension.mm:
        (KHTMLPartBrowserExtension::openURLRequest): Handled "javascript:"
	URLs here.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 041757b8
2002-12-14 Maciej Stachowiak <mjs@apple.com>
Reviewed by Darin.
- slightly improved situation with 3124933 (abcnews.com leads to
empty window with sheet complaining about javascript: URL); the
popup window still comes up empty but it doesn't put up a sheet.
* kwq/KWQKHTMLPartBrowserExtension.mm:
(KHTMLPartBrowserExtension::openURLRequest): Handled "javascript:"
URLs here.
2002-12-14 David Hyatt <hyatt@apple.com>
Fix insidemacgames.com. Reinstate rules I removed
......
2002-12-14 Maciej Stachowiak <mjs@apple.com>
Reviewed by Darin.
- slightly improved situation with 3124933 (abcnews.com leads to
empty window with sheet complaining about javascript: URL); the
popup window still comes up empty but it doesn't put up a sheet.
* kwq/KWQKHTMLPartBrowserExtension.mm:
(KHTMLPartBrowserExtension::openURLRequest): Handled "javascript:"
URLs here.
2002-12-14 David Hyatt <hyatt@apple.com>
Fix insidemacgames.com. Reinstate rules I removed
......
......@@ -35,7 +35,13 @@ KHTMLPartBrowserExtension::KHTMLPartBrowserExtension(KHTMLPart *part)
void KHTMLPartBrowserExtension::openURLRequest(const KURL &url,
const KParts::URLArgs &args)
{
KWQ(m_part)->openURLRequest(url, args);
if (url.protocol().lower() == "javascript") {
QString string = url.url();
KWQ(m_part)->createDummyDocument();
KWQ(m_part)->executeScript(string.mid(strlen("javascript:")));
} else {
KWQ(m_part)->openURLRequest(url, args);
}
}
void KHTMLPartBrowserExtension::openURLNotify()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment