Open Bug 1773499 Opened 4 years ago Updated 3 years ago

Re-use the result from JavaScript validator

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

People

(Reporter: farre, Unassigned)

References

Details

(Whiteboard: [orb:future])

In Bug 1532644 we plan to implement a JS Oracle to be able to block no-cors cross-origin responses that poses as JavaScript but isn't.

In the case where the validator finds that the resource is JavaScript, it would be nice to re-use that result and not need to double parse.

Whiteboard: [orb:future]

Isn't the plan for bug 1532644 to only validate the first 1024 bytes? Reusing a partial parse seems finicky and not necessarily worthwhile.

Depends on: 1804086
You need to log in before you can comment on or make changes to this bug.