Re: How to correctly handle window.location.reload() in a crashtest

2012-11-15 Thread Henrik Skupin
Kevin Gadd wrote on 11/15/12 12:37 AM:
> Increment a value in localStorage?

That's what I have used now and which works great. Thanks Kevin!

-- 
Henrik
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: How to correctly handle window.location.reload() in a crashtest

2012-11-15 Thread Henrik Skupin
Kyle Huey wrote on 11/15/12 12:26 AM:

> Can you use an iframe?

I tried and it would work if we wouldn't crash in another area. So using
an iframe is certainly another crashtest. But thanks for the information!

-- 
Henrik
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: How to correctly handle window.location.reload() in a crashtest

2012-11-14 Thread Kevin Gadd
Increment a value in localStorage?

-kg

On Wed, Nov 14, 2012 at 3:26 PM, Kyle Huey  wrote:

> On Wed, Nov 14, 2012 at 3:17 PM, Henrik Skupin  wrote:
>
> > Hi,
> >
> > A crashtest for WebRTC requires to reload the current page. So that can
> > be done by window.location.reload(). Sadly this will cause an infinite
> > loop when run in the automation. So which practice do we have to set a
> > flag once the window has been reloaded once? Are there any guides how to
> > do it?
> >
>
> Can you use an iframe?
>
> - Kyle
> ___
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>



-- 
-kg
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: How to correctly handle window.location.reload() in a crashtest

2012-11-14 Thread Kyle Huey
On Wed, Nov 14, 2012 at 3:17 PM, Henrik Skupin  wrote:

> Hi,
>
> A crashtest for WebRTC requires to reload the current page. So that can
> be done by window.location.reload(). Sadly this will cause an infinite
> loop when run in the automation. So which practice do we have to set a
> flag once the window has been reloaded once? Are there any guides how to
> do it?
>

Can you use an iframe?

- Kyle
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


How to correctly handle window.location.reload() in a crashtest

2012-11-14 Thread Henrik Skupin
Hi,

A crashtest for WebRTC requires to reload the current page. So that can
be done by window.location.reload(). Sadly this will cause an infinite
loop when run in the automation. So which practice do we have to set a
flag once the window has been reloaded once? Are there any guides how to
do it?

One option which comes into my mind is to set a cookie. But I wonder if
there are better solutions.

Thanks

-- 
Henrik
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform