datepicker problem

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

datepicker problem

o.marce91
Hi
I found a very strange situation.
I developped an addon that add a datepticker to messagebox. It worked almost well on TB 52.9.1 on Linux (almost because type=popup did not provide popup, but normal and grid mode was ok)
I launched TB60.0 to check how the addon behaves on this version.
Then I came back to TB 52.9.1
And now... the datepicker is no more working : it presents an empty field with a dropdown arrow that shows only "Jauary 1970"

Any hints ?

Regards

_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: datepicker problem

WaltS48-9
On 8/18/18 11:04 AM, [hidden email] wrote:

> Hi
> I found a very strange situation.
> I developped an addon that add a datepticker to messagebox. It worked almost well on TB 52.9.1 on Linux (almost because type=popup did not provide popup, but normal and grid mode was ok)
> I launched TB60.0 to check how the addon behaves on this version.
> Then I came back to TB 52.9.1
> And now... the datepicker is no more working : it presents an empty field with a dropdown arrow that shows only "Jauary 1970"
>
> Any hints ?
>
> Regards
>

Always test new things in new profiles.

Restore your backed up profile for 52.9.1.

--
CPU: 3.2 Ghz AMD Athlon(tm) II X3 455 Processor
RAM: 8 GiB
Graphics: GeForce GT 630/PCIe/SSE2
OS: Ubuntu Linux 18.04LTS - Gnome Desktop

_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: datepicker problem

o.marce91
Le samedi 18 août 2018 17:35:25 UTC+2, WaltS48 a écrit :

> On 8/18/18 11:04 AM, [hidden email] wrote:
> > Hi
> > I found a very strange situation.
> > I developped an addon that add a datepticker to messagebox. It worked almost well on TB 52.9.1 on Linux (almost because type=popup did not provide popup, but normal and grid mode was ok)
> > I launched TB60.0 to check how the addon behaves on this version.
> > Then I came back to TB 52.9.1
> > And now... the datepicker is no more working : it presents an empty field with a dropdown arrow that shows only "Jauary 1970"
> >
> > Any hints ?
> >
> > Regards
> >
>
> Always test new things in new profiles.
>
> Restore your backed up profile for 52.9.1.
>
> --
> CPU: 3.2 Ghz AMD Athlon(tm) II X3 455 Processor
> RAM: 8 GiB
> Graphics: GeForce GT 630/PCIe/SSE2
> OS: Ubuntu Linux 18.04LTS - Gnome Desktop

Hi,
thanks for the suggestion.
Indeed, when I use a fresh new profile, the datepicker element is correctly displayed (although the "popup" feature is not working).
So, with same Tb binary, I have 2 different behaviours for the same datepicker element.
What in my profile could cause this difference ?

And, unfortnately I did not backup my profile before testing TB 60.0. This is bad ;(
_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: datepicker problem

WaltS48-9
On 8/19/18 5:30 AM, [hidden email] wrote:

> Le samedi 18 août 2018 17:35:25 UTC+2, WaltS48 a écrit :
>> On 8/18/18 11:04 AM, [hidden email] wrote:
>>> Hi
>>> I found a very strange situation.
>>> I developped an addon that add a datepticker to messagebox. It worked almost well on TB 52.9.1 on Linux (almost because type=popup did not provide popup, but normal and grid mode was ok)
>>> I launched TB60.0 to check how the addon behaves on this version.
>>> Then I came back to TB 52.9.1
>>> And now... the datepicker is no more working : it presents an empty field with a dropdown arrow that shows only "Jauary 1970"
>>>
>>> Any hints ?
>>>
>>> Regards
>>>
>> Always test new things in new profiles.
>>
>> Restore your backed up profile for 52.9.1.
>>
> Hi,
> thanks for the suggestion.
> Indeed, when I use a fresh new profile, the datepicker element is correctly displayed (although the "popup" feature is not working).
> So, with same Tb binary, I have 2 different behaviours for the same datepicker element.
> What in my profile could cause this difference ?


Sorry, I'm don't know anything about development. Just provided a couple
of hints.

--
CPU: 3.2 Ghz AMD Athlon(tm) II X3 455 Processor
RAM: 8 GiB
Graphics: GeForce GT 630/PCIe/SSE2
OS: Ubuntu Linux 18.04LTS - Gnome Desktop

_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: datepicker problem

Jörg Knobloch
In reply to this post by o.marce91
On 19/08/2018 11:30, [hidden email] wrote:
> What in my profile could cause this difference ?

Profiles store some states of XUL elements. Since the date picker was
moved from M-C in mozilla52 to C-C in TB 60, this is likely to cause
problems.

Delete xulstore.json from the profile (after making a backup?) to see
whether that helps.

Jörg.

_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: datepicker problem

o.marce91
Le dimanche 19 août 2018 19:59:59 UTC+2, Jörg Knobloch a écrit :

> On 19/08/2018 11:30, [hidden email] wrote:
> > What in my profile could cause this difference ?
>
> Profiles store some states of XUL elements. Since the date picker was
> moved from M-C in mozilla52 to C-C in TB 60, this is likely to cause
> problems.
>
> Delete xulstore.json from the profile (after making a backup?) to see
> whether that helps.
>
> Jörg.


Hi Jorg
thanks for the information.

For the profiles, I made a copy of a TB59-working profile  and I used it with TB60. Then I used TB59 on this copy&TB60ed profile. The datepicker then stopped working.
Let's call 'tb59' profile used with  TB59 only and 'tb60' profile used with TB60.
I then compared files in both profiles. THere are few differences indeed. xulstore.json are identical.
In extensions.ini there is a difference. In tb60 there is an addition extensions listed :
[ExtensionDirs]
Extension0=/home/omarce/.thunderbird/ucunqia4.foo/extensions/{e2fda1a4-762b-4020
-b5ad-a41df1933103}.xpi
[...]

[MultiprocessIncompatibleExtensions]
Extension0={e2fda1a4-762b-4020-b5ad-a41df1933103}
Extension1=[hidden email]

If I remove both references to {e2fda1a4-762b-4020-b5ad-a41df1933103}, it works again.

But once I quit TB59, the profile get TB60ed again...


Strange, isn't it ?
_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: datepicker problem

o.marce91
In reply to this post by Jörg Knobloch
Le dimanche 19 août 2018 19:59:59 UTC+2, Jörg Knobloch a écrit :

> On 19/08/2018 11:30, [hidden email] wrote:
> > What in my profile could cause this difference ?
>
> Profiles store some states of XUL elements. Since the date picker was
> moved from M-C in mozilla52 to C-C in TB 60, this is likely to cause
> problems.
>
> Delete xulstore.json from the profile (after making a backup?) to see
> whether that helps.
>
> Jörg.

Another question related to move from M-C to C-C : how can I add the stylesheet refences in bootstrap.js ?
 I saw in https://wiki.mozilla.org/Thunderbird/Add-ons_Guide_57 :
--
you need to include

<?xml-stylesheet href="chrome://messenger/content/bindings.css" type="text/css"?>

in the respective XUL file of your add-on.
--

How to do that if you don't have XUL file, only bootstrap adding elements ?

THanks
_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: datepicker problem

Jörg Knobloch
In reply to this post by o.marce91
Hi there,

I realised now that this is related to your add-on RemindIt 2.0.0.

Whilst I don't have the time to look at the problem, I can suggest that
you get in touch with Jonathan Kamens <[hidden email]>. His add-on "Send
Later" uses the datepicker and we worked with him in
https://bugzilla.mozilla.org/show_bug.cgi?id=1443215 to get it working
again.

He also submitted a test add-on here:
https://bugzilla.mozilla.org/attachment.cgi?id=8959138 (part of the bug).

You could also download his add-on and analyse it.

Jörg.

P.S.: Due to an error with the mailing list, you'll probably receive
this twice :-(



_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: datepicker problem

Jörg Knobloch
In reply to this post by o.marce91
On 20/08/2018 10:55, [hidden email] wrote:
> If I remove both references to {e2fda1a4-762b-4020-b5ad-a41df1933103}, it works again.
> But once I quit TB59, the profile get TB60ed again...
> Strange, isn't it ?

{e2fda1a4-762b-4020-b5ad-a41df1933103} is Calendar/Lightning. I don't
understand the "But once I quit TB59, the profile get TB60ed again".

I'm sure that TB60 will add those entries, since it's past mozilla57
where XUL overlay add-ons were disabled in FF. It's also possible that
once the profile has been "tranished" by TB 60, there isn't a way back
to TB 52.

How all that relates to the date picker, I don't know. As I said before,
I'm sure Jonathan's "Send Later" got the date picker working.

Jörg.

_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: datepicker problem

Jörg Knobloch
In reply to this post by o.marce91
On 20/08/2018 10:58, [hidden email] wrote:

> Another question related to move from M-C to C-C : how can I add the stylesheet refences in bootstrap.js ?
>   I saw inhttps://wiki.mozilla.org/Thunderbird/Add-ons_Guide_57  :
> --
> you need to include
>
> <?xml-stylesheet href="chrome://messenger/content/bindings.css"  type="text/css"?>
>
> in the respective XUL file of your add-on.
> --
>
> How to do that if you don't have XUL file, only bootstrap adding elements ?

You can load a style sheet like this:

https://searchfox.org/comm-central/rev/9eda30e621d6ab377f49eafe7cf245ee708a0035/mail/base/content/specialTabs.js#264

However, looking at Geoff Lankow's restartless "Shrunked Image Resizer"
4.4.5, there are various XUL files in there, with, for example:

<?xml-stylesheet type="text/css"
href="chrome://messenger/skin/preferences/preferences.css"?>

which are loaded with
|window.openDialog('chrome://shrunked/content/options.xul', ...);

but maybe that pattern doesn't apply to your add-on.

Jörg.


_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: datepicker problem

o.marce91
Le lundi 20 août 2018 14:45:52 UTC+2, Jörg Knobloch a écrit :

> On 20/08/2018 10:58, [hidden email] wrote:
> > Another question related to move from M-C to C-C : how can I add the stylesheet refences in bootstrap.js ?
> >   I saw inhttps://wiki.mozilla.org/Thunderbird/Add-ons_Guide_57  :
> > --
> > you need to include
> >
> > <?xml-stylesheet href="chrome://messenger/content/bindings.css"  type="text/css"?>
> >
> > in the respective XUL file of your add-on.
> > --
> >
> > How to do that if you don't have XUL file, only bootstrap adding elements ?
>
> You can load a style sheet like this:
>
> https://searchfox.org/comm-central/rev/9eda30e621d6ab377f49eafe7cf245ee708a0035/mail/base/content/specialTabs.js#264
>
> However, looking at Geoff Lankow's restartless "Shrunked Image Resizer"
> 4.4.5, there are various XUL files in there, with, for example:
>
> <?xml-stylesheet type="text/css"
> href="chrome://messenger/skin/preferences/preferences.css"?>
>
> which are loaded with
> |window.openDialog('chrome://shrunked/content/options.xul', ...);
>
> but maybe that pattern doesn't apply to your add-on.
>
> Jörg.

Hi Jorg
thanks a lot ! I fixed my initial problem with datepicker by loading stylesheet at you pointed to. It's great.

Thanks a again.
_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird