Commit a93db722 authored by darin's avatar darin
Browse files

Reviewed by Maciej.

	- fixed 3128766 -- macconnection.com tries to add properties to the navigator DOM object, which fails

        * khtml/ecma/kjs_window.cpp: (Window::get): Set up properties named navigator and clientInformation
	the first time either is queried. These will hold a persistent shared object rather than making one
	every time it's asked for.

        * WebCore.pbproj/project.pbxproj: Let Electron undo Maciej's evil.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3078 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6c27fc02
2002-12-16 Darin Adler <darin@apple.com>
Reviewed by Maciej.
- fixed 3128766 -- macconnection.com tries to add properties to the navigator DOM object, which fails
* khtml/ecma/kjs_window.cpp: (Window::get): Set up properties named navigator and clientInformation
the first time either is queried. These will hold a persistent shared object rather than making one
every time it's asked for.
* WebCore.pbproj/project.pbxproj: Let Electron undo Maciej's evil.
=== WebKit-37u2 ===
2002-12-15 Maciej Stachowiak <mjs@apple.com>
......
2002-12-16 Darin Adler <darin@apple.com>
Reviewed by Maciej.
- fixed 3128766 -- macconnection.com tries to add properties to the navigator DOM object, which fails
* khtml/ecma/kjs_window.cpp: (Window::get): Set up properties named navigator and clientInformation
the first time either is queried. These will hold a persistent shared object rather than making one
every time it's asked for.
* WebCore.pbproj/project.pbxproj: Let Electron undo Maciej's evil.
=== WebKit-37u2 ===
2002-12-15 Maciej Stachowiak <mjs@apple.com>
......
......@@ -178,7 +178,6 @@
</dict>
</plist>
";
shouldUseHeadermap = 0;
};
0867D69DFE84028FC02AAC07 = {
buildActionMask = 2147483647;
......
......@@ -451,8 +451,13 @@ Value Window::get(ExecState *exec, const Identifier &p) const
case Name:
return String(m_part->name());
case _Navigator:
case ClientInformation:
return Value(new Navigator(exec, m_part));
case ClientInformation: {
// Store the navigator in the object so we get the same one each time.
Navigator *n = new Navigator(exec, m_part);
const_cast<Window *>(this)->putDirect("navigator", n, DontDelete|ReadOnly);
const_cast<Window *>(this)->putDirect("clientInformation", n, DontDelete|ReadOnly);
return Value(n);
}
#ifdef Q_WS_QWS
case _Konqueror:
return Value(new Konqueror(m_part));
......
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