Bitcoin Forum
June 18, 2019, 08:26:58 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: The bitcoin URL scheme doesn't include "web+" prefix  (Read 1194 times)
ripper234
Legendary
*
Offline Offline

Activity: 1288
Merit: 1000


Ron Gross


View Profile WWW
December 02, 2012, 08:50:41 PM
 #1

This is a clickable Bitcoin URI: 1BitcoinEaterAddressDontSendf59kuE

According to MDN, custom URI prefixes must start with "web+". If Blockchain.info/My Wallet wanted to register as a handler for all bitcoin: links via navigator.registerProtocolHandler, they wouldn't be able to.

To fix this, the standard Bitcoin URI prefix should be "web+bitcoin:" instead of "bitcoin:"

Thoughts? Was this discussed when BPI 20 was accepetd?

(The above is based on about 5 minutes of reading, I've never implemented protocol handlers myself ... but at least Chrome seems to need the "web+" prefix)

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
1560889618
Hero Member
*
Offline Offline

Posts: 1560889618

View Profile Personal Message (Offline)

Ignore
1560889618
Reply with quote  #2

1560889618
Report to moderator
1560889618
Hero Member
*
Offline Offline

Posts: 1560889618

View Profile Personal Message (Offline)

Ignore
1560889618
Reply with quote  #2

1560889618
Report to moderator
1560889618
Hero Member
*
Offline Offline

Posts: 1560889618

View Profile Personal Message (Offline)

Ignore
1560889618
Reply with quote  #2

1560889618
Report to moderator

Mine RVN and with 0% mining fees and get paid in BTC, ETH, XMR or RVN.

www.cudominer.com Get Cudo Miner
Auto coin switching, third-party miners, overclocking and remote management (Win/Linux)
Run from a USB stick or install from an ISO image (Linux)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1560889618
Hero Member
*
Offline Offline

Posts: 1560889618

View Profile Personal Message (Offline)

Ignore
1560889618
Reply with quote  #2

1560889618
Report to moderator
Peter Todd
Legendary
*
expert
Offline Offline

Activity: 1106
Merit: 1013


View Profile
December 03, 2012, 12:31:05 AM
 #2

The web+ prefix is meant to designate that a website has registered that protocol handler; Bitcoin isn't a website. The origin of this limitation is probably security concerns, for instance registering protocol handlers for protocols that have no reason at all to go to a website. Note how chrome has a few exceptions like mailto: for where it is agreed that websites should be able to register protocol handlers. Chrome can eventually add bitcoin: to this list if the chrome developers think it is a good idea. In addition it looks like Firefox does not have this limitation.

ripper234
Legendary
*
Offline Offline

Activity: 1288
Merit: 1000


Ron Gross


View Profile WWW
December 03, 2012, 01:21:03 AM
 #3

The web+ prefix is meant to designate that a website has registered that protocol handler; Bitcoin isn't a website. The origin of this limitation is probably security concerns, for instance registering protocol handlers for protocols that have no reason at all to go to a website. Note how chrome has a few exceptions like mailto: for where it is agreed that websites should be able to register protocol handlers. Chrome can eventually add bitcoin: to this list if the chrome developers think it is a good idea. In addition it looks like Firefox does not have this limitation.

Hmm, I read the Mozilla page and saw "web+" mentioned there as a security constraint, so I thought the protocol aims for this to be a global restriction. In fact, it's just listed as an implementation detail in Chrome, so it's too specific to consider.

/thread

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!