gnome-open doesn't support data: urls

Bug #35641 reported by Tristan Wibberley
8
Affects Status Importance Assigned to Milestone
libgnome
Expired
Wishlist
libgnome (Ubuntu)
Triaged
Wishlist
Ubuntu Desktop Bugs

Bug Description

gnome doesn't performs neither the associated default action for the filetype of a resource contained in a data: url, nor starts firefox as it does for http: urls.

The following example is displayed as a white square in a black frame when pasted into the location bar of firefox:

data:image/gif;base64,R0lGODlhQABAAKEAAAAAAP///wAAAAAAACH+7kNvcHlyaWdodCAoYykgIDIwMDYgIFRyaXN0YW4gV2liYmVybGV5LgpZb3UgbWF5IHJlZGlzdHJpYnV0ZSB0aGlzIGZpbGUsIHZlcmJhdGltIG9yIG1vZGlmaWVkLCBhcyBsb25nIGFzIHlvdSBoYXZlIHRoZSBuZWNlc3NhcnkgcmVkaXN0cmlidXRpb24gbGljZW5zZSBmb3IgYW55IG1vZGlmaWNhdGlvbnMuIFlvdSBtYXkgc3VibGljZW5zZSB0aGUgY29weXJpZ2h0IGluIHRoaXMgZmlsZSB1bmRlciBhbnkgbGljZW5zZS4AIfkEAQoAAgAsAAAAAEAAQAAAAoCEj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx0lA1/aN5zap9/7N+wl1waGxVjwak0ohs+l7Qomj6VBqBVaz0S2XKvr2sGLy18xFZ9VW9tQNhTflSvrRvvSKteE9Dn+l50cD6CQ4WPiT2CXT6PgIGSk5SVlpeYmZqbnJ2XlZAAA7

but when used on the commandline of gnome-open, it says:

"Error showing url: The default action does not support this protocol."

This prevents neato things like data: urls given to xchat users (once xchat is fixed to recognise data urls) opening in the browser when clicked.

Revision history for this message
Tristan Wibberley (tristan-wibberley) wrote :

Ah, sorry, a little CSS box overflow there...

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. Do you have any pointer to a specification describing "data:" has something owned by a web browser? Is that a standard URI form?

Changed in libgnome:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Tristan Wibberley (tristan-wibberley) wrote : Re: [Bug 35641] gnome-open doesn't support data: urls

Sebastien Bacher wrote:

> Thanks for your bug. Do you have any pointer to a specification
> describing "data:" has something owned by a web browser? Is that a
> standard URI form?

It is listed in STD1 (http://rfc.net/std1.html) as a proposed standard,
and it is defined in RFC2397 (http://rfc.sunsite.dk/rfc/rfc2397.html).

Ideally I think it should be handled by a simple switch program that
pops up and asks what to do with it - which could be configured to
always open in the browser, or always decode the file and reapply
gnome-open, or decode and reapply gnome-open for some mime types while
passing the url on for others.

But starting the web browser as a program that lets you do other stuff
with it is a reasonably sensible thing to do without needing major work
- that can be configured in gconf anyway.

Revision history for this message
Sebastien Bacher (seb128) wrote :

By reading quickly some stuff of http://rfc.sunsite.dk/rfc/rfc2397.html I'm not convinced that a web browser is appropriate for that, creating a new app selecting what to do would be a topic for a wiki specification rather than a bug.

I've forwarded it upstream anyway, maybe they will have a different opinion on it: http://bugzilla.gnome.org/show_bug.cgi?id=336466

Changed in libgnome:
status: Needs Info → Confirmed
Changed in libgnome:
status: Confirmed → Triaged
Changed in libgnome:
importance: Unknown → Wishlist
Changed in libgnome:
status: New → Confirmed
Changed in libgnome:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.