Skip to content

isolated world early bail in about:* frames (-30% JS Heap size) - #3261

Open
shakyShane wants to merge 1 commit into
mainfrom
shane/ios-blank-frame-build
Open

shakyShane wants to merge 1 commit into
mainfrom
shane/ios-blank-frame-build

Conversation

@shakyShane

@shakyShane shakyShane commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Asana Task/Github Issue:

Description

  • added 1 new output, contentScopeIsolated.ios.js which prevents execution in about:* frames
  • *.ios.js chosen as an output name to set the precedent going forward
  • nothing in this change impacts production, it's an opt-in for native to load the new file, which we'll be able to disable remotely
  • cuts JS Heap on blank-frame-heavy sites by 30%

Testing Steps

  • shane to verify no impact to sites where isolated-world functionality is expected

Checklist

Please tick all that apply:

  • I have tested this change locally
  • I have tested this change locally in all supported browsers
  • This change will be visible to users
  • I have added automated tests that cover this change
  • I have ensured the change is gated by config
  • This change was covered by a ship review
  • This change was covered by a tech design
  • Any dependent config has been merged

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

[Beta] Generated file diff

Time updated: Fri, 27 Nov 2026 13:05:05 GMT

New Files
    - apple/contentScopeIsolated.ios.js

❌ File only exists in new changeset

@github-actions github-actions Bot added the semver-minor New feature — triggers minor version bump label Nov 27, 2026
Comment thread injected/scripts/entry-points.js Outdated
Comment on lines +39 to +40
// iOS selects this copy with a feature flag
blankFrameOutput: ['../Sources/ContentScopeScripts/dist/contentScopeIsolated.ios.js'],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

for now... but this also set's us up nicely for per-platform builds too

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Build Branch

Branch pr-releases/shane/ios-blank-frame-build
Commit 7886338155
Updated November 27, 2026 at 12:41:05 PM UTC

Static preview entry points

QR codes (mobile preview)
Entry point QR code
Docs QR for docs preview
Static pages QR for static pages preview
Integration pages QR for integration pages preview

Integration commands

npm (Android / Extension):

npm i github:duckduckgo/content-scope-scripts#pr-releases/shane/ios-blank-frame-build

Swift Package Manager (Apple):

.package(url: "https://github.com/duckduckgo/content-scope-scripts.git", branch: "pr-releases/shane/ios-blank-frame-build")

git submodule (Windows):

git -C submodules/content-scope-scripts fetch origin pr-releases/shane/ios-blank-frame-build
git -C submodules/content-scope-scripts checkout origin/pr-releases/shane/ios-blank-frame-build
Pin to exact commit

npm (Android / Extension):

npm i github:duckduckgo/content-scope-scripts#78863381556dc23f8a943a51c4ba03ef23c72e64

Swift Package Manager (Apple):

.package(url: "https://github.com/duckduckgo/content-scope-scripts.git", revision: "78863381556dc23f8a943a51c4ba03ef23c72e64")

git submodule (Windows):

git -C submodules/content-scope-scripts fetch origin pr-releases/shane/ios-blank-frame-build
git -C submodules/content-scope-scripts checkout 78863381556dc23f8a943a51c4ba03ef23c72e64

@shakyShane
shakyShane force-pushed the shane/ios-blank-frame-build branch from a401587 to 5446c20 Compare November 27, 2026 12:35
@shakyShane
shakyShane force-pushed the shane/ios-blank-frame-build branch from 5446c20 to 0c48e68 Compare November 27, 2026 12:40
@shakyShane shakyShane changed the title isolated world early bail in about:* frames isolated world early bail in about:* frames (-30% JS Heap size) Nov 27, 2026
@shakyShane
shakyShane marked this pull request as ready for review November 27, 2026 13:03

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@shakyShane

Copy link
Copy Markdown
Contributor Author

@claude review

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code review found no issues

No high-confidence issues detected in this change.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-minor New feature — triggers minor version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant