Forget references to captive portal tab once login has succeeded or aborted
Categories
(Firefox :: General, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox50 | --- | unaffected |
firefox51 | --- | unaffected |
firefox52 | --- | wontfix |
firefox53 | --- | wontfix |
firefox54 | --- | wontfix |
firefox75 | --- | fixed |
People
(Reporter: nhnt11, Assigned: prathiksha)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxprivacy])
Attachments
(1 file)
Updated•8 years ago
|
Reporter | ||
Updated•8 years ago
|
Comment 1•7 years ago
|
||
Reporter | ||
Comment 3•7 years ago
|
||
Updated•5 years ago
|
Reporter | ||
Comment 6•5 years ago
|
||
I'm going to consolidate and triage captive portal bugs in March.
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Reporter | ||
Comment 10•5 years ago
•
|
||
Prathiksha, I don't think the patch in this bug fixes the issue that's described. Note that setting the captive portal tab binding to null has little to no effect since the reference is weak [1].
The purpose of this bug was to stop treating the captive portal tab as a captive portal tab, if the portal page redirected to some third-party site. This is hard to detect and at the moment I don't have a solution in mind.
Could you chime in here and re-open the bug if necessary?
Assignee | ||
Comment 11•5 years ago
|
||
(In reply to Nihanth Subramanya [:nhnt11] from comment #10)
Prathiksha, I don't think the patch in this bug fixes the issue that's described. Note that setting the captive portal tab binding to null has little to no effect since the reference is weak [1].
We were a little unclear on what this redirecting to a third party website behavior is when we were triaging this bug. Are you saying that we want to forget the captive portal tab if it redirects to a different origin on successful login? What does "forget" mean here? Should we forget the _captivePortalTab object reference or does forget mean "removeTab" in this context?
If a user currently logs in successfully in a captive portal and if the captive portal tab redirects to, say, a different website after login, we don't want to remember this existing captive portal tab that is not closed yet (the reference is still held, isn't it?) in the event that the user switches their network in the same session and tries to login again. We want to avoid pointing them to the old captive portal tab in this case. Same with abort. I think my patch was meant to fix that issue.
Reporter | ||
Comment 12•5 years ago
|
||
(In reply to :prathiksha from comment #11)
(In reply to Nihanth Subramanya [:nhnt11] from comment #10)
Prathiksha, I don't think the patch in this bug fixes the issue that's described. Note that setting the captive portal tab binding to null has little to no effect since the reference is weak [1].
We were a little unclear on what this redirecting to a third party website behavior is when we were triaging this bug. Are you saying that we want to forget the captive portal tab if it redirects to a different origin on successful login? What does "forget" mean here? Should we forget the _captivePortalTab object reference or does forget mean "removeTab" in this context?
Ah! I can clarify with an example scenario: the user opens a captive portal tab by clicking the Open Login Page button in the notification. Then, they get distracted by something IRL, and when they come back to their machine in a few mins, they promptly try to navigate to their favorite cat gif website in the currently focused captive portal login page tab. At this point, the tab is no longer the captive portal tab. Our UI will not open a new captive portal tab but just focus this one, which isn't very helpful. I didn't think further than this point for more possible anomalies.
So by "forget" I just mean, treat that tab as an ordinary one, which would indeed mean killing our reference to it.
If a user currently logs in successfully in a captive portal and if the captive portal tab redirects to, say, a different website after login, we don't want to remember this existing captive portal tab that is not closed yet (the reference is still held, isn't it?) in the event that the user switches their network in the same session and tries to login again. We want to avoid pointing them to the old captive portal tab in this case. Same with abort. I think my patch was meant to fix that issue.
This is an excellent catch - thanks!. I didn't try to repro or verify it, but I'm pretty sure you're right and your fix should do the trick.
Considering the validity of both the bug that was fixed and the original description, want to clone this into a new bug to track the old issue and rename this one to reflect what was actually fixed?
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 13•5 years ago
|
||
Considering the validity of both the bug that was fixed and the original description, want to clone this into a new bug to track the old issue and rename this one to reflect what was actually fixed?
Yeah. Thanks for clarifying :)
Description
•