Hi Colin, This is a really good idea. Apparently, I'm not running the URL through our URLFixerUpper class (I'm not making that name up), which does a bunch of stuff to fix up URLs that someone may have typed in or copied and pasted in (not just the http:// example you gave).
I filed http://code.google.com/p/chromium/issues/detail?id=22038 for this. In the future, feel free to just go ahead and file the bug directly. Erik On Tue, Sep 15, 2009 at 7:04 PM, Colin Bleckner <[email protected]> wrote: > > Right now if I attempt to create a new bookmark without a protocol (like > "www.test.com" instead of "http://www.test.com") I get a cryptic error > message: "Error during bookmarks.create: Can't find bookmark for id." > > Obviously the error message could be better, but ideally I'd like the > API to be a little smarter. I've noticed that if I create a new > bookmark in the bookmark manager with just "test.com" it automatically > prepends "http://" to it. Can chrome.bookmarks.create do the same > thing? Sure, I can attempt to create my own protocol detection > function, but you guys seem to have a pretty good one already. :) > > Colin > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-extensions" 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-extensions?hl=en -~----------~----~----~----~------~----~------~--~---
