Am Mittwoch 01 Dezember 2010, um 23.26:56 schrieb Andreas Dick:
> Am Mittwoch 01 Dezember 2010, um 21.22:03 schrieb Andreas Dick:
> >  On Tue, 30 Nov 2010 07:35:14 -0000, Roundcube Webmail wrote:
> > > #1487314: RC in a Frame do not work in 0.5-beta
> > > 
> > > -------------------------+---------------------------------------------
> > > -- ---
> > > 
> > >   Reporter:  andudi      |        Type:  Bugs
> > >   
> > >     Status:  closed      |    Priority:  5
> > >  
> > >  Milestone:  later       |   Component:  User Interface
> > >  
> > >    Version:  0.5-beta    |    Severity:  normal
> > > 
> > > Resolution:  worksforme  |    Keywords:  frame dyndns
> > > 
> > > -------------------------+---------------------------------------------
> > > -- ---
> > > 
> > > Changes (by alec):
> > >   * status:  new => closed
> > >   * resolution:  => worksforme
> > > 
> > > Comment:
> > >  Works for me. Move noframes tag outside of frameset. Also make sure
> > > 
> > > that
> > > 
> > >  main and frame pages are using the same protocol. It will not work
> > > 
> > > if main
> > > 
> > >  page uses http and frame uses https.
> >  
> >  Hei Alec
> >  I digged further and found: the problem occures only in Firefox
> >  (Windows XP and Ubuntu 10.10), and it works well in IE, Konqueror and
> >  Reqonk...
> >  Again what I observing: Showing email do NOT work if RC 0.5-beta is
> >  runned in DynDNS Webhop.
> > 
> > With RC 0.4.2 it works still well even with Firefox, and it works well
> > with the devel-addressbook (rev 4300) and with the demo (version?) at
> > http://mail4us.net/?_redirect=&_task=mail&_action=plugin.wrapper&_screen
> > _wi dth=1280&_default_width=1000&skin=default
> > 
> > so, it seems to be hard to debug.. I suggest a JS problem and I would try
> > to digg in the code, but I have no start point yet.
> 
> hei alec
> update:
> first I found that if I replace program/js/app.js from version 0.4.2, it
> works fine.
> then I tried to replace just parts of the 0.4.2 (working) code to localize
> the problem.
> Like this I found that if I revert the changes shown below as unified diff,
> the problems are gone as well!
> I suggest that the url building is the problem, but I am not that good with
> JS... I hope you could have an idea what could be wrong, even if it
> concerns only frames and the JS of firefox. maybe other browsers can
> handle it or their JS implementation is different?

Even more precise, when I change the line 1826 of app.js.src like shown below, 
I can see the message as expected!
I do not really understand the meaning of the code, but in the failing case, 
the "parent.rcmail" exists but the name "parent.rcmail.env.frame_lock" is 
invalid, so JS of firefox seems to abort, while other browsers ignore it...?

Andreas

*******************************************
$ diff -u app.js.src_0.5-beta app.js
--- app.js.src_0.5-beta 2010-12-02 00:00:33.000000000 +0100
+++ app.js      2010-12-02 00:12:40.000000000 +0100
@@ -1823,7 +1823,7 @@
       this.show_contentframe(true);
     else {
       if (!this.env.frame_lock) {
-        (parent.rcmail ? parent.rcmail : this).env.frame_lock = 
this.set_busy(true, 'loading');
+        this.env.frame_lock = this.set_busy(true, 'loading');
       }
       target.location.href = this.env.comm_path+url;
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/8f4f07cd

Reply via email to