Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I use Firefox (35.0.1) on OS X Yosemite to edit a view, for example /admin/content
, and click on the add button in the field section, and click anywhere in the modal Firefox hard crashes - completely locks up.
The conditions to cause this appear to be:
- Firefox 35
- OS X
- Using seven as the admin theme
- CSS enabled
Beta phase evaluation
Issue category | Bug, because it turns on your fan |
---|---|
Issue priority | Critical, because you might use a laptop, which will things make hard to type on the longrun. |
Disruption | Should not cause disruption |
Comment | File | Size | Author |
---|---|---|---|
#21 | 2423781.21.patch | 437 bytes | alexpott |
#20 | 2423781.18.patch | 488 bytes | alexpott |
#5 | Screen Shot 2015-02-10 at 20.48.56.png | 213.86 KB | alexpott |
Comments
Comment #1
alexpottComment #2
alexpottThis is not just views it also occurs when adding a new block in the block ui.
Comment #3
alexpottIt appears to be something recursive that sometime eventually firefox manages to get out of.
Comment #4
neclimdulJust as another data point I was not able to reproduce this in Linux. Don't see how something like this would be OS specific but thought I'd log my observations in case it is.
Comment #5
alexpottI've disabled all the extensions and it still occurs. I managed to create a js performance profile but it does not really help (me at least).
Comment #6
dawehnerLet's tag it, so nod_ will see it.
Comment #7
cosmicdreams CreditAttribution: cosmicdreams commentedTested on Firefox 35.0.1 (on Windows 7)
I didn't notice any hangs but did notice lag when I attempted to add an image to the textarea with CKEditor.
@alexpott can you please:
1. Open Firefox's devtools (F12 on windows)
2. Navigate to the Debugger
3. Click the gear on the far right, and enable "Pause on Exceptions"
What is the function / line that the exception is happening on?
Comment #8
alexpott@cosmicdreams not seeing an exceptions - all I'm seeing is a hang - massive use of cpu - and eventual success.
Comment #9
alexpottAlso this is fixed by reverting #2392887: Update JS lib: jQuery to 2.1.3
Comment #10
cosmicdreams CreditAttribution: cosmicdreams commentedThat leads me to believe that this is jquery's fault.
Edit: trying to track down the source of the problem....
Comment #11
cosmicdreams CreditAttribution: cosmicdreams commented@alexpott : And this happens when you click the "Add content" button on the /admin/content page (which doesn't seem to open a modal) instead of the ckeditor's add image modal?
Comment #12
dawehnerIt happens if you add a new field in views
Comment #13
davidhernandezCommenting just to say I'm also seeing this. Views, block settings. Views seems to be the worst. With the block settings form I just had to wait a few seconds, but the Views "add field" locks up Firefox.
Comment #14
davidhernandezI noticed the problem doesn't happen in Stark or Bartik, only in Seven.
Comment #15
nils.destoop CreditAttribution: nils.destoop commentedConfirming this problem.
Comment #16
alexpottComment #17
alexpottDisabling CSS also fixes it.
Comment #18
larowlanSeeing this too, spinning rainbow, eventually comes good, could be the auto sizing JavaScript, the examples listed all use that. So CSS changes would definitely impact that.
Comment #19
nod_From alex screeshot, seems jQuery.event.fix triggers layouts all over the place https://github.com/jquery/jquery/issues/1746
Not sure what to do here, can't replicate. Any big CSS change on dialogs lately?
Comment #20
alexpottSo the patch attached actually fixes the problem!
Comment #21
alexpottAnd here is a better fix. I have no clue as to why :(
Comment #22
alexpottChrome works fine with the patch in #21 applied.
Comment #23
dawehnerIt indeed does it for me as well.
Comment #24
nod_I guess dawehner can RTBC, happy with it but no clue what's going on. Maybe ping one of the CSS people to make sure it's all good with them.
Comment #25
dawehnerGIven my approved knowledge of css by nod_ :P
Comment #26
dawehner.
Comment #27
davidhernandezI think it should be sent to LewisNyman to look at. It's a CSS change in Seven, plus he might have a better idea of what is causing it.
Comment #28
alexpottThe
overflow: hidden;
was added in the upgrade of jQuery UI from 1.10.2 to 1.11.2 - see #2403269: Update to jQuery UI 1.11.2.What is interesting is that jQuery-ui has just removed the overflow: hidden - see https://github.com/jquery/jquery-ui/pull/1439... after adding it in https://github.com/jquery/jquery-ui/pull/1092
Comment #29
alexpottWe added the seven specific styling in #2113911: Modal style update
Comment #30
LewisNymanI can confirm that this patch does not cause a visual regression in Seven. RTBC++
Comment #31
alexpottIf I remove both overflows then firefox still hangs - we're going to have to be careful when we upgrade again.
Comment #32
dawehnerCan we document this?
Comment #33
alexpottI'm not sure where to document this - the danger comes when we upgrade jquery ui
Comment #34
LewisNymanMaybe place a comment above the change?
Comment #35
webchickHappy to add that on commit. Suggested comment?
Comment #36
cosmicdreams CreditAttribution: cosmicdreams commented/** Note: Modifying the overflow css rule has been found to cause performance issues on Firefox. See:
**/
Comment #37
LewisNymanHow about:
jQuery UI modals crash in Firefox unless overflow is set to hidden, see: https://www.drupal.org/node/2423781.
Comment #39
webchickWorks for me!
Added that and committed and pushed to 8.0.x. Thanks!
Comment #41
pivica CreditAttribution: pivica at MD Systems GmbH commentedThere was a good reason why jQuery team removed that jQuery overflow hidden in the first place. We now have a same problem in #2508830-6: Various UI problem with autocomplete select control and ideally removing that overflow hidden from seven would be the best option for fixing it.
I don't want to reopen this issue for now until more people take a look.
Can somebody with OS X and FF maybe check is FF crashing still when that overflow hidden is removed from seven css? If FF is still crashing we will need to find some other solution for absolute positioned controls inside jquery dialog.
Comment #42
s_leu CreditAttribution: s_leu at MD Systems GmbH commentedI opened a follow up for #2508830: Various UI problem with autocomplete select control here: #2535122: Autocomplete suggestions in modal clipped due to overflow: hidden.
IMHO fixing the bug described in #2535122: Autocomplete suggestions in modal clipped due to overflow: hidden, which occurs not only on OS X and in FF but in many browsers, is more important than fixing that very special case for FF on OS X ;)
So i agree to remove the overflow: hidden from seven again, also added this as proposed solution in the new issue.
Comment #43
sasanikolic CreditAttribution: sasanikolic at MD Systems GmbH commentedI reverted this patch and tested on Mac OS-X Yosemite (10.10.3) and Firefox 39. No Firefox crashes for me with this configuration.
For #2535122: Autocomplete suggestions in modal clipped due to overflow: hidden the suggestions didn't load for me, although I created lots of content with devel generate.