Build identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.0b10pre) Gecko/20110118 Firefox/4.0b10pre I was not able to reproduce it.
If you weren't able to reproduce the problem, what happened? Were you able to bookmark the very long "data:" URL? Which URL did you attempt to bookmark. I realize that I should have been more specific about which URL to test with. I've tried to include the URL in this comment, but it's longer than this site allows. I've created a web page with this URL as a link on my personal web site: http://www-personal.umich.edu/~lsloan/long_url.html The URL in the link is the one I tried, so this is the one that others should test, too.
#define URI_LENGTH_MAX 65536 Is it really needed to have a uri longer than this size? Looks like the use-cases for it would be pretty much limited.
The purpose is to encode web applications as URLs for use on mobile devices even without a network connection. For example, a web application could be kept on an iPod touch without being written as an iOS application and it would still work when no wi-fi signal is available. My attempt to bookmark such a URL with Firefox was to test the completed application. Firefox is able to handle and display this long URL, but it's not able to bookmark it. That's inconsistent.
I should say, my point of filing this bug report was not to suggest that Firefox should support longer URLs. I expect that a URL this long (about 84011 bytes) is probably non-standard and probably wouldn't be supported. My point is that Firefox didn't display an error message warning that the URL was too long before truncating it. I expect a dialog box to appear that tells me the URL can't be bookmarked and I'd need to click an "OK" button to close the dialog. The warning is what's needed.
Severity: major → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
A configurable max URL length for bookmark would be nice, especially for those using very long bookmarklets (https://en.wikipedia.org/wiki/Bookmarklet).
You need to log in before you can comment on or make changes to this bug.