Closed
Bug 84910
Opened 24 years ago
Closed 24 years ago
Split up navigator.js
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.7
People
(Reporter: doronr, Assigned: doronr)
References
Details
(Keywords: arch)
Attachments
(1 file, 6 obsolete files)
13.88 KB,
patch
|
jag+mozilla
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
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
Updated•24 years ago
|
Summary: Splitt up navigator.js → Split up navigator.js
Assignee | ||
Comment 4•24 years ago
|
||
ok, this does not break anything, navigator and viewsource work fine. Any
comments? or even review?
Comment 5•24 years ago
|
||
Comment on attachment 52455 [details] [diff] [review]
patch, needs some refinement
r=jag
Attachment #52455 -
Flags: review+
Assignee | ||
Comment 6•24 years ago
|
||
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
Assignee | ||
Comment 7•24 years ago
|
||
Assignee | ||
Comment 8•24 years ago
|
||
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?
Comment 9•24 years ago
|
||
Yeah.
Your old way was better, I think.
<browser> -> browser.js
navigator.xul -> navigator.js
Assignee | ||
Updated•24 years ago
|
Attachment #52761 -
Attachment is obsolete: true
Assignee | ||
Comment 10•24 years ago
|
||
Assignee | ||
Comment 11•24 years ago
|
||
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 12•24 years ago
|
||
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.
Assignee | ||
Comment 13•24 years ago
|
||
Assignee | ||
Comment 14•24 years ago
|
||
patch with jag's changes, added a ViewSourceClose() function to viewsource.
Assignee | ||
Comment 15•24 years ago
|
||
pushing to 0.9.7 due to no review
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Comment 16•24 years ago
|
||
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+
Assignee | ||
Comment 17•24 years ago
|
||
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
Assignee | ||
Comment 18•24 years ago
|
||
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
Assignee | ||
Comment 19•24 years ago
|
||
new patch is without the jar.mn line which was for another patch
Assignee | ||
Comment 20•24 years ago
|
||
ok, since I've got 110506 working (split navigatorOverlay), and since this
blocks that bug, could I get review for this?
thanks!
Comment 21•24 years ago
|
||
Doron, I just made some more changes to navigator.js. Could you update your
patch? With those changes, r=jag.
Assignee | ||
Comment 22•24 years ago
|
||
new patch, reflects changes to navigator.js
Attachment #58878 -
Attachment is obsolete: true
Comment 23•24 years ago
|
||
Comment on attachment 60335 [details] [diff] [review]
applies now after jag's changes
r=jag
Attachment #60335 -
Flags: review+
Assignee | ||
Comment 24•24 years ago
|
||
cc: alecf for possible comments/sr
Comment 25•24 years ago
|
||
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+
Assignee | ||
Comment 26•24 years ago
|
||
checked in by hwaara
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•