Closed Bug 70362 Opened 24 years ago Closed 24 years ago

Convert PageInfo to tabbed panels

Categories

(SeaMonkey :: Page Info, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: thayes0993, Assigned: thayes0993)

Details

Attachments

(6 files)

In order to allow other modules to add content to the pageinfo display, the basic structure should be changed to provide tabs for accessing specific information. Hooks should be provided to allow modules to add panels by overlay and to call javascript in the overlay when the page info is displayed.
+ if (window.arguments != null) { use if ("arguements" in window) other comparisons (a != null) can be written as (a) ps what's xcollapsed?
Assignee: asa → thayes
Component: Browser-General → XP Apps: GUI Features
QA Contact: doronr → sairuh
I haven't tried the patch, but what happens if a page doesn't have forms -- is the forms tab disabled, removed, or left there? What should happen?
Ack there is a problem. Daniel Brooks is already working on the new page info and has all of this working plus much more. The tracking bug is bug 52730, but we haven't added anything in that bug yet. The latest snaphshot of the new Page Info can be found at db48x.hypermart.net/pageinfo/
Oh..., that's cool. That'll let you show any tab to start out with. Not sure exactly how you propose to go about lettign other modules add their own tabs, but I'll have to look up how overlays work, seems like that's the key. As for duplication of work, well, there isn't really much in the way of that here. I can let you patch that part in as soon as everything else is done, or we can combine the two, whichever. Easiest and cleanest for you to make your own patch, as you've done here, but against whatever finally gets used elsewhere. /me hurridly adds ids to all the tabs... :)
I'd like to get review on these patches to enable the security work. I believe that bug 52730 can build on these basic changes, which adds the following: + tabs + selection of tab at window open + overlay capability for other modules + registration of onLoad handler for other modules Please review and approve. Who should super-review?
looks good. only one thing: it crashes patch on my machine. probably nothing, I'm probably doing something wrong.
I'm curious. Can you give a couple of examples of modules, which would add tabs other than those already specified in the spec for bug 52730?
Theses changes are for psm. The security tab will be done with an overlay. That's the only module I know of at the moment, but any of them could add to it if they like.
I don't have any additions to the list. The reason for doing this work now is to enable us to add the Security tab without depending on work for other features in the pageinfo window. In addition, the code for providing information about security is best placed in the security module itself, which is why these changes are designed to provide the overlay capabilities. I'd rather see a framework put in place sooner, rather than wait for a single landing that provides everything in one (large) implementation file.
Well, just applied this to my mac tree. Looks ok. r=pchen
sr=alecf - looks cool!
This was fixed, right? Can we close this?
yep, page info now has the tabbed ui.
New patch (attached) to fix a merge error (within 1 hour of my previous changes). Please ignore the XUL changes. Request review (pchen) and super-review (alecf).
Status: NEW → ASSIGNED
What issue does this patch address? Please don't check in the pageInfo.xul change - you don't need the .pageinfo as for the window.arguments thing, care to explain why you need to change that?
pageInfo.xul will not be checked in. My original change to pageInfo.js added an optional argument to this dialog that specified the id of the tab to select. The idea is to use this argument for selecting the security tab when this window is opened from the lock icon. The tab name was arguments[0] in the original code. 1 hour after my checkin, someone added a different use for arguments[0]. I'm resolving this conflict by moving the tab name to arguments[1].
thanks for the explanation - good to have these things recorded somewhere :) sr=alecf (and thanks for the clearer comment in the patch, as well!)
yea, this is needed for bug 70632. I was going to fix it a different way though. At any rate, this is the most straitforward way to fix it now.
Fix in last patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
vrfy.
Status: RESOLVED → VERIFIED
Component: XP Apps: GUI Features → Page Info
QA Contact: sairuh → pmac
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: