Re: [webkit-dev] How to set breakpoints in JavaScript Engine of WebKit on MacOS
On Fri, May 15, 2009 at 11:07 PM, Darin Adler da...@apple.com wrote: On May 15, 2009, at 10:50 PM, Meryl Silverburgh wrote: I am able to download and compile both WebCore project and JavaScriptCore project using XCode on Macos. I have created a custom executable (pointing to /Application/Safari.app) in my WebCore project. The browser is launched and I can set breakpoints in WebCore. But my question is how can I set breakpoints in JavaScript engine? e.g. I want to load www.cnn.com in the brower and i want it to break at void Parser::parse(JSGlobalData* globalData, int* errLine, UString* errMsg) in JavaScriptCore (Parser.cpp). Just open the source file and set a breakpoint. It should work. I do that all the time. Thank you. I tried the following, but it still does not work: 1. open WebCore xcode project (build and go (debug) runs fine, it launches a Safari.app) 2. Go to File-Open, and open JavaScriptCore/parser/Parser.cpp 3. File, Parser.cpp, got opened in XCode. 4. Go to line 42, set a breakpoint, a Yellow with blue border' bookmark showed up void Parser::parse(JSGlobalData* globalData, int* errLine, UString* errMsg) { m_sourceElements = 0; 5. 'Build and Go' in Webkit project. 6. Load www.aol.com But my breakpoint in JavaScript Parser never breaks. Can you please tell me what am i missing? Any help is appreciated. Thank you. You can also create a custom executable in the JavaScriptCore project and start Safari from there instead of the WebCore project. -- Darin ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] bug? // FIXME: rdar://problem/4949018
Ahh, I remember reading that in the documentation. How frustrating. Thank you for you help. On Thu, May 28, 2009 at 5:53 PM, Darin Adler da...@apple.com wrote: On May 28, 2009, at 9:49 AM, Jack Wootton wrote: JSStaticFunction JS_staticFuncs[1] = { {funcName, functionCallback, kJSPropertyAttributeNone} }; There’s your mistake. To quote the documentation for JSClassDefinition. �...@field staticFunctions A JSStaticFunction array containing the class's statically declared function properties. Pass NULL to specify no statically declared function properties. The array must be terminated by a JSStaticFunction whose name field is NULL.” The JS_staticFuncs array is not terminated with a function with a name field of NULL and must be. This should work better. JSStaticFunction JS_staticFuncs[] = { {funcName, functionCallback, kJSPropertyAttributeNone}, {0, 0, 0} }; Hope that helps! -- Darin -- Regards Jack ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Asynchronous JavaScript method support
Does WebKit allow for asynchronous methods / functions to be added to the JavaScript environment? -- Regards Jack ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] How to set breakpoints in JavaScript Engine of WebKit on MacOS
On Thu, May 28, 2009 at 11:28 PM, Meryl Silverburgh silverburgh.me...@gmail.com wrote: On Fri, May 15, 2009 at 11:07 PM, Darin Adler da...@apple.com wrote: On May 15, 2009, at 10:50 PM, Meryl Silverburgh wrote: I have created a custom executable (pointing to /Application/Safari.app) in my WebCore project. But my question is how can I set breakpoints in JavaScript engine? Try these two things: Thing One 1. Launch xcode. 2. Go to xcode's preferences. 3. Choose debugging from the top section. 4. Uncheck Load symbols lazily 5. click ok (to apply this and close preferences). Thing Two 1. Load your xcode project with the custom safari executable 2. right click your custom executable for webkit 3. choose Get Info 4. click arguments at the top. 5. In the section variables to be set in the environment, click the +. 6. Make the name DYLD_FRAMEWORK_PATH 7. Make the value something like pathToYourEnlistment/WebKitBuild/Debug 8 Close the get info window Dave ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] One suggestion to handle: GLib-GIO-CRITICAL **: g_file_read_async: assertion `G_IS_FILE (file)' failed
Hi, I compiled WebKit-44111 with the following packages: glib-2.15.3 libsoup-2.26.2 libgpg-error-1.6 libgcrypt-1.4.3 GnuTLS-2.6.2 gtk+-2.12.1 When I tried to open file://data/test.html the following error is shown in the console and page is not loaded. * (GtkLauncher:1378): GLib-GIO-CRITICAL **: g_file_read_async: assertion `G_IS_FILE (file)*' failed But, it works, if I comment one statement as follows: -- diff -puNr WebKit-r44111/WebCore/platform/network/soup/ResourceHandleSoup.cpp WebKit-r44111_m/WebCore/platform/network/soup/ResourceHandleSoup.cpp --- WebKit-r44111/WebCore/platform/network/soup/ResourceHandleSoup.cpp 2009-05-23 10:27:55.0 +0530 +++ WebKit-r44111_m/WebCore/platform/network/soup/ResourceHandleSoup.cpp 2009-05-29 16:06:55.0 +0530 @@ -820,7 +820,7 @@ static void queryInfoCallback(GObject* s g_file_info_get_modification_time(info, tv); response.setLastModifiedDate(tv.tv_sec); -client-didReceiveResponse(handle, response); +//client-didReceiveResponse(handle, response); g_file_read_async(d-m_gfile, G_PRIORITY_DEFAULT, d-m_cancellable, openCallback, 0); --- It is to be noted that, if we don't comment the didReceiveResponse call the value of d-m_gfile becomes NULL, hence the g_file_read_async fails. Is this statement required? Is there any other way to overcome this issue ? I expect your valuable suggestion. Thanks Regards Dhananjoy ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] WebKit-Build
Hello all, I am new in Webkit development and I need your help. I am trying to build webkit with no success, I have spent quite some time reading google for possible hints and have seen many posts with many people having the same problem (some were posted a year or two ago) but have not seen any solution yet. I appreciate your help and looking forward to contribute as soon as I get my feet on the ground. Some background regarding my problem. - Problem I see when I build: Project : warning PRJ0018 : The following environment variables were not found: $(PRODUCTION) I have followed step by step the build instructions from (http://webkit.org/building/checkout.html). - I installed VC Express and I am able to build successfully from VC Express (sample code) - I visited useful link (http://blog.wrbsoftware.com/archive/2009/04/14/debugging-safari-on-windows.aspx). - I got the latest Webkit code and I placed it under C:\cygwin\usr\webkit It seems to me that I still am not seeing some undocumented steps and I am hoping you might be able to point me to a solution. Thank you very much. Regards Fred ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Safari 4: all apps which use Webkit freezing at same time
It's happened a couple of times now: all of the open apps which use Webkit (e.g. Adium, Mail, Safari etc) will hang at the same time and will not allow the user to force quit. A restart is required to get the Mac functional again. Is this a known issue? Any idea what might be up? Thanks, Ben ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Undefined symbol: '_JSObjectMakeFunction'
Hello, I'm attempting to use the function JSObjectMakeFunction. However during compilation, I receive the error Undefined symbol: '_JSObjectMakeFunction' This seems odd since I have successfully used other functions that are part of the same library. No specific line number or file is provided. I noticed that the file JavaScriptCore.exp contains the following line '_JSObjectMakeFunction'. However I'm unsure what role the file JavaScriptCore.exp is used for. -- Regards Jack ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Asynchronous JavaScript method support
On May 29, 2009, at 1:46 AM, Jack Wootton wrote: Does WebKit allow for asynchronous methods / functions to be added to the JavaScript environment? There’s no clear definition for “asynchronous functions” so I can’t really answer that question. There are many JavaScript functions that do work and then later call a function to indicate the work is complete. If you’re using the JavaScriptCore API you can easily implement something like that. But you need to be sure to manipulate the JavaScript objects only on the same thread the JavaScript call comes in on. In the WebKit context that means only on the main thread. So you can do some work, and then make a call to a JavaScript function that the caller passed on the main thread. -- Darin ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] AppCache class naming (WAS Re: SharedWorkers alternate design)
On Thu, May 28, 2009 at 4:32 PM, Michael Nordman micha...@google.comwrote: Can you think of a more specific way to describe the reationship than front and back or client and service? Does one of the Gang of Four Design Patterns apply? That can be a good resource for clear ways to describe class relationships, even fairly abstract ones. Nice suggestion... In my case Facade may be the most appropriate name for what i've been referring to as the 'frontend' interface. I'm endeavoring to provide a simplified interface (a facade) to a more complex system, the moving parts of which are not important to clients of the facade. Inside that Facade, Proxy may be the most appropriate for the messaging abstraction parts. ApplicationCacheFacade * uses ApplicationCacheSystemProxy ApplicationCacheSystem * uses ApplicationCacheFacadeProxy WDYT? I'm not really sure this is a Facade pattern. I think a good example of the facade pattern is the WebKit to WebCore relationship: a complex inner system that's made to be easy to use via the facade. Personally, I find the names less clear than Client/Server (or Backend/Frontend). What if we could come up with some more clear synonyms for Backend/Frontend? Another way to think about it is that the frontend is the seating area (or counter) of a resteraunt and the backend is the kitchen. What other metaphores along these lines would be similar? Maybe something about Storage vs Bindings (since the one half is about storing everything and the other is about hooking it into the resource loading)? I don't knowjust trying to brainstorm here. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] AppCache class naming (WAS Re: SharedWorkers alternate design)
I really have no strong opinions one way or the other (or the other), so long as its somewhat intelligible I'm good. Having said that Kitchen and Counter don't pass muster for me :) Bindings mean script bindings... not gonna overload that for this Intelligible options any of which work for me so far * FooFacade FooSystem * FooFrontend FooBackend * FooClient FooService We should wrap this rat hole up. On Fri, May 29, 2009 at 11:16 AM, Jeremy Orlowjor...@chromium.org wrote: On Thu, May 28, 2009 at 4:32 PM, Michael Nordman micha...@google.com wrote: Can you think of a more specific way to describe the reationship than front and back or client and service? Does one of the Gang of Four Design Patterns apply? That can be a good resource for clear ways to describe class relationships, even fairly abstract ones. Nice suggestion... In my case Facade may be the most appropriate name for what i've been referring to as the 'frontend' interface. I'm endeavoring to provide a simplified interface (a facade) to a more complex system, the moving parts of which are not important to clients of the facade. Inside that Facade, Proxy may be the most appropriate for the messaging abstraction parts. ApplicationCacheFacade * uses ApplicationCacheSystemProxy ApplicationCacheSystem * uses ApplicationCacheFacadeProxy WDYT? I'm not really sure this is a Facade pattern. I think a good example of the facade pattern is the WebKit to WebCore relationship: a complex inner system that's made to be easy to use via the facade. Personally, I find the names less clear than Client/Server (or Backend/Frontend). What if we could come up with some more clear synonyms for Backend/Frontend? Another way to think about it is that the frontend is the seating area (or counter) of a resteraunt and the backend is the kitchen. What other metaphores along these lines would be similar? Maybe something about Storage vs Bindings (since the one half is about storing everything and the other is about hooking it into the resource loading)? I don't knowjust trying to brainstorm here. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] AppCache class naming (WAS Re: SharedWorkers alternate design)
HaKitchen/Counter were an attempt to push thinking in the right direction, not a real suggestion. Agree that this is a rat hole and it we need to move on. Still think Frontend/Backend is the clearest thing despite being used in a different manner in some other places and despite Client/Server(/Service) being used elsewhere. But Client/Service is my second choice. J On Fri, May 29, 2009 at 11:57 AM, Michael Nordman micha...@google.comwrote: I really have no strong opinions one way or the other (or the other), so long as its somewhat intelligible I'm good. Having said that Kitchen and Counter don't pass muster for me :) Bindings mean script bindings... not gonna overload that for this Intelligible options any of which work for me so far * FooFacade FooSystem * FooFrontend FooBackend * FooClient FooService We should wrap this rat hole up. On Fri, May 29, 2009 at 11:16 AM, Jeremy Orlowjor...@chromium.org wrote: On Thu, May 28, 2009 at 4:32 PM, Michael Nordman micha...@google.com wrote: Can you think of a more specific way to describe the reationship than front and back or client and service? Does one of the Gang of Four Design Patterns apply? That can be a good resource for clear ways to describe class relationships, even fairly abstract ones. Nice suggestion... In my case Facade may be the most appropriate name for what i've been referring to as the 'frontend' interface. I'm endeavoring to provide a simplified interface (a facade) to a more complex system, the moving parts of which are not important to clients of the facade. Inside that Facade, Proxy may be the most appropriate for the messaging abstraction parts. ApplicationCacheFacade * uses ApplicationCacheSystemProxy ApplicationCacheSystem * uses ApplicationCacheFacadeProxy WDYT? I'm not really sure this is a Facade pattern. I think a good example of the facade pattern is the WebKit to WebCore relationship: a complex inner system that's made to be easy to use via the facade. Personally, I find the names less clear than Client/Server (or Backend/Frontend). What if we could come up with some more clear synonyms for Backend/Frontend? Another way to think about it is that the frontend is the seating area (or counter) of a resteraunt and the backend is the kitchen. What other metaphores along these lines would be similar? Maybe something about Storage vs Bindings (since the one half is about storing everything and the other is about hooking it into the resource loading)? I don't knowjust trying to brainstorm here. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] WebKit-Build
Hello, I have made some improvements that I like to share the findings, however it still does not build. Things I did: - --- On Fri, 5/29/09, F S kaboota...@yahoo.com wrote: From: F S kaboota...@yahoo.com Subject: WebKit-Build To: webkit-dev@lists.webkit.org Date: Friday, May 29, 2009, 6:23 AM Hello all, I am new in Webkit development and I need your help. I am trying to build webkit with no success, I have spent quite some time reading google for possible hints and have seen many posts with many people having the same problem (some were posted a year or two ago) but have not seen any solution yet. I appreciate your help and looking forward to contribute as soon as I get my feet on the ground. Some background regarding my problem. - Problem I see when I build: Project : warning PRJ0018 : The following environment variables were not found: $(PRODUCTION) I have followed step by step the build instructions from (http://webkit.org/building/checkout.html). - I installed VC Express and I am able to build successfully from VC Express (sample code) - I visited useful link (http://blog.wrbsoftware.com/archive/2009/04/14/debugging-safari-on-windows.aspx). - I got the latest Webkit code and I placed it under C:\cygwin\usr\webkit It seems to me that I still am not seeing some undocumented steps and I am hoping you might be able to point me to a solution. Thank you very much. Regards Fred ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] WebKit-Build
Hello, I have made some improvements that I like to share the findings, however it still does not build. Things I did: - --- On Fri, 5/29/09, F S kaboota...@yahoo.com wrote: From: F S kaboota...@yahoo.com Subject: WebKit-Build To: webkit-dev@lists.webkit.org Date: Friday, May 29, 2009, 6:23 AM Hello all, I am new in Webkit development and I need your help. I am trying to build webkit with no success, I have spent quite some time reading google for possible hints and have seen many posts with many people having the same problem (some were posted a year or two ago) but have not seen any solution yet. I appreciate your help and looking forward to contribute as soon as I get my feet on the ground. Some background regarding my problem. - Problem I see when I build: Project : warning PRJ0018 : The following environment variables were not found: $(PRODUCTION) I have followed step by step the build instructions from (http://webkit.org/building/checkout.html). - I installed VC Express and I am able to build successfully from VC Express (sample code) - I visited useful link (http://blog.wrbsoftware.com/archive/2009/04/14/debugging-safari-on-windows.aspx). - I got the latest Webkit code and I placed it under C:\cygwin\usr\webkit It seems to me that I still am not seeing some undocumented steps and I am hoping you might be able to point me to a solution. Thank you very much. Regards Fred ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] WebKit-Build
Hello, I have made some improvements that I like to share the findings, however it still does not build. Things I did: - Noticed I --- On Fri, 5/29/09, F S kaboota...@yahoo.com wrote: From: F S kaboota...@yahoo.com Subject: WebKit-Build To: webkit-dev@lists.webkit.org Date: Friday, May 29, 2009, 6:23 AM Hello all, I am new in Webkit development and I need your help. I am trying to build webkit with no success, I have spent quite some time reading google for possible hints and have seen many posts with many people having the same problem (some were posted a year or two ago) but have not seen any solution yet. I appreciate your help and looking forward to contribute as soon as I get my feet on the ground. Some background regarding my problem. - Problem I see when I build: Project : warning PRJ0018 : The following environment variables were not found: $(PRODUCTION) I have followed step by step the build instructions from (http://webkit.org/building/checkout.html). - I installed VC Express and I am able to build successfully from VC Express (sample code) - I visited useful link (http://blog.wrbsoftware.com/archive/2009/04/14/debugging-safari-on-windows.aspx). - I got the latest Webkit code and I placed it under C:\cygwin\usr\webkit It seems to me that I still am not seeing some undocumented steps and I am hoping you might be able to point me to a solution. Thank you very much. Regards Fred ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] WebKit-Build
Hello, Sorry, my previous email was sent at the middle, do not know why. I have made some improvements that I like to share the findings, however it still does not build. Things I did: - Added Environment Variables for INCLUDE, PATH and LIB to Windows environment to match VC++ setting - Reading through google find out needed to change WebKit\WebCore\css\makevalues.pl file to fix a bug. (http://lists.macosforge.org/pipermail/webkit-unassigned/2009-May/109430.html) - Now the WebCore projects compiles with only 32 errors as opposed to 1000+ errors. Below is the files it can not find. I have run the webkit-update. Do you know why these files are missing and where can I get them? MoveSelectionCommand.cpp c:\cygwin\usr\webkit\webcore\svg\SVGElement.h(29) : fatal error C1083: Cannot open include file: 'SVGNames.h': No such file or directory WMLNoopElement.cpp CSSStyleDeclaration.cpp Plugin.cpp ..\editing\DeleteButtonController.cpp(33) : fatal error C1083: Cannot open include file: 'CSSValueKeywords.h': No such file or directory HTMLInterchange.cpp CrossThreadCopier.cpp ..\bindings\js\JSNodeCustom.cpp(61) : fatal error C1083: Cannot open include file: 'JSSVGElementWrapperFactory.h': No such file or directory SQLResultSetRowList.cpp XMLNames.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\XMLNames.cpp': No such file or directory JSElementCustom.cpp ..\bindings\js\JSElementCustom.cpp(44) : fatal error C1083: Cannot open include file: 'JSSVGElementWrapperFactory.h': No such file or directory SVGElementFactory.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\SVGElementFactory.cpp': No such file or directory JSSVGElementWrapperFactory.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\JSSVGElementWrapperFactory.cpp': No such file or directory XLinkNames.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\XLinkNames.cpp': No such file or directory WMLElementFactory.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\WMLElementFactory.cpp': No such file or directory Thanks and regards, Fred --- On Fri, 5/29/09, F S kaboota...@yahoo.com wrote: From: F S kaboota...@yahoo.com Subject: WebKit-Build To: webkit-dev@lists.webkit.org Date: Friday, May 29, 2009, 6:23 AM Hello all, I am new in Webkit development and I need your help. I am trying to build webkit with no success, I have spent quite some time reading google for possible hints and have seen many posts with many people having the same problem (some were posted a year or two ago) but have not seen any solution yet. I appreciate your help and looking forward to contribute as soon as I get my feet on the ground. Some background regarding my problem. - Problem I see when I build: Project : warning PRJ0018 : The following environment variables were not found: $(PRODUCTION) I have followed step by step the build instructions from (http://webkit.org/building/checkout.html). - I installed VC Express and I am able to build successfully from VC Express (sample code) - I visited useful link (http://blog.wrbsoftware.com/archive/2009/04/14/debugging-safari-on-windows.aspx). - I got the latest Webkit code and I placed it under C:\cygwin\usr\webkit It seems to me that I still am not seeing some undocumented steps and I am hoping you might be able to point me to a solution. Thank you very much. Regards Fred ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] WebKit-Build
Hi Fred, Could it be that you did the checkout from under the Windows command line rather than from within CygWin? This messes it up, at least that was the cause for a similar issue I encountered. Everything worked fine when I re-did the checkout under CygWin. It's also the first time I see the link you posted - that patch shouldn't be necessary AFAIK. Also (someone correct me if I'm wrong), setting any windows environment variable also shouldn't be necessary, provided you set up the include paths in Visual Studio correctly. (The only environment variable you need is WEBKIT_TESTFONTS if you run layout tests on Windows - a whole 'nother can of worms). The errors you list below are auto-generated files. It seems the scripts that generate them haven't been run, probably due to some previous error (could be linked to the above issue). Cheers, Roland On Fri, May 29, 2009 at 12:36 PM, F S kaboota...@yahoo.com wrote: Hello, Sorry, my previous email was sent at the middle, do not know why. I have made some improvements that I like to share the findings, however it still does not build. Things I did: - Added Environment Variables for INCLUDE, PATH and LIB to Windows environment to match VC++ setting - Reading through google find out needed to change WebKit\WebCore\css\makevalues.pl file to fix a bug. ( http://lists.macosforge.org/pipermail/webkit-unassigned/2009-May/109430.html ) - Now the WebCore projects compiles with only 32 errors as opposed to 1000+ errors. Below is the files it can not find. I have run the webkit-update. Do you know why these files are missing and where can I get them? MoveSelectionCommand.cpp c:\cygwin\usr\webkit\webcore\svg\SVGElement.h(29) : fatal error C1083: Cannot open include file: 'SVGNames.h': No such file or directory WMLNoopElement.cpp CSSStyleDeclaration.cpp Plugin.cpp ..\editing\DeleteButtonController.cpp(33) : fatal error C1083: Cannot open include file: 'CSSValueKeywords.h': No such file or directory HTMLInterchange.cpp CrossThreadCopier.cpp ..\bindings\js\JSNodeCustom.cpp(61) : fatal error C1083: Cannot open include file: 'JSSVGElementWrapperFactory.h': No such file or directory SQLResultSetRowList.cpp XMLNames.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\XMLNames.cpp': No such file or directory JSElementCustom.cpp ..\bindings\js\JSElementCustom.cpp(44) : fatal error C1083: Cannot open include file: 'JSSVGElementWrapperFactory.h': No such file or directory SVGElementFactory.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\SVGElementFactory.cpp': No such file or directory JSSVGElementWrapperFactory.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\JSSVGElementWrapperFactory.cpp': No such file or directory XLinkNames.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\XLinkNames.cpp': No such file or directory WMLElementFactory.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\WMLElementFactory.cpp': No such file or directory *Thanks and regards,* *Fred * --- On *Fri, 5/29/09, F S kaboota...@yahoo.com* wrote: From: F S kaboota...@yahoo.com Subject: WebKit-Build To: webkit-dev@lists.webkit.org Date: Friday, May 29, 2009, 6:23 AM Hello all, I am new in Webkit development and I need your help. I am trying to build webkit with no success, I have spent quite some time reading google for possible hints and have seen many posts with many people having the same problem (some were posted a year or two ago) but have not seen any solution yet. I appreciate your help and looking forward to contribute as soon as I get my feet on the ground. Some background regarding my problem. - Problem I see when I build: *Project : warning PRJ0018 : The following environment variables were not found: $(PRODUCTION) * *I have followed step by step the build instructions from (** http://webkit.org/building/checkout.html*http://webkit.org/building/checkout.html *).* - I installed VC Express and I am able to build successfully from VC Express (sample code) - I visited useful link ( http://blog.wrbsoftware.com/archive/2009/04/14/debugging-safari-on-windows.aspx ). - I got the latest Webkit code and I placed it under C:\cygwin\usr\webkit It seems to me that I still am not seeing some undocumented steps and I am hoping you might be able to point me to a solution. Thank you very much. Regards Fred ___ 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] AppCache class naming (WAS Re: SharedWorkers alternate design)
one might reasonably assume that in Chrome, the renderer process is the back end Not really. We do use the terms front and back, but they usually refer to something a bit orthognal to this child/main process distinction... closer to network stack vs closer to browserui is generally what these terms refer to. Anyway... how these terms are used in chromium shouldn't influence our use of these terms in webcore much... in webcore-land we (me at least) were thinking 'front' == closer to script and html content, 'back' == farther away from that. I can make suggestions in the context of reviewing a patch if you guys don't want to discuss it any more. I'm not clear enough on how exactly you split the classes to make a good suggestion. That would be great. Here's a patch... https://bugs.webkit.org/show_bug.cgi?id=25436 ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] WebKit-Build
Hi Roland, I did the checkout from cygwin, I do not think you can do it from DOS command. I tried one thing else and that seems to have done the trick. Reading the documents over and over I noticed they say copy the webkit to cygn\home\username\Webkit. In my build I did not have such structure, so I created a Home\username node under cygwin and copied Webkit there and tried to rebuild. It says the build is successful, I try to run it now :) Regarding the bug fix. When I checked out the code it gave me the choice between Windows Text format or Unix format, I chose Windows Text format (Should have stayed with default). I think that messed things up. Below is the result of the build. WebKit is now built. To run Safari with this newly-built code, use the WebKitTools/Scripts/run-safari script. NOTE: WebKit has been built with SVG support enabled. Safari will have SVG viewing capabilities. Your build supports the following (optional) SVG features: * Basic SVG animation. * SVG as image. * SVG fonts. * SVG foreign object. * SVG use support. The build created the following directories: C:\cygwin\home\username\WebKit\WebKitBuild\obj\InterfacesGenerated C:\cygwin\home\username\WebKit\WebKitBuild\obj\JavaScriptCore C:\cygwin\home\username\WebKit\WebKitBuild\obj\JavaScriptCoreGenerated C:\cygwin\home\username\WebKit\WebKitBuild\obj\record-memory-win C:\cygwin\home\username\WebKit\WebKitBuild\obj\WebCore C:\cygwin\home\username\WebKit\WebKitBuild\obj\WebKit Is this all it should be? Now I tried to run Safari from cygwin and I get notification below: $ run-safari 1 file(s) copied. 'FindSafari.exe' is not recognized as an internal or external command, operable program or batch file. Setting environment for using Microsoft Visual Studio 2005 x86 tools. When I search for FindSafari.exe it is not there. Thanks for all the help. Regards, Fred --- On Fri, 5/29/09, Roland Steiner rolandstei...@google.com wrote: From: Roland Steiner rolandstei...@google.com Subject: Re: [webkit-dev] WebKit-Build To: F S kaboota...@yahoo.com Cc: webkit-dev@lists.webkit.org Date: Friday, May 29, 2009, 12:56 PM Hi Fred, Could it be that you did the checkout from under the Windows command line rather than from within CygWin? This messes it up, at least that was the cause for a similar issue I encountered. Everything worked fine when I re-did the checkout under CygWin. It's also the first time I see the link you posted - that patch shouldn't be necessary AFAIK. Also (someone correct me if I'm wrong), setting any windows environment variable also shouldn't be necessary, provided you set up the include paths in Visual Studio correctly. (The only environment variable you need is WEBKIT_TESTFONTS if you run layout tests on Windows - a whole 'nother can of worms). The errors you list below are auto-generated files. It seems the scripts that generate them haven't been run, probably due to some previous error (could be linked to the above issue). Cheers, Roland On Fri, May 29, 2009 at 12:36 PM, F S kaboota...@yahoo.com wrote: Hello, Sorry, my previous email was sent at the middle, do not know why. I have made some improvements that I like to share the findings, however it still does not build. Things I did: - Added Environment Variables for INCLUDE, PATH and LIB to Windows environment to match VC++ setting - Reading through google find out needed to change WebKit\WebCore\css\makevalues.pl file to fix a bug. (http://lists.macosforge.org/pipermail/webkit-unassigned/2009-May/109430.html) - Now the WebCore projects compiles with only 32 errors as opposed to 1000+ errors. Below is the files it can not find. I have run the webkit-update. Do you know why these files are missing and where can I get them? MoveSelectionCommand.cpp c:\cygwin\usr\webkit\webcore\svg\SVGElement.h(29) : fatal error C1083: Cannot open include file: 'SVGNames.h': No such file or directory WMLNoopElement.cpp CSSStyleDeclaration.cpp Plugin.cpp ..\editing\DeleteButtonController.cpp(33) : fatal error C1083: Cannot open include file: 'CSSValueKeywords.h': No such file or directory HTMLInterchange.cpp CrossThreadCopier.cpp ..\bindings\js\JSNodeCustom.cpp(61) : fatal error C1083: Cannot open include file: 'JSSVGElementWrapperFactory.h': No such file or directory SQLResultSetRowList.cpp XMLNames.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\XMLNames.cpp': No such file or directory JSElementCustom.cpp ..\bindings\js\JSElementCustom.cpp(44) : fatal error C1083: Cannot open include file: 'JSSVGElementWrapperFactory.h': No such file or directory SVGElementFactory.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\webkitbuild\obj\webcore\derivedsources\SVGElementFactory.cpp': No such file or directory JSSVGElementWrapperFactory.cpp c1xx : fatal error C1083: Cannot open source file:
[webkit-dev] Webkit GTKLauncher
Can anyone help me with this problem? I am trying to build the GTK build of webkit. When I try to run the GTKLauncher (WebKit/Programs/GtkLauncher), it fails with a segfault. The following is the message I get: ASSERTION FAILED: differenceBetween(coldPathBegin, call) == patchOffsetGetByIdSlowCaseCall (JavaScriptCore/jit/JITPropertyAccess.cpp:334 void JSC::JIT::compileGetByIdSlowCase(int, int, JSC::Identifier*, JSC::SlowCaseEntry*, unsigned int, bool)) Segmentation fault -- This does not happen, if I try to load a local page. For any page with 'http://' in the URL, I'm getting the above. Can someone help me out on this? Thanks ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] does jit uses self-modifying code?
Hi, Appreciate for help. If the answer is yes may I know here are they. MIPS webkit-1.1.1, cmd using: jsc shell.js In JavaScriptCore/runtime/JSObject.h:527 asCell()-put(exec, propertyName, value, slot); this one will call a function, yet the function entry address got is invalid. 0x006b17ec 527 asCell()-put(exec, propertyName, value, slot); (gdb) x/10i $pc 0x6b17ec _ZN3JSC10JSValuePtr3putEPNS_9ExecStateERKNS_10IdentifierES0_RNS_15PutPropertySlotE+196: lw gp,24(s8) 0x6b17f0 _ZN3JSC10JSValuePtr3putEPNS_9ExecStateERKNS_10IdentifierES0_RNS_15PutPropertySlotE+200: movev1,v0 0x6b17f4 _ZN3JSC10JSValuePtr3putEPNS_9ExecStateERKNS_10IdentifierES0_RNS_15PutPropertySlotE+204: lw a0,0(v1) 0x6b17f8 _ZN3JSC10JSValuePtr3putEPNS_9ExecStateERKNS_10IdentifierES0_RNS_15PutPropertySlotE+208: lw a3,60(s8) 0x6b17fc _ZN3JSC10JSValuePtr3putEPNS_9ExecStateERKNS_10IdentifierES0_RNS_15PutPropertySlotE+212: lw v0,64(s8) 0x6b1800 _ZN3JSC10JSValuePtr3putEPNS_9ExecStateERKNS_10IdentifierES0_RNS_15PutPropertySlotE+216: sw v0,16(sp) 0x6b1804 _ZN3JSC10JSValuePtr3putEPNS_9ExecStateERKNS_10IdentifierES0_RNS_15PutPropertySlotE+220: lw t9,68(a0) 0x6b1808 _ZN3JSC10JSValuePtr3putEPNS_9ExecStateERKNS_10IdentifierES0_RNS_15PutPropertySlotE+224: movea0,v1 0x6b180c _ZN3JSC10JSValuePtr3putEPNS_9ExecStateERKNS_10IdentifierES0_RNS_15PutPropertySlotE+228: lw a1,52(s8) 0x6b1810 _ZN3JSC10JSValuePtr3putEPNS_9ExecStateERKNS_10IdentifierES0_RNS_15PutPropertySlotE+232: lw a2,56(s8) the entry got is $t9=0x2bc that is wrong. rgds joe --- On Sat, 5/9/09, x yz last...@yahoo.com wrote: From: x yz last...@yahoo.com Subject: Re: [webkit-dev] random seg fault on MIPS platform To: webkit-dev@lists.webkit.org Date: Saturday, May 9, 2009, 1:24 AM Hi, 50% of time when I use gdb then arith functions works. it may fail at 1st, or 3rd try, and 100% fail w/o gdb. I just use jsc to do sth like 5%2, 5*3, etc. It is with in call of ctiTrampoline(code, registerFile, callFrame, jexception, pptr, globalData), jit code executed and may be in last line of op_mod() when it tried to convert result, gdb simply shows segment fault, or PC stops at an non-coded area, w/o gdb it says invalid instruction. It may be in JITcell,h in ALWAYS_INLINE double JSValuePtr::toNumber(ExecState* exec) const { return JSImmediate::isImmediate(asValue()) ? JSImmediate::toDouble(asValue()) : asCell()-toNumber(exec); } due to exec pointer wrong. if I continue to use same arithmatic function the generated jit code won't call op_mod() unless it is the 1st time, I think it is because jit code is already there. If another thread handles the real operation and not sync'd then it may be the case. Note I use BCM chip with two CPUs - BCM customized SMP and BCM Linux. when it works, before and after ctiTrampoline() the stack is balanced and registers are ok. where is the jit stack and how to check its balance? when it fails, stacks shows we are nearby jit code - the code w/o calling OP_mod() CPP function as it fails at 3rd try. But PC points to a data structure: any comments? thanks a lot!! rgds joe // (gdb) c Continuing. Program received signal SIGILL, Illegal instruction. 0x2aacd000 in ?? () (gdb) where #0 0x2aacd000 in ?? () warning: GDB can't find the start of the function at 0x2aacd000. ... #1 0x2aacd000 in ?? () warning: GDB can't find the start of the function at 0x2aaccfff. Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) backtrace #0 0x2aacd000 in ?? () #1 0x2aacd000 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) p/x $sp $1 = 0x7fa439d8 (gdb) p/x $pc $2 = 0x2aacd000 (gdb) p/x $t9 $3 = 0x2aac9588 (gdb) x/10i $t9 = jit code, no actual call to op_mod() cpp function 0x2aac9588: sw ra,-40(s5) 0x2aac958c: lui s7,0x0 0x2aac9590: ori s7,s7,0xa 0x2aac9594: sw s7,0(s5) 0x2aac9598: lui s7,0x0 0x2aac959c: ori s7,s7,0xa 0x2aac95a0: sw s7,8(s5) 0x2aac95a4: lui v0,0x0 0x2aac95a8: ori v0,v0,0xa 0x2aac95ac: sw v0,32(s5) (gdb) 0x2aac95b0: lui v0,0x 0x2aac95b4: ori v0,v0,0x 0x2aac95b8: sw v0,32(s5) 0x2aac95bc: lw at,-40(s5) 0x2aac95c0: nop 0x2aac95c4: addiu sp,sp,-4 0x2aac95c8: sw at,0(sp) 0x2aac95cc: lw ra,0(sp) 0x2aac95d0: addiu sp,sp,4 0x2aac95d4: jr ra 0x2aac95d8: nop (gdb) p/x $ra //$ra = tobe returned addr after ctiTrampoline(), correct $4 = 0x676d64 (gdb) x/10i $pc //sth not patched well?? 0x2aacd000: 0x4941444a 0x2aacd004: jalx 0x21a5a881 0x2aacd008: j 0x2984c8b4 0x2aacd00c: andi at,s3,0x3134 0x2aacd010: 0x6d202c30 0x2aacd014: 0x7a69735f 0x2aacd018: 0x66373d65 0x2aacd01c:
Re: [webkit-dev] Safari 4: all apps which use Webkit freezing at same time
Hi Ben, The best thing to do in this case is to file a bug report with Apple on https://bugreport.apple.com/. I'll send you a list of steps on how to do this off the list. Dave From: Benjamin Jackson bhjack...@gmail.com To: webkit-dev@lists.webkit.org Sent: Friday, May 29, 2009 6:48:51 AM Subject: [webkit-dev] Safari 4: all apps which use Webkit freezing at same time It's happened a couple of times now: all of the open apps which use Webkit (e.g. Adium, Mail, Safari etc) will hang at the same time and will not allow the user to force quit. A restart is required to get the Mac functional again. Is this a known issue? Any idea what might be up? Thanks, Ben ___ 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] Rendering Video using video overlay rather than on a Cairo surface (Graphics overlay)
WebKit's Gstreamer Plugin ( MediaPlayerPrivateGstremaer ) creates a WebKit video sink plugin (VideoSinkGstreamer) which uses a Cairo surface to render video on. We are porting WebKit on a custom MIPS processor which has a dedicated video scalar on it. I want to render video using a video scalar instead of this Cairo surface. I came to know the video coordinates of the Videobox are inside paint function of MediaPlayerPrivateGstreamer.. If I disable the graphics plane entirely then I can see that video is positioned and scaled as requested by the layout engine but I just want to make the surface on top of videobox to be translucent , so that the underneath video is visible. What is the best way to do it? Thanks for helping, Ajit ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Rendering Video using video overlay rather than on a Cairo surface (Graphics overlay)
On Sat, May 30, 2009 at 9:44 AM, Ajit Singh ajit.si...@2wire.com wrote: a custom MIPS processor which has a dedicated video scalar on it. I guess the BCM7xxx chip must have an attribute window to control the Video and Graphics Plane blending. I want to render video using a video scalar instead of this Cairo surface. I came to know the video coordinates of the Videobox are inside paint function of MediaPlayerPrivateGstreamer.. What is the best way to do it? So what u can do is this: When the setSize/paint function gets called; size and rect indicate the visible video area to be displayed Setup the Attribute window to blend the Graphics over Video. In case you dont have an attribute window and use the Alpha bits in ARGB OSD mode ; then u will have to fill the necessary Alpha bits in your primary OSD plane ! Now the tough job is to blend Graphics/HTML controls that the page will render on top of the Video plane That may require some hacking in the Renderer to see whats below and ensure we tweak the Alpha bits to bring Graphics on top for those player controls alone (with transparency maintained as per CSS rules !) Will be interested in knowing your proceedings .. -- Sriram Neelakandan Author - Embedded Linux System Design And Development (http://tinyurl.com/2doosu) ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev