Closed
Bug 135825
Opened 23 years ago
Closed 23 years ago
No scrollbars in P3P summary window
Categories
(Core :: XSLT, defect, P1)
Core
XSLT
Tracking
()
VERIFIED
FIXED
mozilla1.0
People
(Reporter: hjtoi-bugzilla, Assigned: peterv)
References
Details
(Whiteboard: [ADT1] [ETA 04/26][fixed on trunk])
Attachments
(4 files, 7 obsolete files)
|
3.55 KB,
text/xml
|
Details | |
|
1021 bytes,
text/xml
|
Details | |
|
1.28 KB,
text/xml
|
Details | |
|
6.95 KB,
patch
|
axel
:
review+
hjtoi-bugzilla
:
superreview+
dbaron
:
approval+
|
Details | Diff | Splinter Review |
1. Go to www.msn.com (or any other site supporting P3P).
2. Open Page Info dialog, and go to Privacy tab.
3. Hit Summary button.
Expected results: new window with scrollbars
Actual results: no scrollbars present
If you give focus to the window you can scroll with up/down keys.
You need the patch from bug 124503 to test this.
| Reporter | ||
Updated•23 years ago
|
| Assignee | ||
Comment 1•23 years ago
|
||
| Assignee | ||
Comment 2•23 years ago
|
||
| Assignee | ||
Comment 3•23 years ago
|
||
| Assignee | ||
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
The nsCOMPtr root conflicts with attachement 79249.
I get the following assertion after scrolling a bit:
###!!! ASSERTION: different documents: 'oldAncestor == newAncestor', file
/tmp/mozilla/content/events/src/nsEventStateManager.cpp, line 3474
###!!! Break: at file /tmp/mozilla/content/events/src/nsEventStateManager.cpp,
line 3474
jst says he doesn't know that one from his workaround, could someone ensure
me that this ain't evil?
| Reporter | ||
Comment 6•23 years ago
|
||
I saw that assertion, without peterv's patch, on regular HTML page going
back/forward in history.
I pulled & built today, applied peterv's patch (I needed to remove one line as
patch did not work 100% correct, hopefully the patch was still ok... would be
good to attach a new patch just in case), and I did not see any assertions using
the testcase.
I have not yet tested with P3P.
Comment 7•23 years ago
|
||
Comment on attachment 79253 [details] [diff] [review]
v1
This is different than the hack in nsHTMLDocument in that it doesn't put the
old root element back in the document once we're done resetting it. Whether or
not we do that might not really matter (IIRC it really did matter in the
nsHTMLDocument hack though), and if it doesn't, that's all nice n' good. But if
we don't need to do that then I don't see why we can't just call
SetRootContent(nsnull) on the document, that would end up doing the same thing
that this "hack" does (although in different order), i.e. remove all children
from the root content (once the root element is destroyed), you'll still need
to call ContentRemoved(nsnull, root, 0) on the document though.
Either way, as long as this fixes the problem I'm cool with it, it's safe n'
all, so sr=jst, but you might be able to simplify this hack a bit in this case.
Attachment #79253 -
Flags: superreview+
Comment 8•23 years ago
|
||
Oh, duh, with attachment 79249 [details] [diff] [review] from bug 56087 this is identical to the
nsHTMLDocument hack.
sr=jst
| Assignee | ||
Comment 9•23 years ago
|
||
Do what jst said, it works too and is much simpler.
Attachment #79253 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•23 years ago
|
||
Comment on attachment 79592 [details] [diff] [review]
v2
Carrying forward sr=jst, patch was modified according to his first comments.
Attachment #79592 -
Flags: superreview+
| Assignee | ||
Comment 11•23 years ago
|
||
Address Pike's comment that we should use the loadgroup of the source document
if available.
Attachment #79592 -
Attachment is obsolete: true
| Assignee | ||
Comment 12•23 years ago
|
||
Comment on attachment 79684 [details] [diff] [review]
v2.1
Jst said he was fine with this change
Attachment #79684 -
Flags: superreview+
| Assignee | ||
Comment 13•23 years ago
|
||
Comment on attachment 79684 [details] [diff] [review]
v2.1
Wrong patch
Attachment #79684 -
Attachment is obsolete: true
| Assignee | ||
Comment 14•23 years ago
|
||
| Assignee | ||
Comment 15•23 years ago
|
||
Comment on attachment 79686 [details] [diff] [review]
v2.1
Jst said he was fine with this change
Attachment #79686 -
Flags: superreview+
Comment 16•23 years ago
|
||
Comment on attachment 79686 [details] [diff] [review]
v2.1
one nit, make the
nsresult result
nsresult rv.
r=axel@pike.org
Attachment #79686 -
Flags: review+
| Reporter | ||
Comment 17•23 years ago
|
||
When I apply this patch the summary page is completely blank!
| Assignee | ||
Comment 18•23 years ago
|
||
I'm seeing the same thing. Turns out I had an additional patch to
nsXMLHTPPRequest that makes this work correctly (and also fixes the "missing
style" problem). I'll attach it now.
Status: NEW → ASSIGNED
OS: Windows 2000 → All
Hardware: PC → All
| Assignee | ||
Comment 19•23 years ago
|
||
Comment 20•23 years ago
|
||
Comment on attachment 80369 [details] [diff] [review]
Additional fix v1
sr=jst
Attachment #80369 -
Flags: superreview+
| Assignee | ||
Comment 21•23 years ago
|
||
Comment on attachment 80369 [details] [diff] [review]
Additional fix v1
This patch was written by Heikki (I think, Harish sent it to me). So r=peterv.
Attachment #80369 -
Flags: review+
| Reporter | ||
Comment 22•23 years ago
|
||
Please check the XMLHttpRequest patch with Mitch or someone who knows about
security as well. Specifically, I am not sure if it should be GetOriginalURI()
or GetURI(); what happens if there is a redirect?
After testing I can confirm that I see the scrollbars, so that problem will be
fixed.
However, this introduces a new regression: clicking links in the summary window
that point to anchors in the document is broken. I guess what is happening is
that clicking the link makes us display the original P3P.xml untranformed, and
we scroll in there to the anchor.
Comment 23•23 years ago
|
||
Also, inlined SCRIPTs are not executed.
| Assignee | ||
Comment 24•23 years ago
|
||
Ok, I know what causes the problem for the links. We change the URL of the
document, but not in the docshell, so the docshell thinks we're not scrolling
but loading a document with a different URL. I'll need to figure out how to fix
the style and scrollbars without regressing the scolling. :-(
| Assignee | ||
Comment 25•23 years ago
|
||
Fixes scrollbars and scripts, scrolling to anchors still works.
Attachment #79686 -
Attachment is obsolete: true
Attachment #80369 -
Attachment is obsolete: true
Comment 26•23 years ago
|
||
Comment on attachment 80704 [details] [diff] [review]
v3
>Index: mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp
<...>
>+#include "nsIScriptGlobalObject.h"
not needed.
>- #ifdef PR_LOGGING
>+#ifdef PR_LOGGING
<..>
>- #endif
>+#endif
why?
The resulting iframe contains the right stuff, but it's completely black.
I can't even see a scrollbar :-(. Not sure whos bug that is, though.
| Assignee | ||
Comment 27•23 years ago
|
||
>>- #ifdef PR_LOGGING
>>+#ifdef PR_LOGGING
><..>
>>- #endif
>>+#endif
>
>why?
To be consistent with the rest of the code.
| Assignee | ||
Comment 28•23 years ago
|
||
Need to always remove the processor as observer from the script loader now.
Attachment #80704 -
Attachment is obsolete: true
| Reporter | ||
Comment 29•23 years ago
|
||
Comment on attachment 80830 [details] [diff] [review]
v3.1
r/sr=heikki
Also regarding the move of #foo to the beginning of the line: I seem to recall
that C or C++ spec stated those must start from the beginning of the line.
Attachment #80830 -
Flags: superreview+
Attachment #80830 -
Flags: review+
Comment 30•23 years ago
|
||
Comment on attachment 80830 [details] [diff] [review]
v3.1
r=harishd
| Assignee | ||
Comment 31•23 years ago
|
||
The previous code had a race condition :-(. mDocument could be set to null and
then be used when an external script loaded after the transform had finished.
Also, the loadgroup for the result document could be null when called from the
content sink, in that case we should really use the input document's loadgroup.
New patch coming up and apologies to the reviewers.
Attachment #80830 -
Attachment is obsolete: true
Comment 32•23 years ago
|
||
adt1.0.0+ (on ADT's behalf) approval for checkin on the 1.0 branch, pending
r/sr= on the new patch. Pls check this in today after getting drivers approval,
then add the fixed1.0.0 keyword.
Keywords: adt1.0.0+
| Reporter | ||
Comment 33•23 years ago
|
||
Comment on attachment 80890 [details] [diff] [review]
v3.2
You need to move #include "nsIScriptLoader.h" to the header file to get this to
compile on Windows and some other platforms.
With that, sr=heikki
Attachment #80890 -
Flags: superreview+
Comment 34•23 years ago
|
||
Comment on attachment 80890 [details] [diff] [review]
v3.2
r=axel@pike.org with the moved include
patch works, once you have jst's patch from bug 138012
Attachment #80890 -
Flags: review+
Comment 35•23 years ago
|
||
| Assignee | ||
Comment 36•23 years ago
|
||
Just to clarify, the fix for bug 138012 fixes the testcase attached in this bug.
The P3P policy viewer is not affected by bug 138012. I'm not marking a
dependency since this bug is originally about the P3P policy viewer.
| Assignee | ||
Comment 37•23 years ago
|
||
Sent mail to drivers for checkin to the branch.
Updated•23 years ago
|
Whiteboard: [ADT1] → [ADT1] [ETA 04/26]
| Assignee | ||
Comment 38•23 years ago
|
||
Checked in on the trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: [ADT1] [ETA 04/26] → [ADT1] [ETA 04/26][fixed on trunk]
Comment 39•23 years ago
|
||
Build: 2002-04-26-08-trunk(WIN), 2002-04-26-08-trunk(MAC 9.x/10.x),
2002-04-26-10-trunk(LINUX)
We have scroll bars in Summary window. Marking Verified for TRUNK.
Status: RESOLVED → VERIFIED
QA Contact: keith → jimmylee
Attachment #80890 -
Flags: approval+
Comment on attachment 80890 [details] [diff] [review]
v3.2
a=dbaron for 1.0 branch checkin
| Assignee | ||
Updated•23 years ago
|
Keywords: fixed1.0.0
You need to log in
before you can comment on or make changes to this bug.
Description
•