[Webkit-unassigned] [Bug 91351] [EFL][WK2] Add ewk_view_user_agent_set / ewk_view_user_agent_get API.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 16 05:36:36 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=91351
--- Comment #14 from Ryuan Choi <ryuan.choi at samsung.com> 2012-07-16 05:36:35 PST ---
(From update of attachment 152502)
View in context: https://bugs.webkit.org/attachment.cgi?id=152502&action=review
> Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:969
> + if (!priv->userAgent) {
> + WKRetainPtr<WKStringRef> userAgentString(AdoptWK, WKPageCopyUserAgent(toAPI(priv->pageClient->page())));
> + eina_stringshare_replace(&priv->userAgent, toImpl(userAgentString.get())->string().utf8().data());
> + }
> +
> + return priv->userAgent;
Don't you need to return default user agent if priv->userAgent is 0 ?
In addition, I want a way to reset user-agent to default after changed user-agent.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list