Closed Bug 288313 Opened 19 years ago Closed 19 years ago

Hook up connection/proxy prefs to Sunbird

Categories

(Calendar :: Sunbird Only, defect)

Sunbird 0.2
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sipaq, Assigned: sipaq)

References

(Depends on 1 open bug)

Details

Attachments

(3 files, 8 obsolete files)

 
Attached patch Patch v1 (obsolete) — — Splinter Review
This is the patch, it needs four other files (preferences.properties,
connection.xul, connection.js and xonnection.dtd) to be fully functional. I
will attach these files shortly after this patch.
Attachment #179063 - Flags: first-review?(mostafah)
Attached file connection.xul (obsolete) —
This needs to go into mozilla/calendar/resources/content/pref
Attached file connection.js (obsolete) —
This needs to go into mozilla/calendar/resources/content/pref
Attached file preferences.properties (obsolete) —
This needs to go into mozilla/calendar/resources/locale/en-US/
Attached file connection.dtd (obsolete) —
This needs to go into mozilla/calendar/resources/locale/en-US/
Depends on: 285158
r+ for all the files being added. The patch is a bit out of date because jar.mn
has changed since but the change seems to be easy to fix. sipaq: If you won't
mind updating the patch, please do so and I will r+ it right after.
Mostafah, thanks for the review. I will update the patch on Friday, when I'm at
my developing machine.
Status: NEW → ASSIGNED
Attached patch Patch v2 (obsolete) — — Splinter Review
Updated patch
Attachment #179063 - Attachment is obsolete: true
Attachment #180076 - Flags: first-review?(mostafah)
Comment on attachment 180076 [details] [diff] [review]
Patch v2

r=mostafah
I agree that this should go into the tree until the proxy settings move to
toolkit so I r+ it. However this is going to benefit only sunbird and be just a
burden to the extension or lightning. In case there is a voice among the
developers that doesn't agree I would prefer to have a second review before
checking in.mvl would you mind doing the second review please?
Attachment #180076 - Flags: second-review?(mvl)
Attachment #180076 - Flags: first-review?(mostafah)
Attachment #180076 - Flags: first-review+
I wonder how much work it would be to not copy those files into calendar, but
into toolkit.
Comment on attachment 179065 [details]
connection.xul


>    <preferences>
>      <preference id="network.proxy.type"         name="network.proxy.type"         type="int" onchange="gConnectionsDialog.proxyTypeChanged();"/>
Is it a good iea to mix old style prefwindows with newstyle? Should we update
the sunbird prefwindow first?
Also, how much work would it to just move the files into toolkit? If it is just
asmuch work as copying into sunbird, why not do the right thing?
(In reply to comment #11)
> Is it a good idea to mix old style prefwindows with newstyle? Should we update
> the sunbird prefwindow first?

You're right, it isn't a good idea. From my perspective it would be better if we
could move to the newstyle prefwindows alltogether, but I'm not up to that task.

What I can do though, is trying to hook up the old proxy-pref-window to Sunbird. 

So I'm gonna need a decision from you (mvl) and Mostafah. I have a long weekend
ahead and can put some time into this, but I would prefer working on something
that you actually want.

> Also, how much work would it to just move the files into toolkit? If it is 
> just as much work as copying into sunbird, why not do the right thing?

If we decide to use the newstyle prefwindows, I would suggest moving the proxy
prefs to Toolkit. It is just as much work as copying into Sunbird.
Attached patch Patch v3 (obsolete) — — Splinter Review
New patch using the oldstyle prefwindow files connectionPrefs.xul and
connectionsPrefs.js, which I will add separately. Carrying over review+ by
Mostafah
Attachment #179065 - Attachment is obsolete: true
Attachment #179066 - Attachment is obsolete: true
Attachment #179067 - Attachment is obsolete: true
Attachment #179068 - Attachment is obsolete: true
Attachment #180076 - Attachment is obsolete: true
Attachment #182698 - Flags: second-review?(mvl)
Attachment #182698 - Flags: first-review+
Attachment #180076 - Flags: second-review?(mvl)
Attachment #179063 - Flags: first-review?(mostafah)
Attached file connectionPrefs.js —
This will have to go into mozilla/calendar/sunbird/base/content/pref/
Attachment #182699 - Flags: second-review?(mvl)
Attachment #182699 - Flags: first-review+
Attached file connectionPrefs.xul —
This will have to go into mozilla/calendar/sunbird/base/content/pref/
Attachment #182700 - Flags: second-review?(mvl)
Attachment #182700 - Flags: first-review+
Comment on attachment 182698 [details] [diff] [review]
Patch v3

r=mvl, but instead of adding the locale files in the shared resources/jar.mn,
they should be added in the sunbird jar.mn
Attachment #182698 - Flags: second-review?(mvl) → second-review+
Comment on attachment 182698 [details] [diff] [review]
Patch v3

actually, this is wrong. It  will make the button for the connection prefs show
up in every app, while it should only show up for sunbird.
I think this can be solved by using a overlay that's only build by sunbird.
Attachment #182698 - Flags: second-review+ → second-review-
(In reply to comment #16)
> (From update of attachment 182698 [details] [diff] [review] [edit])
> r=mvl, but instead of adding the locale files in the shared resources/jar.mn,
> they should be added in the sunbird jar.mn

Excuse me, but how do I do that? As far as I know, I can only include files in
or below the directory of the jar.mn file into the jar file. 

Should I move the locale files into calendar/sunbird/base/locale?
IIRC in a IRC discussion with you, shaver and me we decided that it was ok to
leave these files in resources/locale. The only thing possible from my point of
view would be to #ifdef MOZ_SUNBIRD these entries in resources/jar.mn
(In reply to comment #17)
> (From update of attachment 182698 [details] [diff] [review] [edit])
> actually, this is wrong. It will make the button for the connection prefs show
> up in every app, while it should only show up for sunbird.
> I think this can be solved by using a overlay that's only build by sunbird.

Should we really use an overlay just for this? Wouldn't an #ifdef MOZ_SUNBIRD be
enough?
(In reply to comment #18)
> Should I move the locale files into calendar/sunbird/base/locale?

Yeah, i think that would work. I don't see why not. (And i can't remember the
discussion. What were the reasons to put them in the shared location?)


(In reply to comment #19)
> Should we really use an overlay just for this? Wouldn't an #ifdef MOZ_SUNBIRD be
> enough?

That would work, but i'm generally not to happy about ifdefs. But since this is
supposed to be temporary (file a followup bug!), it's ok with me.
Attached patch Patch v4 (obsolete) — — Splinter Review
New patch with review comments fixed.
Attachment #182698 - Attachment is obsolete: true
Attachment #182967 - Flags: second-review?(mvl)
Attachment #182967 - Flags: first-review+
Attachment #182699 - Flags: second-review?(mvl) → second-review+
Attachment #182700 - Flags: second-review?(mvl) → second-review+
Comment on attachment 182967 [details] [diff] [review]
Patch v4

jar.mn:
>+#ifdef MOZ_SUNBIRD
>+endif

You missed an # there. And in the other places where you used #ifdef.
Attachment #182967 - Flags: second-review?(mvl) → second-review-
Attached patch Patch v5 — — Splinter Review
Attachment #182967 - Attachment is obsolete: true
Attachment #183528 - Flags: second-review?(mvl)
Attachment #183528 - Flags: first-review+
Comment on attachment 183528 [details] [diff] [review]
Patch v5

r=mvl, with the exception of thos dos line endings that sneaked in.
Attachment #183528 - Flags: second-review?(mvl) → second-review+
patch and files checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Getting a compile error on Win32/MinGW/cygwin

error: file '/cygdrive/e/mozilla/source/mozilla/calendar/resources/locale/en-US/
connectionPrefs.dtd' doesn't exist at /cygdrive/e/mozilla/source/mozilla/config/
make-jars.pl line 428.
make[4]: *** [libs] Error 2
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
mvl, somehow the patch you applied didn't create connectionPrefs.dtd and
prefutilities.properties. Both files haven't been checked in, which obviously
breaks the build.
added missing files.
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → FIXED
*** Bug 230698 has been marked as a duplicate of this bug. ***
*** Bug 281603 has been marked as a duplicate of this bug. ***
*** Bug 310224 has been marked as a duplicate of this bug. ***
QA Contact: gurganbl → sunbird
Status: RESOLVED → VERIFIED
Version: Sunbird 0.2RC2 → Sunbird 0.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: