-
- // Needed settings for WKContext are located here
- // create Ewk_Context
- Ewk_Context* newEwkContext =
- ewk_context_new_with_injected_bundle_path(bundlePath);
- if (!newEwkContext) {
- LogError("Failed to create Ewk_Context");
- ThrowMsg(DPL::Exception, "Failed to create ewk context");
- }
- // cache model setting
- ewk_context_cache_model_set(newEwkContext,
- EWK_CACHE_MODEL_DOCUMENT_BROWSER);
- m_ewkContext = newEwkContext;
- ADD_PROFILING_POINT("WebProcess fork", "start");
-
- // To fork a Webprocess as soon as possible,
- // the following ewk_api is called explicitly.
- Ewk_Cookie_Manager *ewkCookieManager;
- ewkCookieManager =
- ewk_context_cookie_manager_get(m_ewkContext);
- ewk_cookie_manager_accept_policy_set(ewkCookieManager,
- EWK_COOKIE_ACCEPT_POLICY_ALWAYS);
- ADD_PROFILING_POINT("WebProcess fork", "stop");
-