<?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>25418</bug_id>
          
          <creation_ts>2014-04-22 22:48:53 +0000</creation_ts>
          <short_desc>[WebDriver Spec]: Should we be pushing the use of vendor prefixes for extensions?</short_desc>
          <delta_ts>2016-09-02 21:11:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://dvcs.w3.org/hg/webdriver/raw-file/default/webdriver-spec.html#extending-the-protocol</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Marc Fisher">fisherii</reporter>
          <assigned_to name="Browser Testing and Tools WG">public-browser-tools-testing</assigned_to>
          <cc>ato</cc>
    
    <cc>dburns</cc>
    
    <cc>mike</cc>
    
    <cc>paul.irish</cc>
    
    <cc>simon.m.stewart</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104225</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Fisher">fisherii</who>
    <bug_when>2014-04-22 22:48:53 +0000</bug_when>
    <thetext>With both Chrome (http://www.chromium.org/blink/developer-faq#TOC-Will-we-see-a--chrome--vendor-prefix-now-) and Firefox (http://lists.w3.org/Archives/Public/public-webapps/2012OctDec/0731.html) moving away from vendor prefixes, should we being encouraging the use of these prefixes in the wire protocol?

Also the referenced list of extensions (http://www.w3.org/TR/CSS21/syndata.html#vendor-keywords) seems noticeable sparse.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104255</commentid>
    <comment_count>1</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2014-04-23 10:22:08 +0000</bug_when>
    <thetext>I think so.  The WebDriver use case is somewhat different from the use case of web platform standards in that we need to provide ways through the protocol to do browser specific actions.

Examples of this might include switching context from browser context to chrome context (which is the case of Marionette-Firefox), specific UI widget automation (which used to be the case of Opera), and I&apos;m sure there are many other.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104325</commentid>
    <comment_count>2</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-04-24 10:05:01 +0000</bug_when>
    <thetext>I have to agree with Andreas that if there are things specific to a UA then we should prefix them.

However if it is to handle something that is in a specification then we should not prefix it (e.g. how to handle web components should not be prefixed).

I am happy to add a note saying the above if people are happy with that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104327</commentid>
    <comment_count>3</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2014-04-24 10:40:26 +0000</bug_when>
    <thetext>I&apos;m not sure a note is needed, but the important point here is that one shouldn&apos;t prefix things that can feasibly be done cross-browser.

If a browser vendor decides to add an API in the future for handling, say, interception of HTML5 video, that would be a prime candidate for specification (ideally upfront) and shouldn&apos;t be prefixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104370</commentid>
    <comment_count>4</comment_count>
    <who name="Marc Fisher">fisherii</who>
    <bug_when>2014-04-24 19:54:42 +0000</bug_when>
    <thetext>I agree that we need a mechanism to scope driver/browser specific extensions. My concern is that the suggested browser prefixes aren&apos;t a good mechanism for this for the following reasons:

1. Usage of the suggested browser prefixes seems to be declining in general.
2. The extensions are more a property of the driver than of the browser. e.g. I could imagine a Selenium-specific extension that works regardless of which Selenium supported browser is used.
3. Any given browser could have more than one driver implementation. e.g. MS&apos;s upcoming implementation of an IE driver vs. the current Selenium IE driver; Marionette vs. Selenium Firefox Driver
4. The list of prefixes don&apos;t match current browsers or drivers very well. e.g. -webkit- is used for all WebKit-based browsers plus Chrome which forked from WebKit but is diverging significantly. Does it really make sense to use this one as the mechanism for scoping, likely incompatible, different extensions for Safari (iOS, Desktop), Chrome (Android, Desktop, iOS), Blackberry, Opera (Maybe? Where does it even fit in now that it is using Chromium?), Android Browser, who knows what else.

I think a better proposal would be something like:

/session/:sessionid:/ext/:driver-identifier:/:endpoint:

With a non-normative statement that driver vendors try to ensure that the identifiers be unique.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127286</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Stewart">simon.m.stewart</who>
    <bug_when>2016-09-02 21:11:06 +0000</bug_when>
    <thetext>Reading http://www.w3.org/TR/webdriver/#protocol-extensions suggests that Marc&apos;s suggestion has been followed already. Marking this as resolved, but we can reopen.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>