patch   [plain text]


? patch
Index: kjs_window.cpp
===================================================================
RCS file: /local/home/cvs/Labyrinth/WebCore/khtml/ecma/kjs_window.cpp,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- kjs_window.cpp	2003/03/04 00:09:34	1.64
+++ kjs_window.cpp	2003/03/18 23:31:56	1.65
@@ -1126,15 +1126,12 @@
       // scan feature argument
       v = args[2];
       QString features;
-      if (!v.isNull() && v.type() != UndefinedType) {
+      if (!v.isNull() && v.type() != UndefinedType && v.toString(exec).length() > 0) {
         features = v.toString(exec).qstring();
         // specifying window params means false defaults
         winargs.menuBarVisible = false;
         winargs.toolBarsVisible = false;
         winargs.statusBarVisible = false;
-#if APPLE_CHANGES
-	winargs.scrollbarsVisible = false;
-#endif
         QStringList flist = QStringList::split(',', features);
         QStringList::ConstIterator it = flist.begin();
         while (it != flist.end()) {
@@ -1202,10 +1199,6 @@
             winargs.resizable = (val == "1" || val == "yes");
           else if (key == "fullscreen")
             winargs.fullscreen = (val == "1" || val == "yes");
-#if APPLE_CHANGES
-          else if (key == "scrollbars")
-            winargs.scrollbarsVisible = (val == "1" || val == "yes");
-#endif
         }
       }