Closed
Bug 553180
Opened 15 years ago
Closed 14 years ago
"Blocked by Content Security Policy" frame error page should not have "try again" button
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: geekboy)
References
()
Details
Attachments
(1 file)
1.24 KB,
patch
|
jst
:
review+
johnath
:
ui-review+
|
Details | Diff | Splinter Review |
Trying again is unlikely to make it work, so the button should not be there. I could go for a "Show only this frame" or "Open frame in new tab" button, though.
Assignee | ||
Comment 1•15 years ago
|
||
Good point, Try Again is not a useful feature there. :) CC'ing Johnath who might have an opinion.
Assignee: nobody → sstamm
Status: NEW → ASSIGNED
Comment 2•15 years ago
|
||
This applies to X-Frame-Options, bug 475530, as well.
Comment 3•15 years ago
|
||
Killing the Try Again button makes good sense, yeah. There's precedent, too:
http://mxr.mozilla.org/mozilla-central/source/docshell/resources/content/netError.xhtml#187
As for doing more interesting things like breaking out of the frame, that will require more of the content/chrome event bubbling hijinx - not sure how I feel about it, but I think it might be worthwhile to break that off from killing Try Again, which feels unambiguously right?
Comment 4•15 years ago
|
||
I'm also not sure we need the button to take the user directly to the page. In most clickjacking attacks, users will never see the frame anyway. Plus we do already allow users to right-click in the frame and open it in its own tab or window, or open it directly if they need that feature.
Reporter | ||
Comment 5•15 years ago
|
||
I filed bug 561916 for the "open frame in new tab" button (plus a few other issues).
Assignee | ||
Comment 6•15 years ago
|
||
No tests for this patch (trivial fix). You can see the result of the patch in the content/base/test/test_CSP_frameancestors.html mochitest.
Johnathan, just want to run this by your UI eyeballs before we commit the change.
jst, I saw you were a peer on docshell, maybe you can give me a review on this tiny change?
Attachment #446768 -
Flags: ui-review?(johnath)
Attachment #446768 -
Flags: review?(jst)
Updated•15 years ago
|
Attachment #446768 -
Flags: review?(jst) → review+
Updated•15 years ago
|
Attachment #446768 -
Flags: ui-review?(johnath) → ui-review+
Comment 7•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•