W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2011

[whatwg] Session History and onpopstate coupled with iframes

From: Seon-Wook Park <seon.wook@swook.net>
Date: Mon, 28 Nov 2011 03:21:04 +0800
Message-ID: <CANLOmB4_Om_jCKWyns5+W5ovNb=_-fzyH_eQzTH+hCGvDxL+sg@mail.gmail.com>
Dear whatwg users,

I have recently tried using HTML5's pushState() and window.onpopstate for
my website.
They do work and I quite like the functionalities.

However, recently while working on a series of webpages which incorporate
iframe elements,
I found that the altering of iframe locations seemed to alter history as
When having changed the 'src' attributes of my iframes, I found that my
browsing history became flooded with entries from my current page.
(Used browsers: Firefox, Chrome)

I understand that as mentioned in
iframe history is kept track of, but what puzzles me is why the default
implementation, (which I realise is a work-in-progress),
has been done so that one cannot alter these automatic pushState's or
suppress them.

In fact, I have a feeling that such entries into the browsing history
should not be exposed to the user by default.
I realise that I am in no way experienced enough to question the decisions
which have been made,
but I find this default behaviour odd as it is preventing me from doing two
jobs at once:
1. Control basic history
2. Alter iframe attributes

If there exists methods which I can use and I have therefore caused
un-necessary trouble,
I do apologise and ask cordially for the solution.

Thank you for your attention.

Best regards,
*Seon Wook Park*
Email: seon.wook at swook.net
Site: http://www.swook.net
Received on Sunday, 27 November 2011 11:21:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:38 UTC