Re: [webkit-dev] Strange relation between script loading and call stack size

2008-07-10 Thread Fabian Jakobs
Geoffrey Garen schrieb:
 test.js

 I think you attached the wrong file. All I see is comments.


This file is only needed to have something I can load with a script tag.
The main code is in the attached HTML file. I have filed a bug at
https://bugs.webkit.org/show_bug.cgi?id=19956 about this issue.

Best Fabian

-- 
Fabian Jakobs
JavaScript Framework Developer

11 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, 
Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Notifying a plugin it is in the background?

2008-07-10 Thread Sam Net
Hi,

You could get some general information about plugin architecture by  
subscribing to *Late Night Cocoa* in iTunes.  Episode 29 talks about  
plugin architecture.  Here is a link where you can get further  
information:

http://www.macdevnet.com/index.php/shows/latenightcocoa

Home page: http://www.mac-developer-network.com/

Cheers

Sam

On 9 Jul 2008, at 23:38, Andre-John Mas wrote:

 Hi,

 Is there any way to signal to a plug-in that its current context is in
 the background, so that it could eventually reduce CPU priority to the
 content? The issue I am looking at is that some plug-ins consume a lot
 of CPU whether or not they are in foreground. In certain cases,
 usually a Flash player, I find my CPU being maxed out by player which
 is in another tab. If there was a way to reduce the effect of
 background plug-in this would be useful.

 Andre
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Questions about WebKit

2008-07-10 Thread Nemix

Hi,

(first of all : sorry for my english, I'm french ;) )

I have to develop a Java application that will run on Mac OS, Windows and
embedded system (mobile, PDA,...).
I haven't develop for this kind of application yet, so I need some help  ;)

Someone told me about WebKit to develop a cross platform application. This
person said that it will probably met my needs (or the needs of my boss...).
Have I got to develop just one application or one for Mac OS+Windows and one
for embedded system ?

I have seen that WebKit is a web browser. I need this functionnality so it's
ok.
But I need to manipulate video, audio and pdf files too. This files must be
read in streaming because no temporary files have to be created (originals
files are in a crypted file, so I obtain a stream when I parse it). I have
seen two things :
   * for the audio/video :
1.
http://arstechnica.com/journals/linux.ars/2007/12/16/html5-video-support-in-gtkwebkit
I think it means that I have to create an HTML page with stream to play in
argument. No ?
2. I have seen : http://java.sun.com/javame/index.jsp
But I think it doesn't work on Mac OS and Windows. No ?
3. http://trolltech.com/products/qt
Do you think it is possible to use it in my case ?

  * for the pdf :
I need essentially to : read pdf, highlight text in pdf files and create
bookmarks.
If you have any idea...  :)

I'm sorry for all this questions, but I don't know how I can do...

Thanks.

Best regards,

Audrey
-- 
View this message in context: 
http://www.nabble.com/Questions-about-WebKit-tp18380459p18380459.html
Sent from the Webkit mailing list archive at Nabble.com.

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Query on running the test scripts

2008-07-10 Thread Gargi Varun-DFXR46
Hi All
 
We are trying to test javascriptcore using the scripts that we have in
Dir \WebKit\WebKitTools\Scripts. 
 
We have build the webkit on Symbian UIQ.  
 
when we try running  a script run-javascriptcore-tests  from command
prompt it gives some errors as follows 
 
The system cannot find the path specified.
The system cannot find the path specified.
Building not defined for this platform!
Compiling testkjs failed!
 
 
Is there any thing more needed to make these scripts run.
 
We tried it on Cygwin also still the same errors.
 
 
Thanks
Varun
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Query on running the test scripts

2008-07-10 Thread David Kilzer
The run-javascriptcore-tests script attempts to build JavaScriptCore and the 
testkjs/jsc tool before running the actual tests.  If you haven't taught 
webkitdirs.pm how to build for your platform, it's not going to work.

The line in the script that runs the actual test is this line:

my $result = system perl, jsDriver.pl, -e, squirrelfish, -s, 
jscPath($productDir), -f, actual.html, @jsArgs;

Try running that command by itself (I don't think you need any @jsArgs by 
default) to see if that works.

Dave


On Thu, 7/10/08, Gargi Varun-DFXR46 [EMAIL PROTECTED] wrote:

 Hi All
  
 We are trying to test javascriptcore using the scripts that
 we have in
 Dir \WebKit\WebKitTools\Scripts. 
  
 We have build the webkit on Symbian UIQ.  
  
 when we try running  a script
 run-javascriptcore-tests  from command
 prompt it gives some errors as follows 
  
 The system cannot find the path specified.
 The system cannot find the path specified.
 Building not defined for this platform!
 Compiling testkjs failed!
  
  
 Is there any thing more needed to make these scripts run.
  
 We tried it on Cygwin also still the same errors.
  
  
 Thanks
 Varun___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] How to use webkit ?

2008-07-10 Thread Nemix

Hi,

I would like to try webkit cause I really need it for a project. I have to
develop in Java.
But I haven't any idea on how can I start with webkit ?.

An IDE is needed (eclispe, ...) ? How can I do ?
I'm a very newcomer... Can somebody help me to start please ?

I have downloaded the Windows version of the webkit.

I would like for example to embed it in a container to display the website I
want.
What files have I to look and modify (or create...) ?
Have I got to use Java or Javascript (I have seen a lot of .js files in the
windows package) or something else ?

Thanks !

-- 
View this message in context: 
http://www.nabble.com/How-to-use-webkit---tp18385585p18385585.html
Sent from the Webkit mailing list archive at Nabble.com.

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to use webkit ?

2008-07-10 Thread David Kilzer
Hi Nemix,

In order to use WebKit with Java, you will have to provide a JNI (Java Native 
Interface) layer that lets Java talk to WebKit.  You'll also have to provide 
a way for WebKit to draw within a Java application.  (This is also a gross 
oversimplification of what may be required.)

Fortunately Sun may have already done most of the work for you, although I'm 
not sure JWebPane is ready yet:

https://lists.webkit.org/pipermail/webkit-dev/2008-June/004055.html

Dave


On Thu, 7/10/08, Nemix [EMAIL PROTECTED] wrote:

 Hi,
 
 I would like to try webkit cause I really need it for a
 project. I have to
 develop in Java.
 But I haven't any idea on how can I start with
 webkit ?.
 
 An IDE is needed (eclispe, ...) ? How can I do ?
 I'm a very newcomer... Can somebody help me to start
 please ?
 
 I have downloaded the Windows version of the webkit.
 
 I would like for example to embed it in a container to
 display the website I
 want.
 What files have I to look and modify (or create...) ?
 Have I got to use Java or Javascript (I have seen a lot of
 .js files in the
 windows package) or something else ?
 
 Thanks !

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] r35040 -- issue with gtk

2008-07-10 Thread Refstrup, Jacob Grundtvig
Hi,

With your recent change (r35040) to KURL.cpp in setRef() (line 708) testing for 
isNull() rather than isEmpty() caused a problem on GTK where called setRef() 
which ends up being not being null (but would have been empty). This currently 
causes all file:// references to have added a '#' at the end of the URL -- 
which means file:// URLs won't load. The immediately obvious fix is to change 
WebCore/platform/network/curl/ResourceHandleManager.cpp:558 to use 
setRef(String()) rather than setRef(). I grepped the code and there's a 
single other place (WebCore/page/AccessibilityRenderObject.cpp) that uses 
setRef() -- not sure if that'll have to be changed to.

Kind regards,
- Jacob

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] r35040 -- issue with gtk

2008-07-10 Thread Darin Adler
On Jul 10, 2008, at 9:58 AM, Refstrup, Jacob Grundtvig wrote:

 With your recent change (r35040) to KURL.cpp in setRef() (line 708)  
 testing for isNull() rather than isEmpty() caused a problem on GTK  
 where called setRef() which ends up being not being null (but  
 would have been empty). This currently causes all file:// references  
 to have added a '#' at the end of the URL -- which means file://  
 URLs won't load. The immediately obvious fix is to change WebCore/ 
 platform/network/curl/ResourceHandleManager.cpp:558 to use  
 setRef(String()) rather than setRef(). I grepped the code and  
 there's a single other place (WebCore/page/ 
 AccessibilityRenderObject.cpp) that uses setRef() -- not sure if  
 that'll have to be changed to.

We should definitely fix this!

Maybe we should add a removeRef or clearRef function to the KURL class  
for uses like these, to make the caller's intent clear. It would also  
be slightly more efficient.

 -- Darin

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Nightlies for other platforms?

2008-07-10 Thread Brent Fulgham
Andre-John,

 Are there any plans to add Webkit nightlies for other platforms on the
 nightlies page? I am thinking Linux/Qt or Linux/Gtk.

 Creating nightly builds for the large number of platforms that the Qt
 and Gtk ports support would be a large amount of work.  Limiting
 ourselves only to Linux would still leave the challenge of how to
 build these versions of WebKit in a way that would work across the
 wide range of Linux platforms.  As I'm not familiar with how to
 achieve this on Linux I do not have any plans to attempt this.

In addition to Mark's comments, you might consider looking at the
various Linux distributions.  For example, Debian (the only
distribution I really keep track of) includes the epiphany browser
(for Gnome), which uses WebKit.

I'm not sure how up-to-date they keep WebKit, but you could certainly
contact the WebKit maintainer (or equivalent on your favorite
distribution) to see.

It looks like there was an Alioth WebKit project started to track
nightlies (http://alioth.debian.org/projects/pkg-webkit/), but it
doesn't seem to have much activity.  You might contact them for help
in configuring local builds.

Hope that helps,

-Brent
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Canvas 3D support in Webkit

2008-07-10 Thread Darin Adler
On Jul 7, 2008, at 9:52 PM, cem tozkoparan wrote:

 I was wondering if there is(or will be) support for Canvas 3D in  
 WebKit similar to Opera and Mozilla.

I don't think anyone has started work on this yet, but it seems like a  
good idea. It'd be great to match cross-browser rather than just being  
similar.

 -- Darin

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to use webkit ?

2008-07-10 Thread Nemix

First of all : thank you  :)

On the link you give, there is an other link : 
http://weblogs.java.net/blog/ixmal/archive/2008/05/introducing_jwe.html
On this link, it is said :
The WebKit architecture consists of two considerable parts. The first one
is cross-platform, it is responsible for parsing documents, generating DOM,
supporting JavaScript. Another part, platform-dependent, so called port,
is intended for communicating with network, rendering graphic content on the
screen and other devices, event handling, and other features. JWebPane is a
Java port, in which all cross-platform calls are implemented in Java.

Does it mean that I have to develop two applications ? One for embedded
systems and one other for Mac OS ?
Or is it like for a classical J2SE application with different .jar (one for
each OS) ?

JavaFX that you suggest seems to offer a lot of functionnality. It is very
interesting !
Do you know other possibility to compare or is it one of the best to choose
?


Thanks again !

-- 
View this message in context: 
http://www.nabble.com/How-to-use-webkit---tp18385585p18391180.html
Sent from the Webkit mailing list archive at Nabble.com.

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to use webkit ?

2008-07-10 Thread Brent Fulgham
Hi,

On Thu, Jul 10, 2008 at 9:09 AM, Nemix [EMAIL PROTECTED] wrote:

 I would like to try webkit cause I really need it for a project. I have to
 develop in Java.
 But I haven't any idea on how can I start with webkit ?.

I think your question is far to vague for anyone to help you.  It's
not clear on what platform you are interested in using WebKit, or even
what your goal is.

Since you mention Java, you should probably look into Google's Android
project, which is using WebKit within a Java context.  Building on
their work might be the most efficient approach, as they have already
set up the necessary infrastructure to call into WebKit from Java and
so forth.

Good luck,

-Brent
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Nightlies for other platforms?

2008-07-10 Thread Michael(tm) Smith
Brent Fulgham [EMAIL PROTECTED], 2008-07-10 11:41 -0700:

 In addition to Mark's comments, you might consider looking at the
 various Linux distributions.  For example, Debian (the only
 distribution I really keep track of) includes the epiphany browser
 (for Gnome), which uses WebKit.

Debian also now has a package for Arora:

  http://packages.debian.org/sid/arora

-- 
Michael(tm) Smith
http://people.w3.org/mike/
http://sideshowbarker.net/


smime.p7s
Description: S/MIME cryptographic signature
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to use webkit ?

2008-07-10 Thread Gustavo Noronha Silva
On Thu, 2008-07-10 at 13:26 -0700, Nemix wrote:
 supporting JavaScript. Another part, platform-dependent, so called port,
 is intended for communicating with network, rendering graphic content on the
 screen and other devices, event handling, and other features. JWebPane is a
 Java port, in which all cross-platform calls are implemented in Java.
 
 Does it mean that I have to develop two applications ? One for embedded
 systems and one other for Mac OS ?

No, unless you want to write the application for Mac OS using the
Objective C port which is native for Mac OS. Each 'port' comes with
everything you need. When the text says 'platform-dependent' there, it
is telling you that there is a 'port' which is specific for Java, as
opposed to the one which is specific for C/GTK+ - both will run in
multiple OS/Hardware combinations, though.

So yeah, you'll have a .jar for each OS/Hardware combination, but your
code should be able to remain the same.

See you,

-- 
Gustavo Noronha Silva [EMAIL PROTECTED]
GNOME contributor: http://www.gnome.org/

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to use webkit ?

2008-07-10 Thread Patrick Hanna
I don't think Android is the answer either. Most of the webkit port  
is very dependent on the Android OS and is not portable to other java  
frameworks.

I think Brent is right when he said your question is very broad. If  
you are looking to write a java app that runs on multiple systems,  
JWebPane is probably what you want. But keep in mind that it probably  
uses Java graphics which IIRC will be slower than drawing in native  
code.

If you have a particular OS you are developing for, you need to port  
the network and graphics layers if they haven't been ported to that  
OS already. Then you need to use JNI to call into the native webkit  
apis from java and implement the various clients to call back up into  
java. For example, you could use WebCore/platform/graphics/win if  
your app runs on Windows and create a WebKit/java directory for the  
java interface.

I would start by looking at the various ports already done. Start  
with WebCore/platform/* and WebKit/*. The Windows and Mac ports are  
pretty good starting points for figuring out what you need to  
implement for your system.

Hope this helps,
Patrick

On Jul 10, 2008, at 4:55 PM, Brent Fulgham wrote:

 Hi,

 On Thu, Jul 10, 2008 at 9:09 AM, Nemix [EMAIL PROTECTED] wrote:

 I would like to try webkit cause I really need it for a project. I  
 have to
 develop in Java.
 But I haven't any idea on how can I start with webkit ?.

 I think your question is far to vague for anyone to help you.  It's
 not clear on what platform you are interested in using WebKit, or even
 what your goal is.

 Since you mention Java, you should probably look into Google's Android
 project, which is using WebKit within a Java context.  Building on
 their work might be the most efficient approach, as they have already
 set up the necessary infrastructure to call into WebKit from Java and
 so forth.

 Good luck,

 -Brent
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Faster run-webkit-tests?

2008-07-10 Thread Refstrup, Jacob Grundtvig
Hi,

Has anyone looked into making run-webkit-tests run faster by taking advantage 
of multiple CPUs? E.g. my workstation is 8gb, with 2 x dual core and I think 
it'd do just fine in running 4-8 tests simultaneously.

If there's no such work then I might start poking around.

- Jacob
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Faster run-webkit-tests?

2008-07-10 Thread Darin Adler
On Jul 10, 2008, at 5:11 PM, Refstrup, Jacob Grundtvig wrote:

 Has anyone looked into making run-webkit-tests run faster by taking  
 advantage of multiple CPUs? E.g. my workstation is 8gb, with 2 x  
 dual core and I think it'd do just fine in running 4-8 tests  
 simultaneously.

 If there's no such work then I might start poking around.

I don't think anyone worked on this yet. Seems like a great idea.

 -- Darin

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Faster run-webkit-tests?

2008-07-10 Thread Dan Bernstein
On Jul 10, 2008, at 5:11 PM, Refstrup, Jacob Grundtvig wrote:

 Hi,

 Has anyone looked into making run-webkit-tests run faster by taking  
 advantage of multiple CPUs? E.g. my workstation is 8gb, with 2 x  
 dual core and I think it'd do just fine in running 4-8 tests  
 simultaneously.

 If there's no such work then I might start poking around.

I am not aware of any current work. See 
https://bugs.webkit.org/show_bug.cgi?id=10906 
 .
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] CSS Animation

2008-07-10 Thread Shakti Ashirvad
Hi,

I have gone through the blog CSS Animation and want to explore more about
it. Where can I find the detailed CSS spec for Webkit CSS extentions.

http://webkit.org/blog/138/css-animation/ I have gone through this link and
want to explore more.

Thanks a lot.

Regards,
Shakti
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] CSS Animation

2008-07-10 Thread Matt Lilek

On Jul 10, 2008, at 11:55 PM, Shakti Ashirvad wrote:


Hi,

I have gone through the blog CSS Animation and want to explore  
more about it. Where can I find the detailed CSS spec for Webkit CSS  
extentions.


http://webkit.org/blog/138/css-animation/ I have gone through this  
link and want to explore more.


Thanks a lot.

Regards,
Shakti


http://webkit.org/specs/CSSVisualEffects/CSSAnimation.html

- Matt___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev