Closed Bug 135837 Opened 23 years ago Closed 23 years ago

Key commands don't work in P3P summary window (except for up/down keys)

Categories

(SeaMonkey :: UI Design, defect, P1)

x86
Windows 2000
defect

Tracking

(Not tracked)

VERIFIED INVALID
mozilla1.0

People

(Reporter: hjtoi-bugzilla, Assigned: samir_bugzilla)

Details

(Keywords: access, Whiteboard: [adt2])

Attachments

(1 file, 2 obsolete files)

1. Go to www.msn.com (or any other site supporting P3P). 2. Open Page Info dialog and select Privacy Tab. 3. Hit Summary button 4. Try Ctrl+W (close window), Ctrl+F (find), ... Expected results: key commands should work, like close window, find on page... Actual results: nothing seems to happen You need to apply the patch from bug 124503 to test this. This might be duplicate of bug 135825.
Blocks: 124503
Keywords: nsbeta1+
Priority: -- → P1
Whiteboard: [ADT1]
Target Milestone: --- → mozilla1.0
I have a hard time seeing how this is ADT1. Renominating for nav triage time to consider.
Keywords: nsbeta1+nsbeta1
Whiteboard: [ADT1]
Well, this is accessibility. If you open the summary window there is no way to close it without a mouse. Btw, the issue with accelerators not working properly in the page info dialog (Alt+P does not go to Privacy, does not work for any other tab either) is worse on Linux where Ctrl+Tab does not work either: you MUST use the mouse on Linux to access those tabs. I don't know what bug that would be although I am sure someone has filed that.
Keywords: access
QA Contact: paw → junruh
nsbeta1+/adt2 per Nav triage team
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt2]
This really should be a bugscape bug.
Attached patch Patch v1.0. (obsolete) — Splinter Review
Mail sent to law and jag for r and sr, respectively.
Status: NEW → ASSIGNED
Keywords: patch, review
Attachment #81546 - Attachment is obsolete: true
Attachment #81554 - Attachment is obsolete: true
Attached patch Patch v3.0.Splinter Review
Fixed typos in comments.
Comment on attachment 81557 [details] [diff] [review] Patch v3.0. >Index: nsPolicyViewer.js >=================================================================== >RCS file: /m/src/ns/extensions/p3p/resources/content/nsPolicyViewer.js,v >- var resultWin = window.openDialog("chrome://p3p/content/p3pSummary.xul", "_blank", "chrome,all,dialog=no", >+ // We launch the dialog with chrome=no so that the launching window loads >+ // our XUL doc (i.e., p3pSummary.xul) inside navigator.xul. We need to >+ // be launched inside navigator.xul in order to get the key bindings >+ // like ctrl-f etc. The chrome dialog that pops up really contains >+ // generated HTML. >+ var resultWin = window.openDialog("chrome://p3p/content/p3pSummary.xul", >+ "_blank", "chrome=no,dialog=no", > gXSLTProcessor, getDocument(), gStyle); Make sure to change gXSLTProcessor, getDocument(), and gStyle to this.mXSLTProcessor, this.getDocument(), and this.mStyle respectively if you're landing on the TRUNK. --- Also, I noticed that, with the patch, the policy summary window gets populated a bit slower than before!
Comment on attachment 81557 [details] [diff] [review] Patch v3.0. r=law
Attachment #81557 - Flags: review+
In comment 10 harishd said: > Also, I noticed that, with the patch, the policy summary window gets > populated a bit slower than before! Have you timed this? I think this might be perception. You may be right though. We do a dynamic sizeToContent() which may be flashing so it looks like it's slower when it's not. That problem is fixed by speeding up document transformation -or- not displaying the document till it is transformed (needs more thought). If you are in fact correct about this, do we care about this performance drop against the functionality gain? If we think this is too slow we should consider showing progress. At any rate, my vote is that I don't think we should hold up this patch.
>Have you timed this? I think this might be perception. I haven't timed it!. It just appears to be slow :-/ >If you are in fact correct about this, do we care about this performance drop >against the functionality gain? Definitely functionality. I just mentioned what I noticed..that's all. >If we think this is too slow we should consider showing progress. Regardless we should consider showing progress post beta. >At any rate, my vote is that I don't think we should hold up this patch. That's my vote too :).
Comment on attachment 81557 [details] [diff] [review] Patch v3.0. You are aware that calling window.sizeToContent() there will mess up navigator's window size stored in localstore.rdf when the window is closed, right? Of course, popup windows already do that, but it seems worse if we're doing it ourselves, especially since the window won't look like a navigator window. Is there any way you could do something similar to what "View Source" does? It has a <browser> and all the necessary overlays needed to hook up menus and find.
> You are aware that calling window.sizeToContent() there will mess up > navigator's window size stored in localstore.rdf when the window is closed, > right? That didn't occur to me. I'll look into immitating view source.
If we make P3P inherit the navigator accels & context menu and what have you, we give the user the tools to get really confused. For example: if they reload the page, the XSLT transformation will not be applied and they will see the raw P3P policy as every element with only one CSS style: display:inline. View source does not make sense either, and save does not work now (you'd need to save the transformed doc but I have disabled that for now, too many dataloss issues) and so forth. P3P needs its own menu bar and accels. Things like find, copy, zoom etc. make sense for P3P summary, but we must evaluate case by case what makes sense and what does not. Harish started working on this, I believe.
Harish and I have a working patch based on the view-source window. Harish has volunteered to drive the patch to checkin. This is now bugscape 15105: <http://bugscape.netscape.com/show_bug.cgi?id=15105>
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
V
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: