Open Bug 1381156 Opened 9 years ago Updated 3 years ago

Make CHECK_PRINCIPAL_AND_DATA into a function or a template or something

Categories

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

enhancement

Tracking

()

People

(Reporter: mccr8, Unassigned)

References

Details

CHECK_PRINCIPAL_AND_DATA is a pretty gross macro. Maybe there's some kind of fancy C++ way to pass in a method we want to call. The same thing also goes for CHECK_CONTENT_POLICY_WITH_SERVICE and CHECK_CONTENT_POLICY.
Depends on: 1379786
Maybe we can do something special given the deprecation of NPAPI plugins?
Flags: needinfo?(kyle)
AFAICT, we have to check principal/data in way more places than NPAPI (and there we do it as part of nsObjectLoadingContent, which is for more than plugins), so I'm not sure how NPAPI would affect this?
Flags: needinfo?(kyle)
Andrew mentioned something about this being related to plugins ...
Flags: needinfo?(continuation)
Oh, sorry, I guess I was wrong that this was just something for plugins.
Flags: needinfo?(continuation)
Should we make this more than P3?
Flags: needinfo?(continuation)
Priority: -- → P3
(In reply to Andrew Overholt [:overholt] from comment #5) > Should we make this more than P3? No, this is just a technical debt thing.
Flags: needinfo?(continuation)
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.