-
Notifications
You must be signed in to change notification settings - Fork 244
SVG Sandboxing #567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
KManolov3
wants to merge
24
commits into
develop
Choose a base branch
from
feature/svgs-iframing
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
SVG Sandboxing #567
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7e67bb4
feat: implement sandboxing to be used for measuring SVGs; add tests
KManolov3 116301e
feat: add canonicalize-svg method
KManolov3 114ce54
feat: implement measure svg script to be used in sandboxed environment
KManolov3 4eeb5d7
feat: use the sandboxing mechanism for svg measurement
KManolov3 f99b4f8
feat: update usage of consumers of loadSvgString
KManolov3 1438d2a
feat: update setSvg to be awaitable; update usages
KManolov3 28e5b2a
fix: lint error
KManolov3 a069b29
feat: add tests for the updated usages of svg measurement
KManolov3 791124b
Merge branch 'develop' of github.com:scratchfoundation/scratch-editor…
adzhindzhi ee7378c
fix: package-lock.json after merging develop
adzhindzhi acdc3ea
feat: add sandboxing when appending to DOM in importSVG
KManolov3 1c8fc15
fix: bring back old sanitized snapshot to verify test failures
adzhindzhi f6fd932
test: force snapshots to be regenerated to check if that resolves tes…
adzhindzhi 1e7abb1
test: try regenerating snapshot on ubuntu:latest
adzhindzhi 5d35241
test: try uploading the snapshots as an artifact
adzhindzhi 5126f7e
fix: use snapshots generated from ci/cd job
adzhindzhi 22f1b9e
fix: make VM await updateSVGSkin now that it's async
adzhindzhi d026072
fix: tear down the measurement sandbox on inactivity
adzhindzhi 75594d1
fix: issues when uploading SVG wrapped raster images and uploading sp…
adzhindzhi a5c32d0
feat: pre-load the sandbox iframe early to avoid extensive waiting ti…
adzhindzhi 08536f0
fix: address review points
adzhindzhi c43cef8
fix: address review points
adzhindzhi 938b73d
fix: trim release commit message to avoid E2BIG failures
adzhindzhi b8d2fbe
Merge branch 'develop' of github.com:scratchfoundation/scratch-editor…
adzhindzhi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've likely already checked, but the requestIdleCallback doesn't have anything to do with the Chrome vs Safari performance differences, correct? Paper.js has already loaded by the time we open the Costumes tab in either case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's not related. It generally get's picked up faster on Safari, because it doesn't wait for idle windows, but picks it up immediately after the current task finishes. However, that all happens while the editor is still loading, and especially on large projects, where we fetch multiple assets - all of this is finished long before we navigate to the Costumes tab.