Page MenuHomePhabricator

Add client-side check for protocol mismatch
ClosedPublic

Authored by asherkin on Jun 7 2016, 10:39 AM.
Tags
None
Referenced Files
F15486861: D16064.id38654.diff
Thu, Apr 10, 9:52 AM
F15429287: D16064.id38654.diff
Mon, Mar 24, 1:30 AM
F15422000: D16064.id38662.diff
Sat, Mar 22, 4:26 AM
F15398619: D16064.diff
Mon, Mar 17, 12:55 AM
F15394779: D16064.id38654.diff
Sun, Mar 16, 1:07 AM
F15382774: D16064.diff
Mar 14 2025, 2:23 PM
F15344284: D16064.diff
Mar 10 2025, 3:36 AM
F15333253: D16064.id38654.diff
Mar 8 2025, 1:17 AM
Subscribers

Details

Summary

Fixes T10402.
I tried about 50 variations on the wording and notification layout, this seemed by far the most reasonable.
Didn't implement a way to ignore the warning, which might be required - but figured this is serious and broken enough while being completely invisible 99% of the time that it's worth shouting about.

Test Plan

Messed around with $_SERVER['HTTPS'] on the server side and client_uri on the client side - saw reasonable results in all combinations.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

asherkin retitled this revision from to Add client-side check for protocol mismatch.
asherkin updated this object.
asherkin edited the test plan for this revision. (Show Details)
epriestley added a reviewer: epriestley.

Cool, this looks great to me. Thanks!

One possible though is that we might want to send the user somewhere local and more narrowly tailored to the specific problem (in case we change preamble later, or that document gets bigger / less focused), but we can do that later if this proves confusing or whatever. There also isn't any particularly convenient way to ship the user somewhere reasonable right now without building a whole controller just for the one page.

This revision is now accepted and ready to land.Jun 7 2016, 1:35 PM
This revision was automatically updated to reflect the committed changes.