Closed Bug 1210375 Opened 9 years ago Closed 9 years ago

Cannot unfold a html tag in the inspector

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(firefox44 fixed)

VERIFIED FIXED
Firefox 44
Tracking Status
firefox44 --- fixed

People

(Reporter: autra, Assigned: bgrins)

References

Details

(Keywords: regression)

Attachments

(1 file)

[steps]
- download latest nightly and launch it
- navigate to any webpage
- open the devtools 
- open the inspector tab
- try to unfold a folded html tag

[Expected]
The html tag unfold

[actual]
I cannot unfold the html tag. From time to time, I manage to unfold it by double-clicking on it (or clicking 2 times with like half a second between the 2 clicks)
Component: Developer Tools → Developer Tools: Inspector
I'm not seeing any errors in the console.
Really surprised this passed our tests ...

The node expands for a very short amount of time, and then closes again, and its background flashes orange as if there was a DOM mutation.
My local build was done from fx-team, which I updated yesterday, so this is only in today's nightly.
The only thing that seems remotely related is bug 1209342.
(In reply to Patrick Brosset [:pbrosset] [:pbro] from comment #2)
> My local build was done from fx-team, which I updated yesterday, so this is
> only in today's nightly.
> The only thing that seems remotely related is bug 1209342.

A backout of bug 1209342 locally doesn't fix the problem
This is because of the GRAB_DELAY change in Bug 1208544.  I put in a fix to limit the chance of an intermittent being introduced as mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1034110#c47.

There's a typo where I set this.GRAB_DELAY instead of this.markup.GRAB_DELAY and since all the tests passed I missed it :(.  I'll attach a fix here
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Bug 1210375 - Use correct GRAB_DELAY in the markup view;r=pbrosset
Attachment #8668475 - Flags: review?(pbrosset)
This includes a test case that will fail if something like this happens again.  Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9dde8718fdd7
Comment on attachment 8668475 [details]
MozReview Request: Bug 1210375 - Use correct GRAB_DELAY in the markup view;r=pbrosset

Redirecting review, since we should get a fix for this out in time for tomorrow's nightly
Attachment #8668475 - Flags: review?(jsantell)
Attachment #8668475 - Flags: review?(jsantell) → review+
Comment on attachment 8668475 [details]
MozReview Request: Bug 1210375 - Use correct GRAB_DELAY in the markup view;r=pbrosset

https://reviewboard.mozilla.org/r/20969/#review18863

::: devtools/client/markupview/test/browser_markupview_dragdrop_isDragging.js:31
(Diff revision 1)
> +  yield wait(10);

Is GRAB_DELAY 400ms here? Shouldn't the wait be atleast that? I'd use polling here to reduce potential intermittents, seems like we'd run into that in this test
(In reply to Jordan Santell [:jsantell] [@jsantell] from comment #8)
> Comment on attachment 8668475 [details]
> MozReview Request: Bug 1210375 - Use correct GRAB_DELAY in the markup
> view;r=pbrosset
> 
> https://reviewboard.mozilla.org/r/20969/#review18863
> 
> :::
> devtools/client/markupview/test/browser_markupview_dragdrop_isDragging.js:31
> (Diff revision 1)
> > +  yield wait(10);
> 
> Is GRAB_DELAY 400ms here? Shouldn't the wait be atleast that? I'd use
> polling here to reduce potential intermittents, seems like we'd run into
> that in this test

It is 400ms.  The bug that was introduced was that the drag started as a result of setTimeout(() => {}, undefined) so it was starting the drag nearly immediately.  No tests caught it because none were checking to make sure the drag *hadn't* started, they were just making sure it had after 401ms.  So this new check makes sure it hasn't started after a short delay.
https://hg.mozilla.org/integration/fx-team/rev/df3fb2045c1c
Comment on attachment 8668475 [details]
MozReview Request: Bug 1210375 - Use correct GRAB_DELAY in the markup view;r=pbrosset

(In reply to Pulsebot from comment #10)
> https://hg.mozilla.org/integration/fx-team/rev/df3fb2045c1c

Ah forgot to update the reviewer before pushing - sorry Patrick for the false r=pbrosset
Attachment #8668475 - Flags: review?(pbrosset)
Augustin, can you please confirm tomorrow that the nightly build has been updated and is working as you expect?
Flags: needinfo?(augustin.trancart)
Tested on today's nightly, the problem seems to be fixed.
I'm wondering if bug 1210507 (also filed yesterday) is related too. The effect is the same, the cause is different: try to double click an attribute (or the new attribute field at the end of a MarkupContainer line).
(In reply to Patrick Brosset [:pbrosset] [:pbro] from comment #13)
> Tested on today's nightly, the problem seems to be fixed.
> I'm wondering if bug 1210507 (also filed yesterday) is related too. The
> effect is the same, the cause is different: try to double click an attribute
> (or the new attribute field at the end of a MarkupContainer line).
My bad, I was testing on the nightly build from october 1st. Tested again on a local fx-team build (done today), and both problems are gone. So bug 1210507 is most likely a duplicate. Brian, can you confirm and close as dupe?
https://hg.mozilla.org/mozilla-central/rev/df3fb2045c1c
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
VERIFIED FIXED on Firefox 44.0a1
Build ID: 20151002030204

Thanks a lot!
Status: RESOLVED → VERIFIED
Flags: needinfo?(augustin.trancart)
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: