Closed Bug 41261 Opened 25 years ago Closed 25 years ago

Need a way to recover source text of a tag

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

VERIFIED FIXED
Future

People

(Reporter: security-bugs, Assigned: rickg)

References

Details

I need a way to recover the original, unmodified source text of an HTML tag at the point where the tag is passed off to content creation in nsHTMLContentSink. I need this whenever these conditions apply: 1) The tag is preceeded in the document by a SCRIPT ARCHIVE tag. This information is stored in the cocumnet principal. 2) the tag contains one or more event handlers. I need the unmodified text to calculate a hash to compare to a digital signature. This is to support signed scripts.
Marking nsbeta2 and Feature...according to rickg this can be handled by exception.
Blocks: 37333
Keywords: nsbeta2
Whiteboard: [Feature]
Target Milestone: --- → M17
Setting to [nsbeta2+].
Whiteboard: [Feature] → [Feature][nsbeta2+]
I'll spend a few hours over the weekend examining the possibility of storing a copy of the tag with complete fidelity. Note: I know it's possible, but I'm concerned with the possible performance problems. Anyway, mstoltz and I will talk again on Monday.
We've decided this isn't necessary for 6.0. Signed scripts using jar:http: URLs works fine and the demand for signed scripts is not high enough to warrant big changes in the parser. Clearing nsbeta2+ and retargeting "Future".
Status: NEW → ASSIGNED
Whiteboard: [Feature][nsbeta2+]
Target Milestone: M17 → Future
clearing nsbeta2 keyword
Keywords: nsbeta2
Mitch decided to use another approach, but I've added the api for future use.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Marking verified per last comments.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.