This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23359 - History object should go dead when its Document is not active
Summary: History object should go dead when its Document is not active
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on: 23358
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-25 23:21 UTC by Ian 'Hixie' Hickson
Modified: 2013-11-20 01:10 UTC (History)
3 users (show)

See Also:


Attachments

Comment 1 Ian 'Hixie' Hickson 2013-11-13 20:48:58 UTC
http://www.hixie.ch/tests/adhoc/dom/level0/history/cross-origin/

Firefox:
   Old history objects work fine, but if the new page is on a different origin, 
   you get a security exception.

Safari and Chrome:
   Old history objects do nothing.

IE9:
   Old history objects throw an exception.
Comment 2 Ian 'Hixie' Hickson 2013-11-19 23:07:59 UTC
bholley says he's fine with doing nothing or throwing an exception.
I think I'm going to go with throwing an exception.
Comment 3 Ian 'Hixie' Hickson 2013-11-19 23:09:33 UTC
(probably SecurityException)
Comment 4 contributor 2013-11-19 23:20:35 UTC
Checked in as WHATWG revision r8302.
Check-in comment: Kill History objects on non-active docs
http://html5.org/tools/web-apps-tracker?from=8301&to=8302
Comment 5 Bobby Holley (:bholley) 2013-11-20 01:10:02 UTC
I am aligning with this behavior in [1].

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=940783