Closed Bug 586891 Opened 14 years ago Closed 14 years ago

X-Frame-Options check fails using nested URI

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- final+
status1.9.2 --- .9-fixed
status1.9.1 --- unaffected

People

(Reporter: bsterne, Assigned: bsterne)

References

()

Details

(Whiteboard: [sg:low])

Attachments

(1 file)

This spun out of bug 561051.  The X-Frame-Options check needs to use NS_GetInnermostURI() to extract the innermost URI from the resource being requested.  Also, in CheckFrameOptions we return early if we can't QI |request| to nsIHttpChannel, which is always the case for the nested URIs such as the one above.  We need to get the innermost URI from that request before we run our check.
blocking1.9.2: --- → .9+
blocking2.0: --- → ?
Whiteboard: [sg:low]
blocking1.9.2: .9+ → needed
Attached patch fixSplinter Review
Make sure nsViewSourceChannel::GetResponseHeader forwards X-Frame-Options value.
Attachment #466470 - Flags: review?(jst)
Comment on attachment 466470 [details] [diff] [review]
fix

r=jst, but given that I don't work on necko code very much we should have someone who does stamp this as well. dwitte, can you have a quick look at this two-liner?
Attachment #466470 - Flags: review?(jst)
Attachment #466470 - Flags: review?(dwitte)
Attachment #466470 - Flags: review+
Comment on attachment 466470 [details] [diff] [review]
fix

r=dwitte
Attachment #466470 - Flags: review?(dwitte) → review+
Attachment #466470 - Flags: approval1.9.2.9?
Comment on attachment 466470 [details] [diff] [review]
fix

a=LegNeato for 1.9.2.9.
Attachment #466470 - Flags: approval1.9.2.9? → approval1.9.2.9+
1.9.2 Merge:
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/6405b19fc58f

I'm going to leave the bug open until I push the trunk patch, which also fixes bug 561051.
Assuming you'll put the trunk patch here then bug 561051 depends on this; if you're putting the patch in the other bug then the other way around. Probably doesn't matter which way, but helpful to have the bugs linked.
Blocks: 561051
blocking1.9.2: needed → ---
No longer blocks: 561051
Depends on: 561051
blocking2.0: ? → final+
Merge for mozilla-central
http://hg.mozilla.org/mozilla-central/rev/c5494ee56c47
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Depends on: 608662
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: