[webkit-dev] chrooting WebKit

2009-04-06 Thread Wellu Mäkinen
Hi,

is there an API to limit the WebKit's access to local resources? What I've 
been looking for is kind of chroot() inside of WebKit. So a local file loaded 
e.g from /usr/share/test would only be able to refer to files under 
/usr/share/test. Currently a file loaded from local disk can refer to anywhere.

I've been looking at SecurityOrigin.cpp but it seems that once the file is 
considered local then it can access any local file.

Thanks,
-- 
Wellu

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


[webkit-dev] Building QtWebKit on Mac OS X

2009-04-06 Thread Husam Senussi

Hi,

I'm trying to build QtWebKit framework on mac os x,, i did finally  
manage to build but

it only built Qluncher and test apps but not QtWebkit framework.

i used build-webkit with qt option to build.

Is there any option I need to use to build the framework on Mac OS !!


Thanks
Husam
 
___

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


Re: [webkit-dev] OpenCL

2009-04-06 Thread Paul Pedriana




IMO the biggest benefits that OpenCL (or some other vector-savvy
multiprocessing interface) could bring to WebKit would be in the
following areas:

  Reading graphics files (e.g. jpg)
  Encryption/Decryption (TLS, SSL)
  Compositing graphics in software (e.g. alpha blends)
  Implementing runtime graphics decompression (e.g. blitting from
DXT or RLE or even possibly directly from .jpg/.png)
  Improving special cases of existing _javascript_ execution
  Improving video codec performance (for video plugins)
  

I don't see OpenCL easily improving the following areas, though there
are ways to throw general threads at these problems:

  Network transport
  HTML/XML/CSS parsing
  Layout / Font processing, at least at the low level
  
  General _javascript_ execution, JITing _javascript_
  General Flash script execution
  AJAX related functionality
  

On Windows you can achieve significantly higher network throughput by
splitting the work across multiple threads, due to how the network
stack works. If you needed to read 100 files from a server, you'd get
better performance by splitting it into 4 pipelined HTTP connections on
4 threads. This is true even if you don't have multiple CPUs. 

It's not easy to parallelize things like text parsing and DOM
processing. There's a reason why a lot of multiprocessing research
focuses on the success cases of things like DSP, matrix math, and
naturally branch-less algorithms.

Paul


Hi,
  
I wonder if it is planned to rewrite WebKit in OpenCL. I'm not sure but
theoretically we could expect a further big improvement in speed, both
in rendering HTML and _javascript_. Am I wrong?
  
  
Angelo
  
___
  
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


Re: [webkit-dev] want to port JIT to MIPS - where comes from _ZN3JSC8JITStubs12cti_vm_throwEPvz

2009-04-06 Thread x yz

jit complier give error because above label is hard coded. It reports the error 
with a file .s under /tmp yet I cannot see and not sure who removes it. Pls be 
kindly to let me know how I can change above label to correct one.

Also, now I see hard coded constant patchOffsetOpCallCompareToJump=6 comes from 
some code via gdb, yet not sure where/when it is generated. It seems to be a c 
function head. 

rgds
joe 


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


Re: [webkit-dev] chrooting WebKit

2009-04-06 Thread Adam Barth
There isn't currently an API for doing this.  You're right, though,
that SecurityOrigin.cpp would be the file that would implement this
feature.

Adam


2009/4/6 Wellu Mäkinen wellu.maki...@nokia.com:
 Hi,

 is there an API to limit the WebKit's access to local resources? What I've
 been looking for is kind of chroot() inside of WebKit. So a local file loaded
 e.g from /usr/share/test would only be able to refer to files under
 /usr/share/test. Currently a file loaded from local disk can refer to 
 anywhere.

 I've been looking at SecurityOrigin.cpp but it seems that once the file is
 considered local then it can access any local file.

 Thanks,
 --
 Wellu

 ___
 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 instead of ..... in the password editor

2009-04-06 Thread zhenghe zhang
Hi all
I have a problem, and I don't understand it ,could you tell me ?
input type=password id=text name=text1 value=Hello 
In the input-element, . takes the place of Hello, but I don't know
how to do it through C++ functions.
Thank you  best regards
zhang

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


Re: [webkit-dev] how to instead of ..... in the password editor

2009-04-06 Thread Holger Freyther
On Tuesday 07 April 2009 02:45:50 zhenghe zhang wrote:
 Hi all
 I have a problem, and I don't understand it ,could you tell me ?
 input type=password id=text name=text1 value=Hello 
 In the input-element, . takes the place of Hello, but I don't know
 how to do it through C++ functions.
 Thank you  best regards

Hey Zhenghe,

you have written more than 30 mails starting from December, Have you 
contributed anything during this time to WebKit.org project (filed a bug, send 
a patch?)? Where is your interest coming from?

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