Keyword search containing long HTML code will crash Firefox
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | verified |
People
(Reporter: whissi, Assigned: daisuke)
References
Details
(Keywords: perf)
Attachments
(6 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Steps to reproduce:
-
Create a bookmark and assign a keyword (see attached screenshot).
-
Now type "<keyword>[SPACE]<Paste HTML code>
Actual results:
Firefox will become unresponsive and needs to be killed.
Expected results:
Of course pasting such a content was a mistake. However, Firefox shouldn't become unresponsive.
(This happened when I copied something from Twitter.com while web development tools where opened. So I copied the complete HTML instead of the selected word).
Reporter | ||
Comment 1•4 years ago
|
||
Reporter | ||
Comment 2•4 years ago
|
||
Comment 3•4 years ago
|
||
Hey Thomas,
I tried to reproduce this on the latest Nightly 82.0a1 (2020-09-17), beta 81.0 and release 80.0.1 but i can add the html code and firefox won't freeze.
Can you test the issue while in Safe Mode. You can find helpful info here : https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode .
Also a fresh new profile could help. You can find more about creating a new profile here : https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems#w_6-create-a-new-firefox-profile .
If possible, you can test this issue on the nightly build as well. Download the build from : https://www.mozilla.org/en-US/firefox/nightly/all/ .
Reporter | ||
Comment 4•4 years ago
|
||
I am also able to reproduce with current Firefox Nightly on Windows. Even on Linux, see the following screencast.
Comment 5•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 6•4 years ago
|
||
I can repro. I took a profile using perf
(because I can't stop the native profiler as the main thread is hung up), and all of the time seems spent in js::intl_CompareStrings
.
Looking at the callers of that Intl.Collator
and String.localeCompare
, I suspect we're hanging around here in the URL bar code.
Updated•4 years ago
|
Comment 7•4 years ago
|
||
we should be limiting our lookup to a subset of the string.
other related bugs: Bug 1622321, Bug 1589602
Updated•4 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 8•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 9•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 10•3 years ago
|
||
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0822a4287a75 Limit the number of tokens to reduce calculate time. r=adw
Comment 11•3 years ago
|
||
bugherder |
Comment 12•3 years ago
|
||
bugherder |
Comment 13•3 years ago
|
||
I've managed to reproduce the issue using a Fx nightly build from 08-04-2020. Please note that the issue does not occur on high end machines (Firefox does lose performance, but never fully hangs).
The issue is verified fixed in Fx93.0a1 on Windows 10 and Ubuntu 20.04. Firefox no longer hangs after pasting the HTML code in the address bar.
Updated•3 years ago
|
Description
•