Closed
Bug 252027
Opened 20 years ago
Closed 20 years ago
[FIXr]Change content policy context back to nsISupports
Categories
(SeaMonkey :: General, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8alpha3
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
(Keywords: fixed-aviary1.0)
Attachments
(1 file, 1 obsolete file)
28.47 KB,
patch
|
asa
:
approval-aviary+
|
Details | Diff | Splinter Review |
Upon some thought, some places really want to pass a window as a context to content policy; the current DOMNode setup is a little too constraining. So we should change this back to nsISupports and add a bit of documentation. See bug 245836 for some of the discussion.
Assignee | ||
Comment 1•20 years ago
|
||
Assignee | ||
Comment 2•20 years ago
|
||
Comment on attachment 154333 [details] [diff] [review] Patch It's kinda sad that I initially filed bug 191839 because the nsISupports was being mistreated... let's hope that the documentation will prevent such mistreatment in future. :(
Attachment #154333 -
Flags: superreview?(shaver)
Attachment #154333 -
Flags: review?(mvl)
Assignee | ||
Updated•20 years ago
|
Priority: -- → P3
Summary: Change content policy context back to nsISupports → [FIX]Change content policy context back to nsISupports
Target Milestone: --- → mozilla1.8alpha3
Comment on attachment 154333 [details] [diff] [review] Patch #if debug, should you make sure that the passed node can be QId to either nsIDOMNode or nsIDOMWindow? That might help curtail further abuse. With or without that, as you deem appropriate, sr=shaver. Can you mark this for aviary landing when you commit (with an updated patch, if you make that change)? Thanks!
Attachment #154333 -
Flags: superreview?(shaver) → superreview+
Assignee | ||
Comment 4•20 years ago
|
||
Yeah, that's a good idea. Will do.
Comment 5•20 years ago
|
||
Comment on attachment 154333 [details] [diff] [review] Patch >Index: content/base/public/nsIContentPolicy.idl >- * @param aRequestingNode OPTIONAL. the DOM node that initiated the >+ * @param aContext OPTIONAL. the DOM node or DOM Window that Maybe document that it should be either a nsIDOMNode or nsIDOMWindow? >Index: content/base/src/nsContentPolicy.h >- nsIDOMNode *requestingNode, >+ nsISupports *requestingContext, You seem to switch from context to requestingContext here (and in the rest of the patch). Any reason for that? r=mvl
Attachment #154333 -
Flags: review?(mvl) → review+
Assignee | ||
Comment 6•20 years ago
|
||
> You seem to switch from context to requestingContext here (and in the rest of
> the patch). Any reason for that?
Yes. I didn't want to reindent all the comments in the IDL, so couldn't use
"aRequestingContext" there... ;)
I'll document that stuff should QI to nsIDOMNode or nsIDOMWindow.
Assignee | ||
Updated•20 years ago
|
Summary: [FIX]Change content policy context back to nsISupports → [FIXr]Change content policy context back to nsISupports
Assignee | ||
Comment 7•20 years ago
|
||
Attachment #154333 -
Attachment is obsolete: true
Assignee | ||
Comment 8•20 years ago
|
||
Comment on attachment 154426 [details] [diff] [review] Patch updated to comments Per shaver's request, asking for aviary approval. Note that I can't check this in on aviary myself, so someone would need to do that...
Attachment #154426 -
Flags: approval-aviary?
Assignee | ||
Comment 9•20 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 10•20 years ago
|
||
Comment on attachment 154426 [details] [diff] [review] Patch updated to comments OK. a=asa. Shaver says it's cool.
Attachment #154426 -
Flags: approval-aviary? → approval-aviary+
Updated•20 years ago
|
Product: Browser → Seamonkey
Comment 12•20 years ago
|
||
Can I ask for Mozilla 1.7.6 approval in this bug report, just like comment #8 for the aviary branch ;)
Assignee | ||
Comment 13•20 years ago
|
||
You can ask, but..... It looks like bug 191839 was checked in on aviary (see bug 245280) but not on 1.7. This bug depends on that one, if you want it to land on branch. Ccing the people who did that backport to see whether that applies to 1.7, and ccing drivers to see whether they want this. So much for api compat between Aviary and 1.7.5.... :(
Comment 14•20 years ago
|
||
(In reply to comment #13) > You can ask, but..... <snip/> > Ccing the people who did that backport to see whether that applies to 1.7, and > ccing drivers to see whether they want this. Thanks for the tip Boris, and I hope I won't forget this a next time.
Comment 15•20 years ago
|
||
We miss stuff. It happens. This is why aviary shouldn't have branched so early and more people should have cared about 1.7 while aviary was being done.
You need to log in
before you can comment on or make changes to this bug.
Description
•