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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>282436</bug_id>
          
          <creation_ts>2024-11-01 07:30:14 -0700</creation_ts>
          <short_desc>[WebDriver][BiDi] Support event subscription priority</short_desc>
          <delta_ts>2024-11-08 06:31:14 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebDriver</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>271956</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>hskupin</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2072098</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2024-11-01 07:30:14 -0700</bug_when>
    <thetext>https://w3c.github.io/webdriver-bidi/#event-subscribe-priority

The WebDriver BiDi spec allows events to have different subscription priorities. They define the order of the remote end steps (i.e. steps running on the browser) when multiple events are subscribed together.

&gt; Optionally, a set of remote end subscribe steps, which define steps to take when a local end subscribes to an event. Where defined these steps have an associated subscribe priority which is an integer controlling the order in which the steps are run when multiple events are enabled at once, with lower integers indicating steps that run earlier.

Here are a few of the events that define the priority explicitly as of Nov 1st 2024:

* `browsingContext.contextCreated`, priority 1 - https://w3c.github.io/webdriver-bidi/#event-browsingContext-contextCreated
* `script.realmCreated`, priority 2 - https://w3c.github.io/webdriver-bidi/#event-script-realmCreated
* `log.entryAdded`, priority 10 - https://w3c.github.io/webdriver-bidi/#event-log-entryAdded</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2072099</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2024-11-01 07:31:13 -0700</bug_when>
    <thetext>Adding dependency on bug271956 as it&apos;ll add the initial event support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2073829</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-11-08 06:31:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/139510013&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>