Bug 18259 - XML+XSLT pages in iframe contains document.location of a parent window
Summary: XML+XSLT pages in iframe contains document.location of a parent window
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: PC Windows XP
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-01 03:27 PDT by Denis Nelubin
Modified: 2008-04-16 10:33 PDT (History)
1 user (show)

See Also:


Attachments
Simple testcase (2.06 KB, application/octet-stream)
2008-04-01 03:28 PDT, Denis Nelubin
no flags Details
Screenshot (47.90 KB, image/png)
2008-04-01 03:29 PDT, Denis Nelubin
no flags Details
proposed fix (5.10 KB, patch)
2008-04-03 12:30 PDT, Alexey Proskuryakov
aroben: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Nelubin 2008-04-01 03:27:20 PDT
When you load to iframe not HTML but XML page with XSLT transformation, you'll get incorrect document.location value. JavaScript in the iframe shows location of the parent window.
Comment 1 Denis Nelubin 2008-04-01 03:28:59 PDT
Created attachment 20272 [details]
Simple testcase

Open index.html from the archive.
Comment 2 Denis Nelubin 2008-04-01 03:29:37 PDT
Created attachment 20273 [details]
Screenshot
Comment 3 Alexey Proskuryakov 2008-04-03 12:30:19 PDT
Created attachment 20318 [details]
proposed fix
Comment 4 Adam Roben (:aroben) 2008-04-16 10:24:33 PDT
Comment on attachment 20318 [details]
proposed fix

r=me
Comment 5 Alexey Proskuryakov 2008-04-16 10:33:02 PDT
Committed revision 31947.