Closed Bug 211096 Opened 23 years ago Closed 19 years ago

[P3P] P3P policy and summary not displayed if P3P referenced using link in page header

Categories

(Core :: Networking: Cookies, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: t.raguin, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 It seems that Mozilla 1.4rc3 does not display P3P policy and summary if the policy reference file is not in the "well-known" location (i.e. w3c) of the Web server. On http://demo.salut-ed.org, we put a link to the P3P policy reference file in the page header using the <link> tag. In "View > Page Info > Privacy", buttons to view the policy, summary or options do not work (nothing appears). It works if the policy reference file is put in the well-known location (e.g. www.p3ptoolbox.org)... Reproducible: Always Steps to Reproduce: 1. 2. 3.
Forgot to say that it works with Netscape 7.02.
Status: UNCONFIRMED → NEW
Ever confirmed: true
er, didn't add a comment... confirmed on current linux trunk.
Bug is now present in Netscape 7.1 since it is based on Mozilla 1.4
investigated a bit. The linked policy file is in included documents, if you don't select that, it'll load the /w3c/p3p.xml file. If you select it, it still doesn't work, not sure what happened there. The sad thing is, there is no error reporting whatsoever in this code, not even debug builds hand out some warnings or js errors :-(. The erroring code is http://lxr.mozilla.org/seamonkey/source/extensions/p3p/src/nsPolicyReference.cpp#173 Btw. the non-existing /w3c/p3p.xml returns a parseerror document and the http channel claims success. Hrm.
It's my code and I'll take a look at it. Axel: I'll open up a new bug to add error reporting etc.
Assignee: heikki → harishd
It looks like the the load event is getting lost. In other words, I'm not getting the HandleEvent callback from XMLHttpRequest. This could be due to recent changes in XMLHttpRequest. Still investigating.
First thing that came into my mind is bug 204545. Adding event listener for every load should fix the problem ( just a guess :-> )
per discussion with mvl and dwitte, moving bugs in our p3p impl to nobody@mozilla.org and adding helpwanted keyword moving to Cookies
Assignee: harishd → nobody
Component: XML → Cookies
QA Contact: ashshbhatt → cookieqa
Summary: P3P policy and summary not displayed if P3P referenced using link in page header → [P3P] P3P policy and summary not displayed if P3P referenced using link in page header
*** Bug 244342 has been marked as a duplicate of this bug. ***
Bug 366611 is fixed and p3p code is removed from the tree.
Resolving WONTFIX, then.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.