Closed Bug 298377 Opened 19 years ago Closed 11 years ago

Fastback breaks dojo.io.bind's back-button interception when subframe caching enabled

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
mozilla1.8beta4

People

(Reporter: shaver, Unassigned)

References

()

Details

(Whiteboard: [no l10n impact] [ETA ?])

With 1.0.4, the back-button interception in the test case that comes with the
dojo.io.bind package works, but with DP1.1a1 it does not.  Just untar the
package linked from this bug's URL (currently
http://dojotoolkit.org/dojo_browserio_20050505.tar.gz) and notice that you don't
get the "we intercepted the back button" alert on DP1.1a1.
byner/sicking,   we should see if we can get this working quickly for next alpha
or beta
Assignee: nobody → bryner
Flags: blocking1.8b3+
Why do we want to support back-button interception? And please can we get a
minimal self-contained testcase?
Flags: blocking1.8b3+ → blocking1.8b3-
We want to support back-button interception for the same reason that we want to
support onbeforeunload -- it lets app authors prevent inadvertent data loss
caused by user navigation.  That's also why the pushState/onBackButton stuff is
in the WA1 draft from WHATWG.

_And_ we supported it in 1.0.4, _and_ it's something you can do in pretty much EOMB.
Flags: blocking1.8b3- → blocking1.8b3?
Whiteboard: needs test case
ok, blah
Flags: blocking1.8b3? → blocking1.8b3+
Whiteboard: needs test case → [cb] still needs test case. no progress for 1.8b3?
bryner thinks this is unrelated to fastback.

shaver/bclary, can you reduce the rest case or suggest some one to do it.
Flags: blocking1.8b3+ → blocking1.8b4+
(In reply to comment #5)
looking into it now.
I've been looking but haven't figured it out yet. If someone else can do it
before I can that would be great. I'll start again fresh after a break.
This worked in build 2004-12-08-07 but failed in build 2004-12-09-07.
The basic issue is that when you click back in recent builds, the page
automatically reloads which starts the process from the beginning. I don't know why.
This works in a cvs build on winxp with the patch from bug 277224.
Whiteboard: [cb] still needs test case. no progress for 1.8b3? → [cb][no l10n impact] still needs test case. no progress for 1.8b3?
Target Milestone: --- → mozilla1.8beta4
Whiteboard: [cb][no l10n impact] still needs test case. no progress for 1.8b3? → [no l10n impact] [ETA ?]
This should no longer be blocking, based on the pref change in bug 304860.
Flags: blocking1.8b4+ → blocking1.8b4?
minusing per bryner's comment 11
Flags: blocking1.8b4? → blocking1.8b4-
I'm confused from reading comments 10 and 11.  Does this bug still occur (when
browser.sessionhistory.cache_subframes is true)?
Summary: DP 1.1a1 breaks dojo.io.bind's back-button interception → Fastback breaks dojo.io.bind's back-button interception
> Does this bug still occur (when browser.sessionhistory.cache_subframes is
> true)?

Yes, but its false by default.
Resummarizing, and taking this off my list since I'm not currently planning to do the work required to support bfcache for subframe navigation.
Assignee: bryner → nobody
Summary: Fastback breaks dojo.io.bind's back-button interception → Fastback breaks dojo.io.bind's back-button interception when subframe caching enabled
This WFM now (at least the test page at the URL does), even when browser.sessionhistory.cache_subframes is true. I don't know whether a change in Dojo or Gecko fixed this.
Component: History: Session → Document Navigation
QA Contact: history.session → docshell
I think I can close this as WFM per comment 16, especially given that nothing has happened here since '08
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.