Hi All,

I'm testing out the chromium port of WebKit. I'm using Debian linux.

Here's what I've done so far.
    - installed required libraries
    - downloaded the tar source code from the website
    - Tools/Scripts/update-webkit
    - Tools/Scripts/build-webkit --chromium

Everything builds fine and the unit tests pass.

To avoid all the build configuration, I modified
    Source/WebKit/chromium/tests
to just have one main .cpp file so I can simply build it with
    Tools/Scripts/build-webkit --chromium

I'm trying to create a WebFrame and load a web page that has Javascript (I 
tried Google).

int main() {
    webkit_support::SetUpTestEnvironment();


    TestWebFrameClient webFrameClient;
    WebView *webView = WebView::create(0);
    webView->initializeMainFrame(&webFrameClient);
    WebFrame *frame = webView->mainFrame();

    // set up urlRequest
    frame->loadRequest(urlRequest); 

    webkit_support::TearDownTestEnvironment();

}

This seems to work fine (doesn't crash).

As soon as I take out SetUpTestEnvironment(), I get  a segmentation fault at
    WebView::create(0)

I figured that at least I needed to call WebKit::initialize() before anything 
else, so I added
    WebKit::initialize(new webkit_glue::WebKitClientImpl());

Then I got a segmentation fault at 
    webView->initializeMainFrame(&webFrameClient);


What am I missing here? Any pointers are appreciated.

Russell
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to