Closed Bug 84910 Opened 24 years ago Closed 24 years ago

Split up navigator.js

Categories

(SeaMonkey :: UI Design, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: doronr, Assigned: doronr)

References

Details

(Keywords: arch)

Attachments

(1 file, 6 obsolete files)

As per jag/ben, since viewsource now needs a few functions from navigator.js, we should split that file into a shared file (calling it common.js for the moment) and keep navigator.js for functions only needed by navigator. Still not sure about hiddenWindow.xul though and what it really needs. Currently in my common.js is: getBrowser() BrowserOpenWindow() BrowserPrintPreview() which is empty still BrowserPrint() BrowserSetDefaultCharacterSet() BrowserSetForcedCharacterSet() BrowserSetForcedDetector() BrowserClose() BrowserFInd() BrowserFIndNext() BrowserCanFindNext() I'll modify this if the findprevious patch lands before, as it renames the BrowserFind() functions. Any comments? I'll file a navigatorOverlay.xul bug too
how about calling it browser.js ?
Keywords: arch
Attached patch patch, needs some refinement (obsolete) — Splinter Review
created a working patch, unless someone again changes navigator.js :) browser.js now has all functions shared between the browser and viewsource. I tested this and seems that everything is fine.
Status: NEW → ASSIGNED
Summary: Splitt up navigator.js → Split up navigator.js
ok, this does not break anything, navigator and viewsource work fine. Any comments? or even review?
Comment on attachment 52455 [details] [diff] [review] patch, needs some refinement r=jag
Attachment #52455 - Flags: review+
i just realised that it would be more logical to keep in navigator.js the functions we need in both and browser.js to have the functions only the browser needs. New patch coming
new patch, pretty big cause it moves most of navigator.js to browser.js. browser.js is now only for the browser, while navigator.js is for the shared foo between viewsource and navigator. Argh, noticed I forgot to diff hiddenWindow.xul. Any comments before I add a new one?
Yeah. Your old way was better, I think. <browser> -> browser.js navigator.xul -> navigator.js
Attachment #52761 - Attachment is obsolete: true
attached patch fixes character coding in viewsource (it needed |const nsIWebNavigation = Components.interfaces.nsIWebNavigation;|). based on the first patch, as jag correctly points out it makes more sense. r/sr?
Keywords: patch
Target Milestone: --- → mozilla0.9.6
Comment on attachment 53593 [details] [diff] [review] new patch based on the first one, fixes character coding I would keep getBrowser() in navigator.js (and the copy in viewsource.js), since it's tied to the id that's put on the <browser> (or <tabbrowser> as it may so be). I don't think you necessarily want to force viewsource to use the same id on its <browser> as navigator. Make sure your |var gBrowser| is declared everywhere you need it. Also, BrowserClose() really belongs in navigator.js, I think. Other than that it looks good.
Attached patch new patch with jag's changes (obsolete) — Splinter Review
patch with jag's changes, added a ViewSourceClose() function to viewsource.
pushing to 0.9.7 due to no review
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Comment on attachment 54408 [details] [diff] [review] new patch with jag's changes r=jag (sorry, I thought I had already added this)
Attachment #54408 - Flags: review+
Hyatt added BrowserCloseTabOrWindow(), and 2 print functions got changed (PrintPreview() and PrintSetup()), new patch reflects those changed.
Attachment #52455 - Attachment is obsolete: true
Attachment #53593 - Attachment is obsolete: true
Attachment #54408 - Attachment is obsolete: true
Blocks: 110506
Comment on attachment 58101 [details] [diff] [review] new patch due to some changed to navigator.js has a jar.mn change to include a file that is part of another patch
Attachment #58101 - Attachment is obsolete: true
Attached patch new patch (obsolete) — Splinter Review
new patch is without the jar.mn line which was for another patch
ok, since I've got 110506 working (split navigatorOverlay), and since this blocks that bug, could I get review for this? thanks!
Doron, I just made some more changes to navigator.js. Could you update your patch? With those changes, r=jag.
new patch, reflects changes to navigator.js
Attachment #58878 - Attachment is obsolete: true
Comment on attachment 60335 [details] [diff] [review] applies now after jag's changes r=jag
Attachment #60335 - Flags: review+
cc: alecf for possible comments/sr
Comment on attachment 60335 [details] [diff] [review] applies now after jag's changes doron, you rock! Assuming this is just moving code around & updating .jar files, sr=alecf
Attachment #60335 - Flags: superreview+
checked in by hwaara
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
rs vrfy.
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: