Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 18979 by [email protected]: chrome.bookmarks.create fails if the  
URL doesn't start with a protocol
http://code.google.com/p/chromium/issues/detail?id=18979

Chrome Version: 3.0.197.11

Attempting to create a bookmark with this code fails with the cryptic error
"Error during undefined: Can't find bookmark for id."

chrome.bookmarks.create({"parentId": "1", "title": "test", "url":
"www.google.com"});

Putting "http://"; in the "url" field fixes things.  Sadly we (extension
writers) can't easily add a protocol to the URL unless we want to rewrite a
protocol detection function (to ensure we handle valid URLs like
"about:config" and "chrome://extensions").


--
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

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to