Closed Bug 1269189 Opened 9 years ago Closed 9 years ago

Session store doesn't track browsing on pages with frames

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox49 fixed)

RESOLVED FIXED
Firefox 49
Tracking Status
firefox49 --- fixed

People

(Reporter: JanH, Assigned: JanH)

References

()

Details

Attachments

(1 file)

I don't quite know why we've restricted the DOMTitleChanged listener to top-level events only (see bug 969700 - Brian, can you still remember why?), but it means we don't track browsing that happens on a page with frames, e.g. http://www.railfaneurope.net/pix_frameset.html. With (https://dxr.mozilla.org/mozilla-central/rev/1461a4071341c282afcf7b72e33036412d2251d4/mobile/android/components/SessionStore.js#272) commented out, the session store starts tracking page navigation within subframes and restoring closed/unloaded/... pages with frames starts working beautifully, but I'm wondering whether there are any unwanted side effects...
Flags: needinfo?(bnicholson)
Looking at the patch in bug 969700, the previous implementation was probably throwing a bunch of errors since BrowserApp.getBrowserForDocument() will return null for any browsers that aren't tabs. We didn't support subframe restoring at the time (do we now?), so there wasn't any reason to continue if the browser wasn't a top-level frame.
Flags: needinfo?(bnicholson)
Thanks, in that case I guess I can risk going forward with this. I don't quite know where the magic is happening, either, but it's definitively working - presumably somewhere within the history restore part.
Since the history restore code now apparently supports restoring subframes, too, we should let the mobile session store capture frameset navigation as well, so we can preserve the full browsing history. Review commit: https://reviewboard.mozilla.org/r/49977/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/49977/
Attachment #8747634 - Flags: review?(bnicholson)
Comment on attachment 8747634 [details] MozReview Request: Bug 1269189 - Let mobile session store capture frameset navigation, too. r=bnicholson https://reviewboard.mozilla.org/r/49977/#review46793 Looks fine to me!
Attachment #8747634 - Flags: review?(bnicholson) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: