[docs] decision: emulation overrides are exposed through named convenience methods#17675
Open
AutomatedTester wants to merge 1 commit into
Open
[docs] decision: emulation overrides are exposed through named convenience methods#17675AutomatedTester wants to merge 1 commit into
AutomatedTester wants to merge 1 commit into
Conversation
7964c17 to
454ef1e
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
💥 What does this PR do?
Proposes a design decision record: emulation overrides are exposed through named convenience methods.
BiDi defines eleven
emulation.set*Overridecommands (geolocation, locale, timezone, user agent, network conditions, forced colors, touch, …). The bindings already generate a method per command from CDDL, so all of it is reachable — but only in raw wire shape, which makes a simple "set location to Paris" more ceremony than it should be and leaves the emulation surface undiscoverable. This record proposes thin, consistent, named convenience methods (set_geolocation,set_locale,set_timezone,set_user_agent,set_network_conditions,set_forced_colors,set_touch) over the generated commands, preserving BiDi's dynamic mid-session application and keeping the raw methods as an escape hatch.🔧 Implementation Notes
docs/decisions/process from [docs] add design decision record process and template #17665 — depends on [docs] add design decision record process and template #17665 landing (adds onlydocs/decisions/0005-*.md).🤖 AI assistance
💡 Additional Considerations
One of a set of BiDi ergonomics decision records proposed together. The convenience set is deliberately scoped to high-use overrides; the remaining commands stay raw until there's demand. Cross-binding convergence is tracked in the binding-status table.
🔄 Types of changes