You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose modules instead of forwarding to BrowsingContext module
Allow users to access BrowsingContext module directly
⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review
API Change The BrowsingContext property is now public. Ensure this change doesn't unintentionally expose internal functionality or break existing code that relies on its previous internal status.
-internal Modules.Session.SessionModule SessionModule => _sessionModule.Value;
public Modules.BrowsingContext.BrowsingContextModule BrowsingContext => _browsingContextModule.Value;
public Modules.Browser.BrowserModule Browser => _browserModule.Value;
public Modules.Network.NetworkModule Network => _networkModule.Value;
-internal Modules.Input.InputModule InputModule => _inputModule.Value;
public Modules.Script.ScriptModule Script => _scriptModule.Value;
+internal Modules.Session.SessionModule SessionModule => _sessionModule.Value;+internal Modules.Input.InputModule InputModule => _inputModule.Value;+
Apply this suggestion
Suggestion importance[1-10]: 5
Why: This suggestion improves code organization and readability by grouping properties by access modifier. While it does not address a critical issue, it enhances maintainability and clarity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Description
This addresses the 2nd point from #14530, I missed it eventually.
Motivation and Context
Open door to API from
BrowsingContextmodule, users will be able to:Currently this API is hidden by mistake.
Types of changes
Checklist
PR Type
enhancement
Description
BrowsingContextmodule in theBiDiclass by changing its access modifier frominternaltopublic.BrowsingContextmodule, aligning with the intended API design.BiDiinstance.Changes walkthrough 📝
BiDi.cs
Expose BrowsingContext Module in BiDi Classdotnet/src/webdriver/BiDi/BiDi.cs
BrowsingContextfrominternaltopublic.BrowsingContextmodule to be publicly accessible.