Attempting to understand cookieSession()

ref: https://bugzilla.mozilla.org/show_bug.cgi?id=867218, https://bugzilla.mozilla.org/show_bug.cgi?id=867223