The index.html solution did work for one application. However, I have
another project which exhibits the same problem in Safari only, and changing
it from index.jsp to index.html does not fix the problem for that
application.
Since the two applications share some common source code, I begin to suspect
that it is the order with which the js files are built that matters. I'm
guessing here, but the problem may be something to do with how the generate
script uses the build cache to put the compressed js file together, and
therefore the order things get executed in when the file is loaded by the
browser?
My problematic Qx applications are both composed of numerous other Qx apps.
Each one depends on half a dozen other apps which get "included" via the
"library" part of the config.json file. It might matter what order they get
included in... I'm not exactly sure, since there are so many permutation to
test.
However, here is an abstract description of something interesting which I
have observed today:
Suppose I have Qx applications A, B, C, and D. Application D "includes" A,
B, and C. When I load the build version of application D in Safari, it
fails, as described in my original post.
Now if I create application E, and have it include A, B, C and D, then copy
D's Application.json into E, then the build version of application E works
in Safari. It does exactly what D should do.
So that is my current workaround for Safari. It's messy, but it works.
Sort of.
Simon
On Wed, Jan 19, 2011 at 6:47 PM, Tino Butz <tino.b...@1und1.de> wrote:
> Hi,
>
> Did this solve your problem or is a JSP file your only option? I can not
> see why this should make any difference - but the browsers hold a lot of
> mysteries... ;)
>
> Tino
>
> Am 19.01.2011 um 04:04 schrieb Simon Bull:
>
> Hello Tino (and List),
>
> I have some more information.
>
> The bug only occurs in the build versions on Safari, and only if the file
> downloaded to the browser is a JSP file rather than an HTML file.
>
> I have changed my index.jsp file back to an index.html and the problem goes
> away (it took me most of a day to reach that conclusion!)
>
> Are you still interested in it as an issue?
>
>
> On Tue, Jan 18, 2011 at 7:59 PM, Tino Butz <tino.b...@1und1.de> wrote:
>
>> Hi,
>>
>> Thanks for your report. Please open a bug report for this issue:
>> http://bugzilla.qooxdoo.org.
>>
>> Thanks!
>> Tino
>>
>> Am 18.01.2011 um 06:09 schrieb simonb:
>>
>> >
>> > Hello List,
>> >
>> > I have encountered an issue that only occurs with the build version of
>> my Qx
>> > 1.3 app, and only occurs on the Safari browser.
>> >
>> > The source and build apps for fine on IE, FF and Chrome. On Safari
>> 5.0.3
>> > for Windows XP sp2 the source app works fine, but the build app fails to
>> > start up.
>> >
>> > The observable symptom is that document.body is null at the point in
>> time
>> > when the qx.application.AbstractGui attempts to attach a mouseover
>> listener
>> > during application initialisation.
>> >
>> > The stack trace is as follows:
>> > qx.event.Manager.prototype.addListener()
>> > qx.event.Registration.addListener()
>> > qx.ui.tooltip.Manager.Constructor()
>> > qx.getClass.getInstance()
>> > qx.application.AbstractGui.prototype.main()
>> > qx.core.Init.ready()
>> > qx.event.dispatch.Direct.prototype.dispatchEvent()
>> > qx.event.Manager.prototype.dispatchEvent()
>> > qx.event.Registration.fireEvent()
>> > qx.event.handler.Application.prototype.__ck()
>> > (anonymous function)
>> > qx.event.handler.Application.prototype._onNativeLoad()
>> > (anonymous function)
>> >
>> >
>> > To confirm the problem I added the following alerts to
>> > qx.ui.tooltip.Manager.construct():
>> >
>> > construct : function()
>> > {
>> > this.base(arguments);
>> >
>> > // Register events
>> > alert("1) document=" + document);
>> > alert("2) document.body=" + document.body);
>> > qx.event.Registration.addListener(document.body, "mouseover",
>> > this.__onMouseOverRoot, this, true);
>> > alert("3) post-mouseover");
>> >
>> > // Instantiate timers
>> > this.__showTimer = new qx.event.Timer();
>> > this.__showTimer.addListener("interval", this.__onShowInterval,
>> this);
>> >
>> > this.__hideTimer = new qx.event.Timer();
>> > this.__hideTimer.addListener("interval", this.__onHideInterval,
>> this);
>> >
>> > // Init mouse position
>> > this.__mousePosition = { left: 0, top: 0 };
>> > },
>> >
>> > alert number 1) shows the HTMLDocument object.
>> > alert number 2) shows null.
>> > alert number 3) never occurs.
>> >
>> >
>> > I have tried to replicate this error in a simple HelloWorld app, but the
>> > problem does not occur in a trivial application.
>> >
>> > I have also tried removing all ToolTips from my application, but it
>> seems
>> > that tooltip.Manager is initialised from AbstractGui even if my app
>> doesn't
>> > contain any ToolTips.
>> >
>> >
>> > I am not sure why my build client won't work in Safari.
>> >
>> > Can anyone offer any suggestions as to what I can try next?
>> >
>> > Thanks,
>> >
>> > Simon
>> > --
>> > View this message in context:
>> http://qooxdoo.678.n2.nabble.com/Issue-Qx-1-3-build-client-on-Safari-tp5934555p5934555.html
>> > Sent from the qooxdoo mailing list archive at Nabble.com.
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Protect Your Site and Customers from Malware Attacks
>> > Learn about various malware tactics and how to avoid them. Understand
>> > malware threats, the impact they can have on your business, and how you
>> > can protect your company and customers by using code signing.
>> > http://p.sf.net/sfu/oracle-sfdevnl
>> > _______________________________________________
>> > qooxdoo-devel mailing list
>> > qooxdoo-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Protect Your Site and Customers from Malware Attacks
>> Learn about various malware tactics and how to avoid them. Understand
>> malware threats, the impact they can have on your business, and how you
>> can protect your company and customers by using code signing.
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
> <ATT00001..txt><ATT00002..txt>
>
>
> Tino Butz
> Mobile Architect
>
> 1&1 Internet AG - Web Technologies
> Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
> Telefon: +49 721 91374-4488
> tino.b...@1und1.de
>
> Amtsgericht Montabaur / HRB 6484
> Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
> Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver
> Mauss, Jan Oetjen
> Aufsichtsratsvorsitzender: Michael Scheeren
>
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel