<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26876</bug_id>
          
          <creation_ts>2014-09-22 07:44:25 +0000</creation_ts>
          <short_desc>Title argument for both registerProtoclHandler() and registerContentHandler() should be removed as i [...]</short_desc>
          <delta_ts>2016-02-05 09:01:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#dom-navigator-registerprotocolhandler</bug_file_loc>
          <status_whiteboard>blocked awaiting response from annevk to comment 3 (please remove this when replying)	</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111899</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-09-22 07:44:25 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/webappapis.html
Multipage: https://html.spec.whatwg.org/multipage/#dom-navigator-registerprotocolhandler
Complete: https://html.spec.whatwg.org/#dom-navigator-registerprotocolhandler
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
Title argument for both registerProtoclHandler() and registerContentHandler()
should be removed as it allows for spoofing. See
https://bugzilla.mozilla.org/show_bug.cgi?id=1056860 The user agent can create
enough UI itself using the origin, desired scheme/type and URL.

Posted from: 46.127.136.57 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111929</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-22 16:48:08 +0000</bug_when>
    <thetext>Can you elaborate on how you can make the UI non-ugly without a title? Obviously you shouldn&apos;t use the title alone in the UI, that would enable spoofing. But without the title, how would you distinguish multiple services on the same domain?

Consider:

   Google+ Photos      http://www.google.com/photos/upload
   Drive               http://www.google.com/a/annvk.nl/upload
   Google Maps Photos  http://www.google.com/maps/upload

What would your dialog look like? With a title it could be:

   Select a service:

   (o) Google+ Photos
       www.google.com
       http://www.google.com/ph...

   ( ) Drive
       www.google.com
       http://www.google.com/a/...

   ( ) Google Maps Photos
       www.google.com
       http://www.google.com/ma...

   [[ Open ]]

What would you have it look like?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111933</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-22 16:57:20 +0000</bug_when>
    <thetext>Basically any kind of UI where the developer controls a string is a problem.

I&apos;m not sure how your specific scenario would work out. It seems we use icons today, so that would still work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112036</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-23 18:07:16 +0000</bug_when>
    <thetext>The icons are also under control of the author. How would that be any different? How would you make it accessible?

I don&apos;t understand your concern. If the string tries to lie, it&apos;s pretty obvious:

   Select a service:

   (o) Facebook
       example.com
       https://example.com/logi...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124851</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-02-05 05:05:10 +0000</bug_when>
    <thetext>Closing this since the bigger problem is that these methods are poorly implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124853</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2016-02-05 06:54:38 +0000</bug_when>
    <thetext>Do we have an open issue for that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124857</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-02-05 09:01:12 +0000</bug_when>
    <thetext>We do now: https://github.com/whatwg/html/issues/630</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>