Closed
Bug 980075
Opened 11 years ago
Closed 11 years ago
Can no longer comment on lines in pull-requests on github.com
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tech Evangelism Graveyard
English US
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: pmac, Assigned: seth)
References
Details
(Keywords: regression)
Attachments
(1 file)
872 bytes,
text/html
|
Details |
Not sure this is a Fx issue or GH, but it works in Release and Chrome.
Something (I've yet to discover what) is causing me to be unable to add comments to lines in various diff views (e.g. pull-requests) on github.com. This is happening in the latest Nightly (30.0a1 (2014-03-05)). I've restarted in safe-mode and tried a fresh profile, and the problem persists.
Expected:
Hovering over a line in a diff on github.com would show an icon to the left side that when clicked would open a comment form for that line.
Actual:
Hovering over a line does not show the icon and gives me no click targets for opening the form.
Example Diff:
https://github.com/mozilla/bedrock/pull/1670/files
The problem is visible whether logged into Github or not.
Comment 1•11 years ago
|
||
Regression range:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=529b86b92b1d&tochange=e5b09585215f
Keywords: regression
Needs bisection.
Comment 3•11 years ago
|
||
I'm at it. Almost done.
Comment 4•11 years ago
|
||
The first bad revision is:
changeset: 171670:0199299ac111
user: Seth Fowler <seth@mozilla.com>
date: Mon Mar 03 19:40:29 2014 -0800
summary: Bug 63895 (Part 2) - Support table parts as absolute containing blocks. r=dbaron
Blocks: 63895
![]() |
||
Updated•11 years ago
|
Component: General → Layout: Tables
Product: Firefox → Core
Comment 6•11 years ago
|
||
A lot of Mozilla contributors are running Nightly and using Github (websites, gaia). Can we make sure tomorrow's nightly works again? Either we have a fix or we try to backout the offending patch.
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Anthony Ricaud (:rik) from comment #6)
> A lot of Mozilla contributors are running Nightly and using Github
> (websites, gaia). Can we make sure tomorrow's nightly works again? Either we
> have a fix or we try to backout the offending patch.
Yes, that sounds like a good plan. I am starting work on this immediately.
Assignee | ||
Comment 8•11 years ago
|
||
So the problem here looks to be that Github has a stray 'position: relative' in their CSS, applied to the table rows on this page. (It comes from class 'file-diff-line'.) With bug 63895 applied, this causes us to *correctly* position the comment icon (which is a 'position: absolute' <b> with class 'add-line-comment') relative to the table row. Since the entire table is inside a div with class 'highlight' that sets 'overflow: auto', we clip the comment icon and it's not visible.
This works in browsers that ignore the 'position: relative' on the table row, because they position the comment icon relative to the div with class 'file', which has 'position: relative' set and is *outside* the 'highlight' div with 'overflow: auto' set. This means they don't apply the 'overflow: auto' to the comment icon and so they don't clip it.
Here's a JSFiddle with a test case demonstrating the problem:
http://jsfiddle.net/Mu7QN/12/
On browsers that support 'position: relative' on table rows, you'll see one 'X' on the left. On browsers that don't support it, you'll see two 'X's on the left.
Assignee | ||
Comment 9•11 years ago
|
||
Better yet, here's the same test as an attachment to the bug.
Assignee | ||
Comment 10•11 years ago
|
||
Just checked Chrome, Safari, and IE 5.5 - 11. None of them support treating table rows as absolute containing blocks. So it's not a surprise that Github hasn't noticed this problem before - we appear to be the first browser to support this!
Assignee | ||
Comment 11•11 years ago
|
||
Alright, I've added some diagnostic information to identify pages that apply 'position: relative' to table parts other than cells, and surfed around a fairly large selection of popular websites. I may well have just gotten lucky (I'm not in any way claiming this is a rigorous study or a large sample) but I didn't trigger the warning once other than on this Github page.
For now I'm going to proceed under the assumption that pages that trigger this are quite rare in the wild. I'm going to back out this patch, let Github know about the problem and give them a chance to fix it, and then reland.
If it turns out that *lots* of pages have this problem, we can reevaluate. I'd like to keep this functionality if it's feasible to do so, though.
Assignee | ||
Comment 12•11 years ago
|
||
Note that the patch in bug 63895 has now been backed out and Github has been notified. We'll continue tracking this issue in this bug, though.
Updated•11 years ago
|
Component: Layout: Tables → English US
Product: Core → Tech Evangelism
Version: 30 Branch → unspecified
Reporter | ||
Comment 13•11 years ago
|
||
Fantastic work :seth! Sounds like a great way forward. Thanks!
Comment 14•11 years ago
|
||
I still have the issue on today's nightly. I'm on b0e7f63c2138. Is that expected? (I have no HG skills to check that myself)
Comment 15•11 years ago
|
||
Correct, the backout missed today's nightly.
Updated•11 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 16•11 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-5] from comment #15)
> Correct, the backout missed today's nightly.
:sadface:
Sorry about that, folks! Will be resolved tomorrow, then.
Assignee | ||
Comment 17•11 years ago
|
||
Github has been totally awesome about this; they got their CSS updated to fix this problem within 24 hours. Massive internet points to them. Because of that, I've marked this as resolved, and have just relanded bug 63895.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•