Open Baidu webpage and type in Chinese characters to start searching, press “Back” button to go to B

Open Baidu webpage and type in Chinese characters to start searching,

press “Back” button to go to Baidu homepage, input box contains garbledcode.

[DESCRIPTION]


Open Baidu webpage and type in Chinese characters to start searching,
press “Back” button to go to Baidu homepage, input box contains garbledcode.


[SOLUTION]


This issue happens when Baidu searches JAVAScript. We add log inside
browser search engine to dump Stack Trace to check who is responsible for
garbled code in input box.
We find the result as below:
Stack Trace:
RELADDR FUNCTION
00dbb881 WebCore::HTMLTextAreaElement::setValue(WTF::String const&)
v------> valueAttrSetter
v------> v8::internal:ropertyCallbackArguments::Call(void (*)(v8:ocal<v8::String>,
v8:ocal<v8::Value>, v8::AccessorInfo const&), v8:ocal<v8::String>, v8:ocal<v8::Value>)
00c4d3c9 v8::internal::JSObject::SetPropertyWithCallback(v8::internal::Object*, v8::internal::Name*,
v8::internal::Object*, v8::internal::JSObject*, v8::internal::StrictModeFlag)
00c670c1 v8::internal::JSObject::SetPropertyForResult(v8::internal:ookupResult*, v8::internal::Name*,
v8::internal::Object*, PropertyAttributes, v8::internal::StrictModeFlag,
v8::internal::JSReceiver::StoreFromKeyed)
00c67405 v8::internal::JSReceiver::SetProperty(v8::internal::Name*, v8::internal::Object*,
PropertyAttributes, v8::internal::StrictModeFlag, v8::internal::JSReceiver::StoreFromKeyed)
v------> v8::internal::JSReceiver::SetPropertyOrFail(v8::internal::Handle<v8::internal::JSReceiver>,
v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>,
PropertyAttributes, v8::internal::StrictModeFlag, v8::internal::JSReceiver::StoreFromKeyed)
Briefly, before webpage starts searching, JavaScript of webpage will
convert the Chinese characters in input box into garbled code, so when
pressing “Back” in next page to go back to Baidu Home, browser will show
the previous garbled code in input box. We tried with Chrome and Nexus 5,
the same problem happens. But Chinese characters will not change to
garbled code in other webpage which can store form data.
So it is confirmed that the issue is due to JavaScript of Baidu.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值