<?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>291371</bug_id>
          
          <creation_ts>2025-04-10 08:06:14 -0700</creation_ts>
          <short_desc>[WebDriver][BiDi] session.subscribe should subscribe to all events in a module if just given the module name</short_desc>
          <delta_ts>2025-04-17 08:07:13 -0700</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>
          
          <blocked>281940</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2110199</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-04-10 08:06:14 -0700</bug_when>
    <thetext>https://w3c.github.io/webdriver-bidi/#obtain-a-set-of-event-names

To obtain a set of event names given a name:

1.    Let events be an empty set.

2.    If name contains a U+002E (period):

     1.   If name is the event name for an event, append name to events and return success with data events.

     2.   Return an error with error code invalid argument

3.     Otherwise name is interpreted as representing all the events in a module. If name is not a module name return an error with error code invalid argument.

4.    Append the event name for each event in the module with name name to events.

5.    Return success with data events.

Related tests:

imported/w3c/webdriver/tests/bidi/session/subscribe/events.py::test_subscribe_to_module
imported/w3c/webdriver/tests/bidi/session/subscribe/events.py::test_subscribe_to_one_event_and_then_to_module
imported/w3c/webdriver/tests/bidi/session/subscribe/events.py::test_subscribe_to_module_and_then_to_one_event_again</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2111541</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-04-17 08:07:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/149479444&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>