Bug 164763

Summary: [WebCore] Drop frame protection for script execution
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: cdumez, fred.wang, mcatanzaro
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Yusuke Suzuki
Reported 2016-11-14 20:28:01 PST
In ScriptController and ScriptElement, there are some `Ref<Frame> protector(frame)` protections. It avoids destroying Frame during executing scripts. But if there are no code touching Frame after the execution of the script, we do not need to save Frame.
Attachments
Yusuke Suzuki
Comment 1 2016-11-14 20:32:05 PST
Not in ScriptElement.
Michael Catanzaro
Comment 2 2018-01-29 12:22:10 PST
Be careful if changing this: the ScriptController is actually owned by its Frame, so removing protectors could cause the ScriptController itself to be destroyed.
Note You need to log in before you can comment on or make changes to this bug.