Closed Bug 1831819 Opened 2 years ago Closed 2 years ago

Remove the logic to handle per-global function in gSideEffectFreeNatives

Categories

(DevTools :: Console, task)

task

Tracking

(firefox115 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

https://phabricator.services.mozilla.com/D175089#inline-979655
Given the target global can be different type for each call, the list of available functions could also be different.
we should calculate the list for each global and cache it in the debugger or webConsole, instead of global variable that's shared across multiple globals.

See Also: → 1831834

Actually, this no longer applies because there's no instance methods or instance getters in the current allowlist,
since all DOM getters are allowed and no longer stored into the explicit allowlist.

Now all functions are retrieved from sandbox, and there's no difference depending on the target global.

We can simplify the structure and keep using single map, with bug 1831834.

Summary: Do not store side-effect-free natives into global gSideEffectFreeNatives → Remove the logic to handle per-global function in gSideEffectFreeNatives

Stop supporting instance methods and getters in allowlist.
Now the allowlist is independent of global and can be shared across multiple
globals.

Depends on D178883

Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/e6a25ac049e4 Remove per-global function support in eager evaluation allow list. r=devtools-reviewers,nchevobbe
Flags: needinfo?(arai.unmht)
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/9b45ad38d9a1 Remove per-global function support in eager evaluation allow list. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: