Issue 2238: Add search engine dialog doesn't allow "{" (open curly brace);
can interfere with javascript
http://code.google.com/p/chromium/issues/detail?id=2238
New issue report by dgingrich:
Product Version : 0.2.149.29 (build 1798)
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Firefox 3: OK
What steps will reproduce the problem?
1. Right click Omnibox -> Edit search engines... -> Add
2. set Name to 'test'; Keyword: blank;
3. set URL to 'javascript:alert("test");' (Note "OK" button is active)
4. set URL to 'javascript:alert("test");{};' (Note "OK" button is inactive)
What is the expected result?
Should be able to create new search engine that is a "javascript:" URL
containing a "{"
What happens instead?
Cannot save new search engine (can't click "OK")
Please provide any additional information below. Attach a screenshot if
possible.
This happens with any "{" character in the Add Search Engine dialog,
e.g. "http://google.com/{"
also fails.
This only happens in the Add Search Engine
dialog. 'javascript:alert("test");{};' works in a
bookmark or when typed into the Omnibox. (Suspect it conflicts with the
use of "{google:baseURL}"
strings in Search Engines?)
Seems to work for historically imported bookmarklets. It worked for my
existing reddit
bookmarklets (which had a keyword in Firefox) and failed when I tried to
upgrade. The URL is:
javascript:function b(){var u=encodeURIComponent(location.href);var
i=document.getElementById('redstat')||document.createElement('a');var
s=i.style;s.position='fixed';s.top='0';s.left='0';s.zIndex='10002';i.id='redstat';i.href='http://ww
w.reddit.com/submit?url='+u+'&title='+encodeURIComponent(document.title);var
q=i.firstChild||
document.createElement('img');q.src='http://www.reddit.com/d/like.png?
v='+Math.random()+'&uh=aiaa6louc107573d3fa96181c3966f33b56df3d1647fb32157&u='+u;i.appendChild(q);do
cument.body.appendChild(i)};b()
There are other strange combinations that can't be saved:
ok: http://1
fail: http://1~
ok: http://1~@
ok http://1/~
fail: http://1%
ok: http://1%@
ok: http://1/%
Issue attributes:
Status: Unconfirmed
Owner: [EMAIL PROTECTED]
Labels: Type-Bug Pri-2 OS-All Area-Unknown
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---