Open Bug 305524 Opened 19 years ago Updated 2 years ago

Move frame recursion protection into docshell

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

References

Details

(Keywords: helpwanted, student-project)

At the moment, our frame recursion protection is done in the frame loader.  We
should really consider just doing it in the docshell instead; that way it'll be
impossible to circumvent it by setting the location of the window or document in
the frame...

I _am_ a little worried that this might break some sites, but it would also help
prevent situations like bug 303163
Priority: -- → P3
Target Milestone: --- → mozilla1.9alpha
QA Contact: ian → general
Assignee: bzbarsky → nobody
Priority: P3 → --
Target Milestone: mozilla1.9alpha1 → ---
Hi I am interested in working on this bug,but it's my first time to work on with debug,can anybody guide me on how to get started with it?Thanks a lot.
If you haven't built Firefox yet, you should do that: https://developer.mozilla.org/en/Simple_Firefox_build. Once that's done, you should take a look at nsFrameLoader.cpp and find the method I referred to in comment 1.
(In reply to Josh Matthews [:jdm] from comment #3)
well,I found I can't build on windows but It's find in my Ubuntu,Is that still ok?
Yes.
(In reply to Josh Matthews [:jdm] from comment #5)
> Yes.

Sir, I must sorry to tell you I don't know which kind of method in nsFrameLoader.cpp should I check out after I read the link in Comment 1. Could you tell me more detail? Thank you very much :)
You want the CheckForRecursiveLoad method.
(In reply to Boris Zbarsky (:bz) from comment #7)
> You want the CheckForRecursiveLoad method.

I find it already,what should I do next?
(In reply to MikeLing from comment #8)
> (In reply to Boris Zbarsky (:bz) from comment #7)
> > You want the CheckForRecursiveLoad method.
> 
> I find it already,what should I do next?

You could try the channel #introduction on irc.mozilla.org
(In reply to Hussam Al-Tayeb from comment #9)
Thanks :)
Hi, I would like to work on this bug, but I do not know where to get started as this is my first time.
C Jab, see comment 3 in this bug.  If you have that done, see comment 7, and if you're still not sure what to do, email me or comment here, please.
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.