Skip to content

feat(mobile): budget the browser pane's frames and put its inputs on the web seam (OTA phase C, C6.3+C6.4) - #21760

Merged
Jinwoo-H merged 17 commits into
mainfrom
ota-c6-3-4-request-and-inputs
Sep 20, 2026
Merged

Jinwoo-H merged 17 commits into
mainfrom
ota-c6-3-4-request-and-inputs

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Phase C, C6.3 + C6.4: the browser pane's request budget and text inputs on the web (design-ota-c6.md §1 (b), §2; rulings rulings-ota-c6.md 2 and 6). Was stacked on #21754 (C6.2, now merged as 6f0fb3fe39) because both append to web-entry/web-overrides.json, whose census demands an exact match with the .web.* files on disk; retargeted to main, with main merged in twice (the second merge carrying #21769, the test-only fix for the semantic merge of C6.1's exact frame pins with C6.2's b64, which this lane found). Inert: no route reaches the pane, native byte-identical where stated.

commit what
3f562b626e, 3faba56c4d merges of origin/main at 4e9d5b577e (the pin fix) and 6f0fb3fe39 (C6.2's squash; one conflict in the overrides list, both sides kept after checking the twenty shared entries byte-identical)
b310813050, ff28f973bb merges of the C6.2 branch at 8917dd8280 and 0d9d5feaeb (its pullfrog note and round-2 fold)
5949c4fc84 round 1: the envelope bound allowed 16 characters per metadata double where a double prints up to 25 (-0.0000012345678901234567; a four-million-pattern sweep found nothing longer), so the margin on a frame exactly on budget was one byte; the bound is now 516 B with the nine metadata keys imported from the protocol module, and the base64 room is taken in whole groups (floor(available / 4) * 3, pinned against the 3/4 ratio's over-claim at 3k+1 bytes). Budget 901,271 → 901,161 px; the phone stays at scale 1.80 (654,286 B, 99.8% of the cap). The pane census gains a presence precondition (every non-test module under src/browser rendering a TextInput must be in its list; a planted third module reds it). The native seam pin names the key row and the address field, and its source check now matches fontSize: TEXT_INPUT_FONT_SIZE at the property rather than anywhere in the file, which the file-wide form let a surviving import satisfy
cf50a84eef the C4.2 text-input census resolved imports through .ts/.tsx only, never .web.ts, so it read the native address style no browser loads (found here: the pane's .web.ts style split would have been reported as the native file's offence once C7 lists a route mounting the pane). resolveLocal now tries .web.tsx, .web.ts, .tsx, .ts then the index forms, the builder's own order, and the seam comparison collapses a resolved path onto its module identity because the seam is itself a split. Red-first three ways: the pane census flipped to expect no offenders; two scratch-tree cases in the seam suite, one read through its .web sibling and one where the .web half is the one off the seam (the false-pass direction); deleting only the seam collapse reds five cases including both C4 route closures. Both C4 closures still answer 0 offenders / 0 unresolved and still carry the seam
a5090a7a18, d1cf88a101 the address-field test finds the input by its imported TextInput type (first by its placeholder in d1cf88a101, then by the type); findByType('TextInput') did not typecheck and the file had dropped out of the tests-typecheck ratchet (the lane's first gate report read the exit off a pipe ending in tail)
9228c43cf0, 09f9193869 merges of the C6.2 branch (its round-1 folds, then the grant name)
a7bafab6ac C6.4: the key row's input goes straight onto TEXT_INPUT_FONT_SIZE (the native seam is the theme's body size, so byte-identical); the address bar is a .web.ts style split (browser-address-field-styles.web.ts: native keeps 12 px, web 16 px with line height 20, the overlaid file label following so focus does not resize the address); inputMode="url" on the web only (it takes precedence over keyboardType, so undefined everywhere else)
cae2d38e79 C6.3: browser-screencast-request.web.ts applies the mobile-mode area budget, derived and never typed: BRIDGE_MAX_MESSAGE_BYTES less the binary event's envelope bound (first measured at 435 B from the event's shape; 516 B after round 1 made it a true upper bound), the base64 room taken in whole groups, over WORST_CASE_JPEG_BYTES_PER_PIXEL = 0.545 (random noise at quality 72, in its docstring) = 901,161 px (901,271 at the first envelope figure). The rows above are recomputed from the landed code: a frame exactly on budget encodes to exactly the cap, margin 0 by design. The constants and the request assembly move to browser-screencast-request-parameters.ts because a .web.ts cannot import a value from the file it shadows. Web view mode is byte-identical to native, asserted

Measured (phone 390×712, mobile view mode)

request pixels frame at worst case of cap
native, scale 2 1,110,720 807,640 B 123.24%
web, scale 1.80 899,683 654,288 B 99.84%

A tablet (834×1112) floors at scale 1: below it the page would ask for fewer device pixels than CSS pixels, and ruling 1's drop rule (#21758) covers what still does not fit. Web view mode gets no budget: the frame is the desktop's viewport letterboxed into the request's bounds, which the page cannot predict.

Not in this PR

Verified

  • Lane gates on cf50a84eef: mobile tsc, ratchet (732 files), whole-tree oxlint, oxfmt, root oxlint and oxfmt on the changed files, full mobile suite (736 files, 8289 passed, no Errors line), config/scripts with mobile deps required (224 files, 2059 passed), changed-code quality (34 files, 0 findings) and react-doctor against origin/main, merge-tree max-lines clean, machine-path grep clean.
  • Round 1 (on cf50a84eef): no blockers; every number reproduced (halving the cap moves the budget with it; the native request byte-identical across 1,152 layouts); its notes are 5949c4fc84.
  • Round 2 (on 3f562b626e): ship; every number reproduced (a real event.binary with nine 25-character doubles is 510 B against the 516 B bound; 5,215,743 layout cases byte-identical natively; every mutation red as claimed; the five registered route closures hold zero src/browser modules); its two findings were this body's stale rows, corrected above.
  • Lead reproduction: verify-gates.sh on cf50a84eef and 5949c4fc84 against 1bdda61add, on ff28f973bb against 0d9d5feaeb, and on 3f562b626e against main 4e9d5b577e (mobile 736/8289, 736/8294, 736/8296 and 739/8335, config 2059, 2061, 2061 and 2061, all exit 0, machine paths 0; the diff against main is the 17 C6.3+C6.4 files); on 5949c4fc84, a planted third TextInput module under src/browser reds the pane census's presence case; on a7bafab6ac the ratchet was red as the lane later reported (the TextInput string), green from a5090a7a18.

Part of the mobile OTA plan (Phase C). Reference PR #13386, never merged.

…TA phase C, C6.2)

The pane's frame path is written against React Native's native-prop writer, which does
not exist on React Native Web: a ref there is the DOM node, so both writes throw and the
pane never shows a frame. Three `.web.ts` siblings, each for a measured gap.

- The image and layer writes move out of `mobile-browser-frame-state.ts` into
  `browser-frame-layer-paint.ts`, whose sibling paints the frame as a `background-image`
  on the element RN Web sizes and flips the double buffer with one opacity write per
  layer. The pane still never re-renders while it streams.
- A `background-image` write fires no load event, so the offscreen layer would never
  become visible. The sibling arms the flip from an image decode instead, and the flip
  itself is shared with the native `onLoad` path rather than written twice.
- The data URI keeps the base64 the bridge already carried instead of encoding the bytes
  back into the same string. Measured in this tree against the `buffer` shim the page
  bundle resolves: 0.256 ms per frame at 45,815 bytes and 2.61 ms at 463,942, against
  under a microsecond for the carried string.

Per C6 ruling 5 the pane asks for binary frames only when the shell granted the lane, and
renders its existing stream-error state otherwise, so a page never waits on frames a shell
without the encoder cannot send. The grant name is a placeholder until C6.1 reports it.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
…cap (OTA phase C, C6.3)

A screencast frame crosses the bridge as one message under BRIDGE_MAX_MESSAGE_BYTES.
Measured here: the phone's mobile view at the native device scale factor asks for a
390x712 viewport at 2x, which is 1,110,720 device pixels, and at the worst case JPEG has
at quality 72 that is a 807,559-byte message against a 655,360-byte cap — 123% of it.

The `.web.ts` sibling holds the mobile view inside that. The budget is computed rather
than written down: the cap, less an envelope this measures from the frame's own shape at
its widest (435 bytes), is what the base64 may occupy; three quarters of that is the JPEG;
divided by one named worst-case constant of 0.545 bytes per pixel it is an area of 901,271
pixels. The phone lands on a device scale factor of 1.80 and a 654,205-byte message, 99.8%
of the cap. A cap that moved and a budget that did not would be a pane going dark on a
page it could have streamed.

Web view mode is untouched, and byte-identical to the native request: there the frame is a
desktop viewport letterboxed into maxWidth/maxHeight, which the page cannot predict, so C6
ruling 1's drop-the-over-cap-frame rule is its only protection. Native is unchanged.

The constants and the assembly move to a third module because a `.web.ts` cannot import a
value from the file it shadows — the bundler resolves the specifier back to the sibling
itself — and two copies of them would drift.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
… seam (OTA phase C, C6.4)

The pane has two text inputs, the address bar at 12px and the key row's "Type on page…"
at 14px, and neither went through TEXT_INPUT_FONT_SIZE. In a browser an input under 16px
makes iOS zoom the page on focus and never zoom back, and keyboard-occlusion.web.ts reads
a visual viewport scale other than 1 as "no keyboard" — so one focus would leave the
pane's keyboard lift at 0 for the rest of the typing session. C4.2's failure exactly, on a
screen its census does not walk: that census walks the source-control hub and the review
route, and the pane is in neither until C7 lists a route that mounts it.

The key row's input goes straight onto the seam, whose native value is the theme's body
size, so it renders at the 14px it already did. The address bar is a `.web.ts` split
instead, so native keeps the 12px meta size it has always shown; the input and the label
painted over it move together, or the address would resize on every focus.

The address bar also gets inputMode="url" on the web only. keyboardType is a native enum a
browser does not read, so the page's address bar was falling back to a plain keyboard;
inputMode takes precedence over keyboardType, so it stays undefined on both native
platforms.

One consequence recorded rather than fixed, and pinned in
config/scripts/mobile-web-app-browser-pane-text-inputs.test.mjs: the C4.2 census resolves
an import through .ts/.tsx only, never .web.ts, so it reads the native address style that
no browser loads and reports it as an offender. Whoever lists the pane's route either
teaches resolveLocal the extensions the builder already prefers, or moves the address bar
onto the seam natively at 14px.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
C6.1 has decided the name: `screencastBinary`, one camelCase token. Replaces the
placeholder this PR landed with while C6.1 was still choosing.

The placeholder was also unusable, which the test added here would have caught:
`GRANT_NAME_PATTERN` in the manifest contract admits a bare name or a `native.`-prefixed
verb and nothing else, so a route declaring `browser.screencast.binary` would have been
refused by the bundle before any shell saw it, and the pane would have taken its
stream-error branch for a reason no screen could report. The name is now checked against
`MobileWebBundleRouteSchema` itself rather than against a restated regex, with the dotted
spelling as the failing case beside it.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
This branch is stacked on the C6.2 branch, which renamed the binary screencast grant from
its placeholder to `screencastBinary`. Merged forward rather than left behind: after C6.2
squash-merges to main, a child still carrying the placeholder would put it back.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
… (OTA phase C, C6.4)

`findByType('TextInput')` does not typecheck: a host-component string is not an
`ElementType`, so the file fell out of `tsc -p tsconfig.test.json` and the tests-typecheck
ratchet reported it. Found by reading the ratchet's exit code rather than its piped tail,
which is how it was missed the first time. The element is looked up by its placeholder
instead, and the ratchet is green with 732 test files in the program.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
…phase C, C6.2)

Round 1 folds on #21754.

The undecodable arm freed the pending slot without checking whose frame had failed, while
the displayable arm checked. Reproduced: frame 2 goes pending on layer 1, frame 3 repoints
the same layer, frame 2's decode rejects and clears the slot layer 1 is holding for frame
3, then frame 3 decodes and the flip is refused because the slot no longer names its
layer. The newest frame sits decoded at opacity 0 behind an older one, and a page that has
gone still sends no further frame to recover with. Web only; native never calls this.

Both arms now answer for the frame they were armed with.

The displayable arm's own guard had no test: deleting it left `src/browser/` and the full
suite green, because the case that exercised it settled both decodes and asserted an end
state both orders produce. The harness now settles one decode at a time, keyed on the
source it was given, and the ordered case reds without the guard.

Also: the paint sibling's opacity test claimed "no re-render" while asserting two style
strings, so it is named for what it checks and the claim is counted where React is —
across ten streamed frames the three state setters are called once each, on the mount
frame. And the overrides allowlist is rebuilt from main's bytes plus the new entries, so
two pre-existing reasons keep their literal em dash instead of a re-serialized escape.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
Stacked on the C6.2 branch, so its folds and the `screencastBinary` rename have to come
forward or a squash-merge of C6.2 would see a child putting them back.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
…C, C6.4)

`findByType('TextInput')` does not typecheck — a host-component string is not an
`ElementType` — so the file dropped out of `tsc -p tsconfig.test.json` and the
tests-typecheck ratchet reported it. The imported component is what the element is looked
up by now; the react-native mock stands it up as that same string at runtime, so the
lookup is unchanged and the file is back inside the ratchet's program.

Why the earlier run reported 0: the command was
`node scripts/check-tests-typecheck-ratchet.mjs 2>&1 | tail -2; echo $?`, and `$?` after a
pipeline is the exit code of `tail`, which is always 0. The banner line that printed was
the last line of the failure banner, not the success one. Every gate in this branch's
report is now read from the command itself, unpiped.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
…OTA phase C, C6.4)

The census followed an import through `.ts`/`.tsx` only, while the closure it walks comes
from esbuild, which prefers `.web.tsx`/`.web.ts`. So a style module with a platform
sibling was judged on the half no browser loads. That fails in the direction that matters:
a split whose web half sits under the focus-zoom floor reads as clean because its native
half is on the seam, which is the exact shape the seam exists to catch.

`resolveLocal` now tries the extensions in the builder's own order. The seam comparison
collapses a resolved path onto its module identity before matching, because the seam is
itself a split — `text-input-font-size.web.ts` is where the raise lives — and without that
every binding in the tree would stop naming the seam: deleting it reds both C4 route
closures.

The browser pane's own census flips from pinning its address field as an offender to
expecting none. The two C4 route closures still answer 0 offenders and 0 unresolved, run
with the closure tests enabled.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
@pullfrog

pullfrog Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Run failed. View the logs →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

… (OTA phase C, C6.4)

Round 1 folds on #21760.

The envelope estimate serialized each metadata field as a 16-character double, so the
bound was 435 where a real frame event at its widest measures 516. Since the budget spends
whatever the cap leaves, that 81-byte shortfall was the whole margin: a frame on the budget
would have gone over the cap and been dropped. The bound is now the skeleton plus the
widest a double can print, for the nine metadata keys imported from the protocol module
rather than copied, so a tenth field cannot be added without being paid for.

Two corrections to the fold as written, both measured here.

The widest is 25 characters, not 24. Exponential form tops out at 24
(`-1.7976931348623157e+308`), but ToString only leaves fixed notation below 1e-6, and just
above it a double prints as sign, `0.`, five zeros and seventeen digits:
`-0.0000012345678901234567`. A sweep over four million random bit patterns found 25 and
nothing longer; a deterministic sweep over both forms is in the test.

And the base64 expansion has to count padding. Three quarters of the room claims up to two
characters base64 does not have for an image of 3k+1 bytes, which at a margin the budget
now spends exactly is a dropped frame. The two agree at today's envelope size because the
room happens to divide by four, so this is a latent fix rather than a reproduced one, and
the test pins the discrepancy directly instead of implying it.

Budget moves from 901,271 to 901,161 pixels; the phone's mobile view stays at a device
scale factor of 1.80. Pinning the bound against C6.1's real encoder is C6.5's, once both
are on main; the docstring says so, and says what the bound does not cover: the metadata
object is loose, so unknown keys and web view mode's letterboxed frame are ruling 1's to
drop rather than this budget's to predict.

Also: the pane census listed its own closure by hand, so "no unresolved styles" said the
walk read those files, not that they are the pane's set. It now scans `src/browser` for
every non-test module that renders a `TextInput` and asserts the list matches; a third
module planted there reds it. And the seam's native-consumer pin names the key row and the
address bar directly rather than transitively, matched at the `fontSize` property instead
of anywhere in the file — a file-wide search survives the change, because the import line
does.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
…mage (OTA phase C, C6.2)

Round 2 folds on #21754.

Every test for the web paint sibling handed it a `div > div` of its own making, so the
assumption it rests on — that the host's first element child is the one carrying the
frame — was only ever checked against a shape written to match it. React Native Web also
renders an accessibility `<img>` in there, and a release that reorders those children
would keep all of them green while the pane painted nothing.

One test now renders the real component, asks it which child it painted, and checks the
write lands on that one. Pointing the sibling at `lastElementChild` reds it and leaves the
hand-built cases passing, which is the gap. A second case records what the `<img>` does:
the streaming path writes styles and never props, so it keeps the source it mounted with
for the life of the pane, and that is what a screen reader and the image context menu see.

react-native-web ships no type declarations, so the component comes through
`createRequire`, whose return is `any` at its own signature; the one prop it renders with
is declared rather than asserted, and the file stays inside the tests-typecheck ratchet.

The module docstring also claimed more than the code does. The frame path adds no render,
but a render from any of the pane's other state — address focus, a dialog, the view mode,
zoom — repaints both layers from `renderedFrameSource`, which reads `frameUriRef.current`,
so both land on the newest frame whether or not it has decoded. Native clobbers the same
way through `setNativeProps`. Said plainly, along with what restores the buffering.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
Stacked on the C6.2 branch, so its folds come forward or a squash-merge of C6.2 would see
a child putting them back.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
…phase C, C6.2)

pullfrog is right, and the test carried the same wrong claim. The note said the hidden
`<img>` keeps the frame it mounted with for the life of the pane, two paragraphs after
saying a render from the pane's other state passes `renderedFrameSource` as `source` —
and React Native Web derives that image's `src` from the same prop it paints the
background from, so the first such render moves it.

Measured here rather than reasoned about: rendering the real component, writing a frame
imperatively, then re-rendering with a new source moves the `src` and leaves the
background where the imperative write put it. The two halves are now two cases, named for
what each one shows, and the note says the streaming writes never touch it while a render
does — so it holds the frame the pane last rendered with, not the one on screen.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
@Jinwoo-H
Jinwoo-H changed the base branch from ota-c6-2-frame-path to main September 20, 2026 08:30
C6.2 is on main as one squashed commit; this branch carries the same hunks as the commits
it was stacked on, so the merge is a no-op for that content and this only moves the base.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

# Conflicts:
#	mobile/web-entry/web-overrides.json

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This is the first pullfrog review on this PR; the full delta against ota-c6-2-frame-path (17 files) was read end-to-end, and the tests, mobile typecheck, and tests-typecheck ratchet were run locally.

  • Budgeted the mobile view's frame area against the bridge cap. browser-screencast-request.web.ts derives the mobile view's deviceScaleFactor from BRIDGE_MAX_MESSAGE_BYTES less a measured envelope bound, spends base64 in whole 4-character groups, and divides by a worst-case bytes-per-pixel constant; web view mode is left byte-identical to native.
  • Put the pane's text inputs on the platform seam. The key-row input binds TEXT_INPUT_FONT_SIZE directly (native body size, byte-identical), and the address bar becomes a native/web style split that keeps 12px natively and raises input plus overlaid label to 16/20 on web, with inputMode="url" on web only.
  • Extracted the shared request constants and assembly into browser-screencast-request-parameters.ts so the .web.ts sibling can reuse them, and exported METADATA_KEYS so the budget sizes the envelope from the protocol list rather than a copy.
  • Taught the C4.2 census to read the file the page runs. resolveLocal now tries .web.tsx/.web.ts ahead of .tsx/.ts (the builder's own order), and moduleIdentity collapses a resolved path onto its module identity so the split seam still counts as the seam. The false-pass direction is covered by a planted .web-off-seam case.
  • Added a hand-run pane census with a presence precondition that scans src/browser for every TextInput-rendering module, plus the two web-overrides.json entries for the new .web.ts files.

Verified externally this run: the builder resolves .web.tsx/.web.ts first (config/scripts/build-mobile-web-app-bundle.mjs:184); RN 0.83.10's TextInputProps declares inputMode with documented precedence over keyboardType; react-native-web 0.21.2 honors inputMode ahead of keyboardType; and the host applies the page's deviceScaleFactor verbatim (browser-screencast-device-metrics.ts:37), so the budget reaches CDP.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: cbcad252-fcaa-4337-a3fb-05b58ff1ce7c

📥 Commits

Reviewing files that changed from the base of the PR and between b310813 and 3f562b6.

📒 Files selected for processing (1)
  • mobile/web-entry/web-overrides.json

Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The change adds text-input census coverage for the mobile browser pane and platform-aware resolution for .web modules. It centralizes address-field styles and preserves URL keyboard behavior across platforms. It also extracts shared screencast request assembly, adds web bridge-size budgeting, exports protocol metadata, and preserves bridge base64 frames. New tests cover style seams, keyboard props, request bounds, frame budgets, and envelope sizing.

Area Changes
Text inputs Added seam resolution, input-module discovery, browser-pane coverage, and address-field platform styles.
Address field Added shared base styles, web font sizing, and platform-specific keyboard configuration.
Screencasting Shared request assembly and web mobile-view scale budgeting now enforce frame limits.
Protocol Exported metadata keys and added optional base64 frame data.
Tests Added coverage for census behavior, platform styles, keyboard props, request budgeting, and envelope bounds.

Priority: ➖ Normal

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (3 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 44.78% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 67 functions across 35 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Linked Issues check ⚠️ Warning The description references related pull requests and issues, but the required Linked Issue section is absent and the template's Fixes # entry is blank. Add the primary issue in the Linked Issue section using the required Fixes #<issue-number> format.
Description check ⚠️ Warning The description provides extensive technical context and testing details, but it does not follow the repository template. It omits the required ELI5, What Changed, Why, Linked Issue, Visual Proof, Tes… Rework the description using the repository template. Add the required sections and include a linked issue using Fixes #..., visual proof or N/A with a reason, manual testing and platform details, AI disclosure if applicable, review not…
✅ Passed checks (2 passed)
Check name Status Explanation
Out of Scope Changes check ✅ Passed The changes align with the stated C6.3 and C6.4 objectives. The description identifies deferred work and explains the related merge commits, with no unrelated functional scope apparent.
Title check ✅ Passed The title clearly identifies the two primary changes: browser-pane frame budgeting and web-specific text-input handling for OTA Phase C6.3 and C6.4.
Full details: Docstring Coverage

Explanation

Docstring coverage is 44.78% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 67 functions across 35 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The description provides extensive technical context and testing details, but it does not follow the repository template. It omits the required ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, AI Disclosure, Review, Notes, and Checklist sections.

Resolution

Rework the description using the repository template. Add the required sections and include a linked issue using Fixes #..., visual proof or N/A with a reason, manual testing and platform details, AI disclosure if applicable, review notes, the agent skill boundary checkbox, risk notes, and checklist status. Move the existing summary and verification details into the matching sections.

  • Fix all pre-merge checks with AI

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: f5a838fe-c27c-4acd-8a90-0d7a3a842313

📥 Commits

Reviewing files that changed from the base of the PR and between 6f0fb3f and b310813.

📒 Files selected for processing (36)
  • config/scripts/mobile-web-app-browser-pane-text-inputs.test.mjs
  • config/scripts/mobile-web-app-source-control-text-inputs.test.mjs
  • config/scripts/mobile-web-app-text-input-font-size-seam.mjs
  • mobile/src/browser/MobileBrowserAddressField.test.tsx
  • mobile/src/browser/MobileBrowserAddressField.tsx
  • mobile/src/browser/MobileBrowserPane.tsx
  • mobile/src/browser/browser-address-field-base-styles.ts
  • mobile/src/browser/browser-address-field-styles.ts
  • mobile/src/browser/browser-address-field-styles.web.test.ts
  • mobile/src/browser/browser-address-field-styles.web.ts
  • mobile/src/browser/browser-frame-data-uri.ts
  • mobile/src/browser/browser-frame-data-uri.web.test.ts
  • mobile/src/browser/browser-frame-data-uri.web.ts
  • mobile/src/browser/browser-frame-layer-flip.ts
  • mobile/src/browser/browser-frame-layer-paint.ts
  • mobile/src/browser/browser-frame-layer-paint.web.test.ts
  • mobile/src/browser/browser-frame-layer-paint.web.ts
  • mobile/src/browser/browser-screencast-request-parameters.ts
  • mobile/src/browser/browser-screencast-request.ts
  • mobile/src/browser/browser-screencast-request.web.test.ts
  • mobile/src/browser/browser-screencast-request.web.ts
  • mobile/src/browser/mobile-browser-frame-state.ts
  • mobile/src/browser/mobile-browser-frameless-stream.test.tsx
  • mobile/src/browser/mobile-browser-pane-styles.ts
  • mobile/src/browser/use-browser-binary-screencast-grant.ts
  • mobile/src/browser/use-browser-binary-screencast-grant.web.test.tsx
  • mobile/src/browser/use-browser-binary-screencast-grant.web.ts
  • mobile/src/browser/use-mobile-browser-frame-apply.ts
  • mobile/src/browser/use-mobile-browser-frame-apply.web.test.tsx
  • mobile/src/browser/use-mobile-browser-pane-layers.ts
  • mobile/src/browser/use-mobile-browser-stream.ts
  • mobile/src/mobile-web-shell/bridge/bridge-rpc-client-frames.test.ts
  • mobile/src/mobile-web-shell/bridge/bridge-screencast-binary.ts
  • mobile/src/platform/text-input-font-size.test.ts
  • mobile/src/transport/browser-screencast-protocol.ts
  • mobile/web-entry/web-overrides.json

Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.

const surface = host.firstElementChild
const target = surface instanceof HTMLElement ? surface : host
// A data URI is base64 and a scheme, so it carries no quote to escape.
target.style.backgroundImage = `url("${uri}")`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

sed -n '1,130p' mobile/src/browser/browser-frame-layer-paint.web.ts
rg -n "frameUriRef|browserImageRefs|useMobileBrowserPaneLayers|<Image|accessib|importantForAccessibility|alt=" mobile/src/browser/MobileBrowserPane.tsx mobile/src/browser/use-mobile-browser-pane-layers.ts mobile/src/browser/use-mobile-browser-frame-apply.ts mobile/src/browser/browser-frame-layer-paint.web.test.ts
sed -n '125,248p' mobile/src/browser/browser-frame-layer-paint.web.test.ts

Repository: stablyai/orca

Length of output: 12412


🏁 Script executed:

sed -n '300,390p' mobile/src/browser/MobileBrowserPane.tsx
sed -n '1,125p' mobile/src/browser/use-mobile-browser-frame-apply.ts
sed -n '1,90p' mobile/src/browser/use-mobile-browser-pane-layers.ts
rg -n -C 6 "renderedFrameSource|browserImageRefs|accessib|importantForAccessibility|accessibilityLabel|alt=|source=" mobile/src/browser/MobileBrowserPane.tsx mobile/src/browser/*.tsx

Repository: stablyai/orca

Length of output: 34995


🏁 Script executed:

sed -n '145,242p' mobile/src/browser/MobileBrowserPaneView.tsx
rg -n -C 5 "browserImage|hidden|accessib|Image" mobile/src/browser/mobile-browser-pane-styles.ts mobile/package.json package.json pnpm-lock.yaml yarn.lock package-lock.json 2>/dev/null
rg -n "react-native-web" --glob 'package.json' --glob '*lock*' --glob '*.ts' --glob '*.tsx' .

Repository: stablyai/orca

Length of output: 37028


🌐 Web query:

react-native-web Image component hidden img accessibilityLabel alt source background-image implementation exact version

💡 Result:

<search_synthesis>
In react-native-web, the Image component is implemented to ensure both visual rendering and accessibility compliance [1][2]. Because the component historically relied on CSS background-image for layout (to support features like object-fit/cover), it renders a hidden <img> element alongside the visible container to provide accessibility and browser-native functionality (such as the ability to save the image or trigger context menus) [3][4][2]. Implementation Details: - Visible Rendering: The image is typically displayed using a container element (often a div) with a background-image property [3][2]. - Hidden Accessibility Element: A hidden <img> tag is rendered within the component [5][3][2]. This element is styled to be invisible (e.g., opacity: 0, position: absolute, or similar CSS to remove it from the visual flow) while remaining accessible to screen readers and browser tools [2]. - Accessibility Labeling: The accessibilityLabel prop provided to the React Native Image component is mapped to the alt attribute of this hidden <img> element [5][6]. If no accessibilityLabel is provided, the component typically defaults to an empty alt attribute (alt="") to prevent screen readers from announcing the image as an unlabeled graphic [5][3]. Key Considerations: - Accessibility: You should use the accessibilityLabel prop to provide descriptive text for images [6]. This ensures the hidden <img> tag receives the correct alt text [5]. - CSS Overrides: Because the hidden <img> tag is managed internally by react-native-web, attempting to override its styles (such as position or visibility) can break the component&#39;s layout or accessibility behavior [2]. - Evolution: While older versions of react-native-web relied heavily on the background-image approach, the library has explored and implemented modern alternatives (such as using the native <img> tag directly with object-fit) to simplify the implementation and improve performance [4][7]. There is no single "exact version" where this implementation is static, as the library has undergone iterative changes to its internal rendering logic to balance compatibility with modern web standards [4][7]. You should always rely on the official accessibilityLabel prop rather than attempting to manipulate the underlying DOM structure directly [1][8].
</search_synthesis>

<source_evidence>

<title>Image // React Native for Web</title> https://necolas.github.io/react-native-web/docs/image/ Image // React Native for Web # Image An accessible and responsive image component. This component renders images with flexbox layout and `cover` object-fit (rather than `stretch`) by default. ```jsx import { Image } from &`#39`;react-native&`#39`;;<Image {...props} />; ``` ### Props All the props supported by View. The radius of the blur filter added to the image A static image to display while loading the image source. draggable:?boolean = false Set whether the image can be dragged with native browser behavior. (Web-only) onError:?({ nativeEvent: { error } }) => void Called when the image fails to load. onLoad:?({ nativeEvent: LoadEvent ) => void Called when the image successfully loads. onLoadEnd:?() => void Called when image loading ends. onLoadStart:?() => void Called when the image loading starts. Determines how the image source is resized to fit the layout of the image element. The image source. The string can be a path to an external resource or a base64 encoded resource. #### Source Set the styles of the view. Set the styles of the view. Set the styles of the view. ### Statics getSize:?(url: string, complete, failure) => void Download an image and measure the width and height (in pixels) prior to displaying it. This method can fail if the image cannot be found, or fails to download. Complete callback: `(width: number, height: number) => void`. Failure callback: `() => void`. prefetch:?(url: string) => Promise Prefetches a remote image for later use by downloading it. Once an image has been prefetched it is assumed to be in native browser caches and available for immediate rendering. queryCache:?(urls: Array) => Promise Performs cache interrogation. Returns a mapping from URL to cache status: “disk”, “memory”, “disk/memory”. If a requested URL is not in the mapping, it means it’s not in the cache. ## Examples Updated October 16, 2024 <title>How to override React native web pre defined css</title> https://stackoverflow.com/questions/61834378/how-to-override-react-native-web-pre-defined-css # How to override React native web pre defined css Tags: css, reactjs, react-native, react-native-web, expo-web - Score: 12 - Views: 4149 - Answers: 2 - Answered: yes - Asked by: zulqarnain (1626 rep) - Asked: 2020-05-16 - Site: stackoverflow ## Question I&`#39`;m Converting my expo app to react-native-web, I have an issue when I&`#39`;m showing Image. by default react-native-web adding a class to Image with position:absolute. I want to override that class, here is my code. React-native Code <View> <Image style={{width: &`#39`;80%&`#39`;, height: &`#39`;35%&`#39`;,position: &`#39`;relative&`#39`;}} source={require(&`#39`;../../assets/images/stn_logo.png&`#39`;)} alt="Logo" title="Logo" border="0" /> </View> converted code from chrome elements <div class="css-view-1dbjc4n r-flexBasis-1mlwlqe r-overflow-1udh08x r-zIndex-417010" style="height: 35%; position: relative; width: 80%;"> <div class="css-view-1dbjc4n r-backgroundColor-1niwhzg r-backgroundPosition-vvn4in r-backgroundRepeat-u6sd8q r-backgroundSize-4gszlv r-bottom-1p0dtai r-height-1pi2tsx r-left-1d2f490 r-position-u8s1d r-right-zchlnj r-top-ipm5af r-width-13qz1uu r-zIndex-1wyyakw" style="background-image: url(&quot;/static/media/stn_logo.153bbaf1.png&quot;);"></div> <img alt="" draggable="false" src="/static/media/stn_logo.153bbaf1.png" class="css-accessibilityImage-9pa8cd"> </div> Here you can see that My React css added to Parent div but on img tag react-native-web added a class css-accessibilityImage-9pa8cd, which CSS is below from chrome .css-accessibilityImage-9pa8cd { bottom: 0px; height: 100%; left: 0px; opacity: 0; position: absolute; right: 0px; top: 0px; width: 100%; z-index: -1; } I want to override the position to relative. I already set position:relative to React-Native Image element. can anyone help me to change the predefined CSS of React-native-web ## Answers ### Answer by howard (score: 4) I struggled with this one and like you was using non-ejected expo react native and did not have an index.html file. One way to fix this is defining BOTH height and width pixels to your image that is missing. The other way that I just figured out is to create the index.html file that `@zulqarnain` alluded to -- to create it you need to run expo customize:web and select web/index.html, hit the space bar, and then hit enter. -- see https://docs.expo.io/guides/customizing-webpack/#editing-static-files for documentation. From there you can access the file and override the CSS of the form. I added this in the style section of the index.html .css-accessibilityImage-9pa8cd{ inset: 0px; height: 100%; opacity: 0; position: relative; width: 100%; z-index: -1; } ### Answer by Will (score: 3) I&`#39`;d like to add, the <img> tag isn&`#39`;t meant to display the image. It just seems to be there for added accessibility and is invisible by design. The image is actually displayed using the <div> element directly above the <img> element, and uses a background-image property with background-size:cover. It&`#39`;s got a height and width of 100%, so it&`#39`;s getting it&`#39`;s size from the parent <div>. The "true" issue is that the parent has no dimensions, so the child <div> that&`#39`;s supposed to be displaying the image has no dimensions. Here&`#39`;s the same two fixes as the other answer here, but with some added explanation as to why they work: The first fix is to add a height and width to the Image component in React Native. This adds a height and width to the parent <div>, which in turn gives dimensions to the child <div> displaying the image. The other fix, which seems a little problematic to me, is to change position:absolute to position:relative for the hidden <img> tag. This works similar to the first fix, by giving dimensions to the parent <div> which the child <div>…[truncated] <title>Result 3</title> https://cdn.jsdelivr.net/npm/[email protected]/src/Image/index.tsx function resolveAssetUri(source): string | null { let uri: string | null = null if (typeof source === &`#39`;number&`#39`;) { // get the URI from the packager const asset = getAssetByID(source) let scale = asset.scales[0] if (asset.scales.length > 1) { const preferredScale = PixelRatio.get() // Get the scale which is closest to the preferred scale scale = asset.scales.reduce((prev, curr) => Math.abs(curr - preferredScale) < Math.abs(prev - preferredScale) ? curr : prev ) } const scaleSuffix = scale !== 1 ? `@${scale}x` : &`#39`;&`#39`; uri = asset ? `${asset.httpServerLocation}/${asset.name}${scaleSuffix}.${asset.type}` : &`#39`;&`#39`; } else if (typeof source === &`#39`;string&`#39`;) { uri = source } else if (source && typeof source.uri === &`#39`;string&`#39`;) { uri = source.uri } if (uri) { const match = uri.match(svgDataUriPattern) // inline SVG markup may contain characters (e.g., #, ") that need to be escaped if (match) { const [, prefix, svg] = match const encodedSvg = encodeURIComponent(svg) return `${prefix}${encodedSvg}` } } return uri ... const Image = React.forwardRef ((props, ref) => { const { accessibilityLabel, blurRadius, defaultSource, draggable, onError, onLayout, onLoad, onLoadEnd, onLoadStart, pointerEvents, source, style, ...rest } = props if (process.env.NODE_ENV !== &`#39`;production&`#39`;) { if (props.children) { throw new Error( &`#39`;The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.&`#39`; ) } } const [state, updateState] = React.useState(() => { const uri = resolveAssetUri(source) if (uri != null) { const isLoaded = ImageLoader.has(uri) if (isLoaded) { return LOADED } } return IDLE }) const [layout, updateLayout] = React.useState({}) const hasTextAncestor = React.useContext(TextAncestorContext) const hiddenImageRef = React.useRef(null) const filterRef = React.useRef(_filterId++) const requestRef = React.useRef(null) const shouldDisplaySource = state === LOADED || (state === LOADING && defaultSource == null) const [flatStyle, _resizeMode, filter, tintColor] = getFlatStyle( {}, blurRadius, filterRef.current ) const resizeMode = props.resizeMode || _resizeMode || &`#39`;cover&`#39`; const selectedSource = shouldDisplaySource ? source : defaultSource const displayImageUri = resolveAssetUri(selectedSource) const imageSizeStyle = resolveAssetDimensions(selectedSource) const backgroundImage = displayImageUri ? `url("${displayImageUri}")` : null const backgroundSize = getBackgroundSize() // Accessibility image allows users to trigger the browser&`#39`;s image context menu const hiddenImage = displayImageUri ? createElement(&`#39`;img&`#39`;, { alt: accessibilityLabel || &`#39`;&`#39`;, style: styles.accessibilityImage$raw, draggable: draggable || false, ref: hiddenImageRef, src: displayImageUri, }) : null function getBackgroundSize(): string | undefined { if ( hiddenImageRef.current != null && (resizeMode === &`#39`;center&`#39`; || resizeMode === &`#39`;repeat&`#39`;) ) { const { naturalHeight, naturalWidth } = hiddenImageRef.current const { height, width } = layout as any if (naturalHeight && naturalWidth && height && width) { const scaleFactor = Math.min(1, width / naturalWidth, height / naturalHeight) const x = Math.ceil(scaleFactor * naturalWidth) const y = Math.ceil(scaleFactor * naturalHeight) return `${x}px ${y}px` } } } function handleLayout(e) { if (resizeMode === &`#39`;center&`#39`; || resizeMode === &`#39`;repeat&`#39`; || onLayout) { const { layout } = e.nativeEvent onLayout && onLayout(e) updateLayout(layout) } } // Image loading const uri = resolveAssetUri(source) React.useEffect(() => { abortPendingRequest() if (uri != null) { updateState(LOADING) if (onLoadStart) { // `@ts-ignore` onLoadStart() } // `@ts-ignore` requestRef.current = ImageLoader.load( uri, function load(e) { updateState(LOADED) if (onLoad) { onLoad(e) } if (onLoadEnd) { // `@ts-ignore` onLoa…[truncated] <title>Image updates: remove BG-style, add crossOrigin functionality, allow nullable alt text</title> GitHub pull request 2207 in necolas/react-native-web (link omitted to avoid creating a cross-reference) # Image updates: remove BG-style, add crossOrigin functionality, allow nullable alt text - State: open - Author: comp615 - Created: 2022-01-27T20:31:58Z - Updated: 2025-08-20T20:35:55Z - Repository: necolas/react-native-web - Number: `#2207` - +111 -243 in 5 files --- **Problem** As noted in `#1786` there are a few ways that images could serve customers better. In particular, this diff explicitly aims to fix: `#1636` and `#2171`. (Happy to break this up to focus on each individually but was working on an integration test w/ Twitter) **Solution** While a full rewrite may be necessary to solve all those problems, I think a number of these issues stem from the usage of a pseudo-img-element on top of a background-image design. So if we can remove that, it may help bring focus to the remaining issues. In short, we can provide a sort of interim solution. The crossOrigin image functionality represents a class of general problem: we cannot use all the native image functionality because we are constrained by ultimately using background image (e.g. see `#1542`). With privacy sandbox and site isolation coming, CORS authenticated images are necessary for us, this works OK for a normal image, but background-images have no equivalent so it&`#39`;s impossible to accomplish. Getting rid of the background image also simplifies the DOM and likely fixes things like Windows High Contrast and the ML accessibility issues as well. **CORS / Cross Origin** While the RN API is to use body and headers on the source object, I do not believe this model works with the web. Because we are subject to CORS, and have server-only cookies. We necessarily need to use flags instead of explicit headers. To solve this, I decided to add a crossOrigin mode flag matching the img element to the source definition. This change necessitated tweaking ImageLoader for the same reason. This widens the API to take a source object not just a URI on the load method. I believe RN API also misses the mark here. If an image can be loaded with headers...how are you supposed to prefetch and object with headers? I think we should generally assume that all ImageLoader methods should take any valid source type instead of just a string URI. **Object Fit** My interpretation of the existing code is that visually, we could only get the proper resizing behavior by using background-size. This meant that for accessibility and usability (i.e. saving an image), we previously had to put an invisible "Real" img tag over the background-image. Based on that, it seems like using object-fit gives us the best of both worlds and helps simplify the code (we no longer need onLayout callbacks and so on). The tradeoff is that browser support does not match RNW&`#39`;s current stated support. In particular old Edge and IE. We could get around this by using an Object fit Polyfill. So that&`#39`;s a disucssion. BREAKING!: Additionally, because it&`#39`;s not replicable via objectFit...this drops support for the `repeat` resizeMode. BREAKING!: Removed Array as a type for Source because RNW doesn&`#39`;t actually handle this well so feels like it should raise an issue. **Tests** I tried to verify this works in our core image cases on Twitter, but we do not exercise the full functionality of this (i.e. ImageBackground or certain image props like blur or tint). It appeared that the image related examples looked the same before and after, and that the snapshot changes were reasonable. ## Timeline - someone committed - comp615 head_ref_force_pushed - Referenced by issue `#53`: Anonymous iframe. - Referenced by issue `#9183`: [HOLD for payment 2023-04-03] [HOLD for payment 2022-08-11] [$500] Web - Chat - Avatar icon is flickers when the message is sent for the first time - necolas milestoned - Referenced by issue `#1786`: Image: modern API and implementation - Referenced by PR `#2442`: Image: support ImageSource with headers - Review by kidroca: - necolas base_ref_force_pushed <title>Allow Image to not set alt property so browsers can provide enhanced functionality · Issue `#1636` · necolas/react-native-web</title> GitHub issue 1636 in necolas/react-native-web (link omitted to avoid creating a cross-reference) # Issue: necolas/react-native-web `#1636` - Repository: necolas/react-native-web | Cross-platform React UI packages | 22K stars | JavaScript ## Allow Image to not set alt property so browsers can provide enhanced functionality - Author: [`@comp615`](https://github.com/comp615) - Association: CONTRIBUTOR - State: closed (completed) - Milestone: 0.15 - Created: 2020-06-10T15:50:47Z - Updated: 2020-10-28T20:08:57Z - Closed: 2020-10-28T20:08:56Z - Closed by: [`@necolas`](https://github.com/necolas) **Is your feature request related to a problem? Please describe.** Currently, when a site uses an element, they _may_ provide an accessibilityLabel property, commonly referred to as alt text. When RNW interprets the image, it will create two elements: an outer View and an inner-hidden img. When set, the accessibility label is applied to the View and as `alt` to the img. When not set, nothing is applied to the View, but the img gets an empty alt set (alt=&`#39`;&`#39`;). Empty alt implies that the image is decorative only in nature, an example of an appropriate alt=&`#39`;&`#39`; image might be an avatar on Twitter, because the visual information is duplicative with the username shown next to it (usually). Separately, Chrome provides interesting functionality I just learned about to auto-caption images that are unlabeled. https://support.google.com/chrome/answer/9311597?hl=en. This potentially makes sites, especially those with user generated content, much more accessible to users. This functionality works by searching for img tags without alt, and using ML to label them for the user. However, because the hidden img tag _always_ has an alt set (albeit empty), Chrome will not label or detect any such images. I&`#39`;m proposing to reconsider a little bit how accessibility labels are handled in Image, primarily to enable this functionality for users. **Describe a solution you&`#39`;d like** Right now, the View accessibilityLabel duplicates the hidden img label. Instead, we could generate DOM ids, and have View be labelled-by img. This creates one source of truth. (optional) From there, I&`#39`;d propose only setting alt on img, if accessiblityLabel is explicitly set (including &`#39`;&`#39`; or null which would set it as today). If accessibilityLabel = undefined, no alt prop would be set on img. https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/Image/index.js#L259 **Describe alternatives you&`#39`;ve considered** Another option would be to completely separate the img label and allow that to be manually controlled. One potential perk of doing it this way, is that I think the reason for setting &`#39`;&`#39`; as the default alt is to prevent clutter of unlabeled images from screen reader users or devs who don&`#39`;t leverage altText. So this would provide an opt-in path, but I don&`#39`;t think is aligned with RN spec. **Additional context** Currently with the suggested pointer label approach, Chrome will not use the ML generated caption for the outer View. I will separately ask them to consider this based on the outcome of this discussion (https://bugs.chromium.org/p/chromium/issues/detail?id=1093364). Until then, we&`#39`;ll provide a hidden text of "image" so that users navigating with j/k understand there is an image/graphic there. --- ### Timeline **necolas** added this to milestone **0.15** · Oct 27, 2020 at 8:54pm **necolas** mentioned this in issue [`#1786`: Image: modern API and implementation](https://github.com/necolas/react-native-web/issues/1786) · Oct 27, 2020 at 10:27pm **`@necolas`** commented · Oct 28, 2020 at 8:08pm > Closing as this feature is being tracked in `#1786` **necolas** closed this · Oct 28, 2020 at 8:08pm **comp615** mentioned this in PR [`#2207`: Image updates: remove BG-style, add crossOrigin functionality, allow nullable alt text](https://github.com/necolas/react-native-web/pull/2207) · Jan 27, 2022 at 8:31pm

Citations:


🌐 Web query:

react-native-web 0.21.2 Image source hidden img alt accessibilityImage implementation GitHub

💡 Result:

<search_synthesis>
In react-native-web version 0.21.2, the Image component handles accessibility and the underlying HTML img element&#39;s alt attribute primarily through the accessibilityLabel prop [1][2][3]. When you provide an accessibilityLabel to an Image component, react-native-web maps this value to the alt attribute of the rendered hidden img element [1]. This ensures that screen readers and other assistive technologies receive the appropriate text description [2]. Historically, there have been issues regarding the automatic setting of the alt attribute [1][3]. Specifically, in some versions, the library would default to setting an empty alt attribute (alt="") on the hidden img element if no accessibilityLabel was provided, which could interfere with browser-level accessibility features [1]. Recent updates, including those leading up to and within the 0.21.x release cycle, have included fixes to ensure that alt text is correctly applied and that accessibility props are handled consistently [4][5][3]. Key points regarding this implementation: - accessibilityLabel: This is the standard React Native prop used to define the alternative text for the image [2][6]. - Underlying DOM: The Image component renders a container (typically a View/div) and a hidden img element [1]. The accessibilityLabel is used to populate the alt attribute of this img element [1]. - Version 0.21.2: This version includes specific fixes related to alt text on the Image component [4][7], addressing previous regressions where accessibility labels were not correctly propagating to the underlying HTML attributes [3]. If you are experiencing issues with accessibility labels not appearing as expected, ensure you are using the accessibilityLabel prop rather than an alt prop, as the latter is not a standard React Native Image prop and may not be supported or correctly passed through to the DOM [8][3].
</search_synthesis>

<source_evidence>

<title>Allow Image to not set alt property so browsers can provide enhanced functionality · Issue `#1636` · necolas/react-native-web</title> GitHub issue 1636 in necolas/react-native-web (link omitted to avoid creating a cross-reference) # Issue: necolas/react-native-web `#1636` - Repository: necolas/react-native-web | Cross-platform React UI packages | 22K stars | JavaScript ## Allow Image to not set alt property so browsers can provide enhanced functionality - Author: [`@comp615`](https://github.com/comp615) - Association: CONTRIBUTOR - State: closed (completed) - Milestone: 0.15 - Created: 2020-06-10T15:50:47Z - Updated: 2020-10-28T20:08:57Z - Closed: 2020-10-28T20:08:56Z - Closed by: [`@necolas`](https://github.com/necolas) **Is your feature request related to a problem? Please describe.** Currently, when a site uses an element, they _may_ provide an accessibilityLabel property, commonly referred to as alt text. When RNW interprets the image, it will create two elements: an outer View and an inner-hidden img. When set, the accessibility label is applied to the View and as `alt` to the img. When not set, nothing is applied to the View, but the img gets an empty alt set (alt=&`#39`;&`#39`;). Empty alt implies that the image is decorative only in nature, an example of an appropriate alt=&`#39`;&`#39`; image might be an avatar on Twitter, because the visual information is duplicative with the username shown next to it (usually). Separately, Chrome provides interesting functionality I just learned about to auto-caption images that are unlabeled. https://support.google.com/chrome/answer/9311597?hl=en. This potentially makes sites, especially those with user generated content, much more accessible to users. This functionality works by searching for img tags without alt, and using ML to label them for the user. However, because the hidden img tag _always_ has an alt set (albeit empty), Chrome will not label or detect any such images. I&`#39`;m proposing to reconsider a little bit how accessibility labels are handled in Image, primarily to enable this functionality for users. **Describe a solution you&`#39`;d like** Right now, the View accessibilityLabel duplicates the hidden img label. Instead, we could generate DOM ids, and have View be labelled-by img. This creates one source of truth. (optional) From there, I&`#39`;d propose only setting alt on img, if accessiblityLabel is explicitly set (including &`#39`;&`#39`; or null which would set it as today). If accessibilityLabel = undefined, no alt prop would be set on img. https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/Image/index.js#L259 **Describe alternatives you&`#39`;ve considered** Another option would be to completely separate the img label and allow that to be manually controlled. One potential perk of doing it this way, is that I think the reason for setting &`#39`;&`#39`; as the default alt is to prevent clutter of unlabeled images from screen reader users or devs who don&`#39`;t leverage altText. So this would provide an opt-in path, but I don&`#39`;t think is aligned with RN spec. **Additional context** Currently with the suggested pointer label approach, Chrome will not use the ML generated caption for the outer View. I will separately ask them to consider this based on the outcome of this discussion (https://bugs.chromium.org/p/chromium/issues/detail?id=1093364). Until then, we&`#39`;ll provide a hidden text of "image" so that users navigating with j/k understand there is an image/graphic there. --- ### Timeline **necolas** added this to milestone **0.15** · Oct 27, 2020 at 8:54pm **necolas** mentioned this in issue [`#1786`: Image: modern API and implementation](https://github.com/necolas/react-native-web/issues/1786) · Oct 27, 2020 at 10:27pm **`@necolas`** commented · Oct 28, 2020 at 8:08pm > Closing as this feature is being tracked in `#1786` **necolas** closed this · Oct 28, 2020 at 8:08pm **comp615** mentioned this in PR [`#2207`: Image updates: remove BG-style, add crossOrigin functionality, allow nullable alt text](https://github.com/necolas/react-native-web/pull/2207) · Jan 27, 2022 at 8:31pm <title>Accessibility // React Native for Web</title> https://necolas.github.io/react-native-web/docs/accessibility/ Accessibility // React Native for Web # Accessibility Familiar web accessibility APIs in a platform-agnostic form. Accessibility in React Native for Web combines several separate web APIs into a cohesive system. Assistive technologies (e.g., VoiceOver, TalkBack screen readers) derive useful information about the structure, purpose, and interactivity of web apps from their HTML elements, attributes, and ARIA in HTML. ## Accessibility Props API React Native for Web includes APIs for making accessible apps. (Note that for compatibility with existing React Native code, the React Native-specific `accessibility*` props are also supported.) aria-activedescendant:?string Equivalent to aria-activedescendant. aria-atomic:?boolean Equivalent to aria-atomic. aria-autocomplete:?string Equivalent to aria-autocomplete. aria-busy:?boolean Equivalent to aria-busy. aria-checked:?(boolean | "mixed") Equivalent to aria-checked. Equivalent to aria-colcount. aria-colindex:?number Equivalent to aria-colindex. aria-colspan:?number Equivalent to aria-colspan. Equivalent to aria-controls. aria-current:?(boolean | "page" | "step" | "location" | "date" | "time") Equivalent to aria-current. aria-describedby:?string Equivalent to aria-describedby. aria-details:?string Equivalent to aria-details. aria-flowto:?string Equivalent to aria-flowto. aria-haspopup:?string Equivalent to aria-haspopup. Equivalent to aria-invalid. aria-keyshortcuts:?string Equivalent to aria-keyshortcuts. aria-label:?string aria-labelledby:?string Equivalent to aria-labelledby. aria-live:?("assertive" | "off" | "polite") Equivalent to aria-multiline. aria-owns:?string Equivalent to aria-owns. aria-roledescription:?string Equivalent to aria-roledescription. Equivalent to aria-valuetext. ### Links The `Text` and `View` components can be rendered as links. If the `href` prop is set, the element will render ` ` tags without altering the presentation of the element. ```jsx <Text href="/" />// <a href="/" ></a> ``` The `hrefAttrs` prop sets link-related attributes. ```jsx const hrefAttrs = { download: true, rel: "nofollow", target: "blank" };<Text href="/document.pdf" hrefAttrs={hrefAttrs}/>// <a download href="/document.pdf" rel="nofollow" target="_blank"></a> ``` ### Keyboard focus The `tabIndex` prop determines whether a component is user-focusable and appears in the keyboard tab flow. This prop should be used instead of the `accessible` (or `focusable` prop) found in React Native for Android/iOS, which is not implemented by React Native for Web/Windows/macOS. ```jsx <View tabindex={0} />// <div tabindex="0"></div><Text tabindex={-1} href="/" />// <a href="/" tabindex="-1"></a> ``` Did you know? Any element (including elements not in the keyboard tab flow) can be programmatically focused via `UIManager.focus(viewRef.current)`. ### Accessible HTML React Native for Web components express semantics exclusively via the `aria-*` props. ```jsx <View aria-label="..." aria-pressed={false} id="abc" role="menuitem"/>/*<div aria-label="..." aria-pressed="false" id="abc" role="menuitem"/>*/ ``` ### Semantic HTML The value of the `role` prop is used to infer an analogous HTML element where appropriate. This is done to rely on well-supported native mechanisms for encoding semantics and accessibility information. ```jsx <View role="article"> <Text role="paragraph">This is an article</Text></View>/*<article> <p>This is an article</p></article>*/ ``` If the `"heading"` role is combined with an `aria-level`, the equivalent HTML heading element is rendered. Oth…[truncated] <title>Accessibility migration from react native web 18 to 19 is broken</title> GitHub issue 2665 in necolas/react-native-web (link omitted to avoid creating a cross-reference) # Accessibility migration from react native web 18 to 19 is broken - State: closed - Author: ayroblu - Created: 2024-05-11T09:59:09Z - Updated: 2024-05-22T10:50:03Z - Repository: necolas/react-native-web - Number: `#2665` ## Labels - bug --- ### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe the issue I&`#39`;ve been doing the migration from React Native 18 to 19 and noticed a couple of bugs accessibilityLabel for Image doesn&`#39`;t fill the alt text, have to use aria-label role=label for View doesn&`#39`;t work, have to use accessibilityRole ### Expected behavior Backwards compatibility, forwards compatibility ### Steps to reproduce Migrate to rnw19 ### Test case https://codesandbox.io/p/sandbox/proud-cache-dyz8ff?file=%2Fsrc%2FApp.js ### Additional comments _No response_ ## Timeline - ayroblu added label "bug" - Referenced by PR `#2666`: [fix] alt text missing on Image, no handling for role=label **ayroblu** commented on 2024-05-21T13:36:00Z: > `@necolas` ? - necolas mentioned - necolas subscribed - necolas closed - Referenced in commit 2106944 - Referenced in commit e237e12 <title>0.19.10...0.21.2</title> https://github.com/necolas/react-native-web/compare/0.19.10...0.21.2 - 12db5a2 Fix clamp csj usage - 2106944 [fix] alt text on Image; role on label - da47f21 [add] Support showSoftInputOnFocus on TextInput ... Fix memory leak in ... - a78ec28 feat(accessibility): add inert to forwardedProps - a9de220 0.21.2 ... | packages/react-native-web/src/exports/AccessibilityInfo/index.js | modified | 3 | 0 | ... | packages/react-native-web/src/exports/Image/__tests__/__snapshots__/index-test.js.snap | modified | 56 | 56 | | packages/react-native-web/src/exports/Image/index.js | modified | 7 | 3 | ... | packages/react-native-web/src/modules/AccessibilityUtil/propsToAccessibilityComponent.js | modified | 2 | 1 | | packages/react-native-web/src/modules/UnimplementedView/index.js | modified | 3 | 9 | | packages/react-native-web/src/modules/createDOMProps/index.js | modified | 97 | 0 | | packages/react-native-web/src/modules/forwardedProps/index.js | modified | 1 | 0 | <title>0.19.10...0.21.0</title> https://github.com/necolas/react-native-web/compare/0.19.10...0.21.0 2098 ... - 12db5a2 Fix clamp csj usage - 2106944 [fix] alt text on Image; role on label - da47f21 [add] Support showSoftInputOnFocus on TextInput ... | packages/react-native-web/src/exports/AccessibilityInfo/index.js | modified | 3 | 0 | ... | packages/react-native-web/src/exports/Image/__tests__/__snapshots__/index-test.js.snap | modified | 56 | 56 | | packages/react-native-web/src/exports/Image/index.js | modified | 7 | 3 | ... | packages/react-native-web/src/modules/AccessibilityUtil/propsToAccessibilityComponent.js | modified | 2 | 1 | |

Citations:


Keep React Native Web's hidden image synchronized with the painted frame.

The streaming path updates only backgroundImage, so React Native Web's adjacent <img> keeps the last React-rendered URI. Browser-native image actions can therefore use a stale frame during ordinary streaming. Update the hidden image source with the same URI. The pane provides no accessibilityLabel, so do not rely on this element as meaningful screen-reader content.

Comment on lines +117 to +119
const viewportArea = Math.round(layout.width) * Math.round(layout.height)
const budgeted = Math.sqrt(mobileBrowserFrameAreaBudget() / viewportArea)
return Math.max(1, Math.min(MOBILE_VIEW_DEVICE_SCALE_FACTOR, Math.floor(budgeted * 100) / 100))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

set -eu
printf '%s\n' '--- candidate file ---'
cat -n mobile/src/browser/browser-screencast-request.web.ts | sed -n '1,180p'
printf '%s\n' '--- relevant symbols and encoder references ---'
rg -n -S 'mobileBrowserFrameAreaBudget|MOBILE_VIEW_DEVICE_SCALE_FACTOR|viewportArea|screencast|encode|JPEG|jpeg|width.*height|height.*width' mobile/src/browser mobile/src | head -250
printf '%s\n' '--- candidate files ---'
git ls-files | rg '(^|/)(.*screencast.*|.*browser.*|.*jpeg.*|.*encoder.*)' | head -200

Repository: stablyai/orca

Length of output: 49617


🤖 get_repo_knowledge executed:

get_repo_knowledge stablyai/orca /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/learnings

Length of output: 22679


🏁 Script executed:

set -eu
cat -n mobile/src/browser/browser-screencast-request.web.ts | sed -n '1,180p'
rg -n -S 'mobileBrowserFrameAreaBudget|MOBILE_VIEW_DEVICE_SCALE_FACTOR|viewportArea|screencast|encode|JPEG|jpeg' mobile/src | head -250
git ls-files | rg '(^|/)(.*screencast.*|.*browser.*|.*jpeg.*|.*encoder.*)' | head -200

Repository: stablyai/orca

Length of output: 50369


🤖 get_repo_knowledge executed:

get_repo_knowledge stablyai/orca /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/learnings

Length of output: 20685


🏁 Script executed:

pwd
git status --short
wc -l mobile/src/browser/browser-screencast-request.web.ts
sed -n '90,135p' mobile/src/browser/browser-screencast-request.web.ts

Repository: stablyai/orca

Length of output: 2448


🏁 Script executed:

set -eu
printf '%s\n' '--- request parameters ---'
cat -n mobile/src/browser/browser-screencast-request-parameters.ts | sed -n '1,110p'
printf '%s\n' '--- binary bridge ---'
cat -n mobile/src/mobile-web-shell/bridge/bridge-screencast-binary.ts | sed -n '1,180p'
printf '%s\n' '--- frame protocol ---'
cat -n mobile/src/transport/browser-screencast-protocol.ts | sed -n '1,120p'
printf '%s\n' '--- direct producer/encoder candidates ---'
rg -l -S 'Page.captureScreenshot|screencastFrame|Screenshot|screenshot|jpegQuality|quality.*72|browser.screencast' src mobile config --glob '*.ts' --glob '*.tsx' --glob '*.mjs' | sort | head -120

Repository: stablyai/orca

Length of output: 16580


🏁 Script executed:

set -eu
rg -n -S 'Page\.captureScreenshot|screencastFrame|browser\.screencast|captureScreenshot|deviceScaleFactor|scale' src/main mobile/src --glob '*.ts' --glob '*.tsx' | head -180
printf '%s\n' '--- browser frame data URI ---'
cat -n mobile/src/browser/browser-frame-data-uri.web.ts
printf '%s\n' '--- bridge screencast binary ---'
cat -n mobile/src/mobile-web-shell/bridge/bridge-screencast-binary.ts
printf '%s\n' '--- request parameters ---'
cat -n mobile/src/browser/browser-screencast-request-parameters.ts

Repository: stablyai/orca

Length of output: 29598


🏁 Script executed:

set -eu
printf '%s\n' '--- runtime screencast controller ---'
if [ -f src/main/runtime/runtime-browser-screencast-controller.ts ]; then
  cat -n src/main/runtime/runtime-browser-screencast-controller.ts | sed -n '1,260p'
else
  printf '%s\n' 'runtime controller implementation not present at expected path'
fi
printf '%s\n' '--- bridge decoder ---'
cat -n mobile/src/mobile-web-shell/bridge/bridge-screencast-binary.ts | sed -n '1,180p'
printf '%s\n' '--- frame URI web path ---'
cat -n mobile/src/browser/browser-frame-data-uri.web.ts | sed -n '1,100p'

Repository: stablyai/orca

Length of output: 12138


🏁 Script executed:

set -eu
printf '%s\n' '--- producer outlines ---'
ast-grep outline src/main/browser/browser-screencast-stream.ts
ast-grep outline src/main/browser/browser-screencast-image-size.ts
ast-grep outline src/main/browser/browser-screencast-frame-budget.ts
ast-grep outline src/main/browser/browser-screencast-cdp-events.ts
printf '%s\n' '--- producer source ---'
cat -n src/main/browser/browser-screencast-image-size.ts
cat -n src/main/browser/browser-screencast-stream.ts | sed -n '1,300p'
cat -n src/main/browser/browser-screencast-frame-budget.ts | sed -n '1,260p'
cat -n src/main/browser/browser-screencast-cdp-events.ts | sed -n '1,220p'
printf '%s\n' '--- relevant tests ---'
cat -n src/main/browser/browser-screencast-snapshot-scaling.test.ts | sed -n '1,240p'

Repository: stablyai/orca

Length of output: 20841


🏁 Script executed:

set -eu
printf '%s\n' '--- snapshot capture ---'
cat -n src/main/browser/browser-screencast-snapshot-capture.ts | sed -n '1,300p'
printf '%s\n' '--- device metrics ---'
cat -n src/main/browser/browser-screencast-device-metrics.ts | sed -n '1,240p'
printf '%s\n' '--- stream types ---'
cat -n src/main/browser/browser-screencast-stream-types.ts | sed -n '1,240p'
printf '%s\n' '--- viewport fit ---'
cat -n src/main/browser/browser-screencast-viewport-fit.ts | sed -n '1,220p'
printf '%s\n' '--- frame metadata ---'
cat -n src/main/browser/browser-screencast-frame-metadata.ts | sed -n '1,220p'

Repository: stablyai/orca

Length of output: 18367


🏁 Script executed:

set -eu
printf '%s\n' '--- mobile stream request call ---'
rg -n -C 8 'buildMobileBrowserScreencastRequest|pixelRatio|PixelRatio|get\(' mobile/src/browser/use-mobile-browser-stream.ts mobile/src/browser/MobileBrowserPane.tsx mobile/src/browser/MobileBrowserPaneView.tsx mobile/src/browser --glob '*.ts' --glob '*.tsx' | head -240
printf '%s\n' '--- exact stream hook sections ---'
cat -n mobile/src/browser/use-mobile-browser-stream.ts | sed -n '170,270p'
cat -n mobile/src/browser/MobileBrowserPane.tsx | sed -n '200,250p'

Repository: stablyai/orca

Length of output: 27981


Budget against per-axis rounded dimensions. The mobile stream passes PixelRatio.get() as the stream scale and sends a separate fractional deviceScaleFactor. The producer accepts DPR-sized frames whose dimensions are rounded per axis, so the continuous viewportArea * scale² calculation can exceed the bridge budget. For example, 1.01 produces 998 × 903 = 901,194 pixels for a 988 × 894 viewport, above the stated 901,161-pixel budget. Calculate the candidate area from the effective integer output dimensions, including maxWidth and maxHeight, before accepting the scale.

Comment on lines +93 to +96
frameUriRef.current = nextFrameUri
pendingFrameLayerRef.current = nextLayer
updateBrowserImageSource(browserImageRefs.current[nextLayer], nextFrameUri)
armFrameLayerFlip(nextLayer, nextFrameUri)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

🔎 Supported by static analysis

🏁 Script executed:

sed -n '1,150p' mobile/src/browser/use-mobile-browser-frame-apply.ts
sed -n '150,270p' mobile/src/browser/MobileBrowserPane.tsx
sed -n '1,130p' mobile/src/browser/use-mobile-browser-pane-layers.ts
rg -n "frameUriRef|browserFrameUri|browserImage|source={{|source=" mobile/src/browser

Repository: stablyai/orca

Length of output: 14279


🏁 Script executed:

set -e
rg -n -C 8 'frameUriRef|frameLayerRef|Image|source=|useMobileBrowserPaneLayers|useMobileBrowserFrameApply' mobile/src/browser/MobileBrowserPane.tsx
rg -n -C 5 'frameUriRef|source=|updateBrowserImageSource|setBrowserImageRef' mobile/src/browser -g '*.ts' -g '*.tsx'
cat -n mobile/src/browser/browser-frame-layer-flip.ts
cat -n mobile/src/browser/browser-frame-layer-paint.ts

Repository: stablyai/orca

Length of output: 47730


Keep the pending frame URI out of the visible layer’s declarative source.

frameUriRef.current changes before settleBrowserFrameLayer runs. An unrelated render then passes that URI as source to both Image layers. This can replace the visible layer’s settled source before decode completes and bypass decode-gated double buffering. Store the source per layer, or keep the visible source unchanged until settlement.

The two C6.1 screencast pins now expect the base64 C6.2's decoder carries. Nothing on this
branch touched those files; this only moves the base.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
@Jinwoo-H
Jinwoo-H merged commit 96c1dd8 into main Sep 20, 2026
32 checks passed
@Jinwoo-H
Jinwoo-H deleted the ota-c6-3-4-request-and-inputs branch September 20, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant