Closed Bug 1433409 Opened 2 years ago Closed 2 years ago

don't hold the nsNSSComponent lock unnecessarily (e.g. in CheckForSmartCardChanges)

Categories

(Core :: Security: PSM, defect, P1)

58 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: osantanen, Assigned: keeler)

Details

(Whiteboard: [psm-assigned])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/63.0.3239.132 Chrome/63.0.3239.132 Safari/537.36

Steps to reproduce:

Try to open a page. I have Ubuntu 17.10 on 64bit pc. I think that the page upload time was normal a few days or 1-2 weeks ago.


Actual results:

loading page takes minutes when the same page loads rapidly in Chromium and Opera. This does not depend on the page; the page loading is slow in every page and does not depend on the protocol used http or https.


Expected results:

The page load should be al fast as before and as fast as with Chromium and Opera.
Hi olli. 
I would guess by "page upload" you refer to "page load", in which case, could you please try using safe mode or a new profile and see if the problem persists?

safe mode:https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
new profile: https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles#w_start-the-profile-manager-when-firefox-is-closed

Also, while the page load is slow, do you see anything in browser console? (you can open browser console by using CTRL+Shift+J)
Flags: needinfo?(osantanen)
Hi,
Before you answered I first uninstalled firefox bu sudo apt-get purge firefox and reinstalled it by sudo apt-get install firefox without any effect, then I found https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems page and tried hint 5 and pressed "Refresh Firefox"-button -> after that Firefox seemed to work normally but today I was slower than ever - event the GUI seems to freeze and the browser must be forced to shut down because Firefox is not responding.
 
Thanks for your advise, yes starting Firefox in safe mode made Firefox to load pages again rapidly (although I have no addons installed and the only extension is Mozilla installed OpenH264 Video Codec). When I restart Firefox in normal mode and load this bugreport page the following text is printed in console:

Could not read chrome manifest 'file:///usr/lib/firefox/chrome.manifest'.
[Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsICommandLine.handleFlagWithParam]"  nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame :: jar:file:///usr/lib/firefox/browser/omni.ja!/components/nsBrowserContentHandler.js :: bch_handle :: line 341"  data: no]  (unknown)
Warning: unrecognized command line flag -new-window
  nsBrowserContentHandler.js:756
Näppäintapahtuma ei ole käytettävissä joillain näppäimistöasetteluilla: key=”r” modifiers=”accel,alt” id=”key_toggleReaderMode”  browser.xul
Näppäintapahtuma ei ole käytettävissä joillain näppäimistöasetteluilla: key=”i” modifiers=”accel,alt,shift” id=”key_browserToolbox”  browser.xul
getScreenshot error: Error: page-thumbnail:error  Screenshots.jsm:61
[Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIProcess.init]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: jar:file:///usr/lib/firefox/omni.ja!/components/CrashService.js :: runMinidumpAnalyzer/< :: line 53"  data: no]  (unknown)
The ‘content’ attribute of Window objects is deprecated.  Please use ‘window.top’ instead.  Standard:165:107
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ads.stickyadstv.com/user-registering?dataProviderId=593&userId=anNu8It91El5pO5" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ib.adnxs.com/setuid?entity=338&code=A-2354569238350708951" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://farm.plista.com/matching/pixel/?match&ssp=b99e" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ads.stickyadstv.com/user-registering?dataProviderId=289&userId=8961a7f179d1d017ac27MCdNT4zFRvOOw14Z38CU" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://d5p.de17a.com/getuid/stickyads" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ads.stickyadstv.com/user-registering?dataProviderId=313&userId=2541754112775443123" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://track.eyeviewads.com/sync/fwel" suojatulla sivulla[Learn More]  www.hs.fi
Content Security Policy: Directive ‘child-src’ has been deprecated. Please use directive ‘worker-src’ to control workers, or directive ‘frame-src’ to control frames respectively. (unknown)
Content Security Policy: Sivuston asetukset estivät resurssin lataamisen osoitteesta self ("style-src https://addons-discovery.cdn.mozilla.net 'sha256-DiZjxuHvKi7pvUQCxCVyk1kAFJEUWe+jf6HWMI5agj4='"). normal:1
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ads.stickyadstv.com/user-registering?dataProviderId=625&userId=f74f5338b2a6f756cfe4aac8be71ff2a" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://us-u.openx.net/w/1.0/cmrd?id=cc52137c-6b43-45a2-9b63-88f0d288e431&ph=84dfa540-6424-4348-a10d-9ae40c84c06a&r=http%3A%2F%2Fads.stickyadstv.com%2Fuser-registering%3FdataProviderId%3D641%26userId%3D%7BOPENX_ID%7D" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ads.stickyadstv.com/user-registering?dataProviderId=641&userId=a96d44b7-8086-06c0-2cf0-5a3a0e85efc2" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://vop.sundaysky.com/sync/dmp?redirect=http%3A%2F%2Fads.stickyadstv.com%2Fuser-registering%3FdataProviderId%3D609%26userId%3D%24%7Bssky_uuid%7D" suojatulla sivulla[Learn More]  www.hs.fi
update.locale file doesn't exist in either the application or GRE directories  UpdateUtils.jsm:128
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ads.stickyadstv.com/user-registering?dataProviderId=609&userId=d5.db28dc8d7629499ca89539f6a9a1b2f7" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://sync.mathtag.com/sync/img?mt_exid=44&redir=http%3A%2F%2Fads.stickyadstv.com%2Fuser-registering%3FdataProviderId%3D409%26userId%3D%5BMM_UUID%5D" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ads.stickyadstv.com/user-registering?dataProviderId=409&userId=58e35a22-602c-4b00-b9ad-f23c72dc1854" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://cm.g.doubleclick.net/pixel?google_nid=dailymotion_dbm&google_cm&google_sc" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ads.stickyadstv.com/user-registering?dataProviderId=321&userId=CAESEGeEdWhSppIUhrSIheSU1tA&google_cver=1" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://sync-tm.everesttech.net/upi/pid/7C08tBTf?redir=http%3A%2F%2Fads.stickyadstv.com%2Fuser-registering%3FdataProviderId%3D345%26userId%3D%24%7BTM_USER_ID%7D" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ads.stickyadstv.com/user-registering?dataProviderId=345&userId=WiKGDQAAAGjnGnFi" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://sync.adaptv.advertising.com/sync?rUrl=http%3A%2F%2Fads.stickyadstv.com%2Fuser-registering%3FdataProviderId%3D449%26userId%3D%7Buid%7D" suojatulla sivulla[Learn More]  www.hs.fi
Ladataan osittain suojaamatonta näytettävää sisältöä "http://ads.stickyadstv.com/user-registering?dataProviderId=449&userId=3401868343705752390" suojatulla sivulla[Learn More]  www.hs.fi
TelemetryStopwatch: key "FX_SCHEDULE_PRESSURE_IDLE_SAMPLE_MS" was already initialized  TelemetryStopwatch.jsm:356
Content Security Policy: Ohitetaan ’x-frame-options’ direktiivin ’frame-ancestors’ takia.  (unknown)
Content Security Policy: Ohitetaan "'unsafe-inline'" script-src:ssä tai style-src:ssä: nonce-source tai hash-source määritetty  (unknown)

Did this give you a hint about the reason for slowness? 

Regards,
Olli
Flags: needinfo?(osantanen)
From the browser console output I would guess that you run a localized version of Firefox and if I'm not mistaking that would be a Finnish version.
Could you please try installing it from the tar and not from the apt-get install and see if the problem persists? (http://ftp.mozilla.org/pub/firefox/releases/58.0.1/linux-x86_64/fi/)
Flags: needinfo?(osantanen)
Ok, I purged Finnish Firefox version and started Firefox from your link's unpacked tar-file. The problem persists, page load is slow, in addition GUI does not now open new tabs (I have not found it before).  

Here is the console text:

"Handler function threw an exception: TypeError: this.transport is null
Stack: send@resource://devtools/shared/base-loader.js -> resource://devtools/server/main.js:1513:5
addSecurityInfo@resource://devtools/shared/base-loader.js -> resource://devtools/server/actors/webconsole.js:2256:5
NetworkResponseListener.prototype._getSecurityInfo<@resource://devtools/shared/base-loader.js -> resource://devtools/shared/webconsole/network-monitor.js:516:5
exports.makeInfallible/<@resource://devtools/shared/base-loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:109:14
onStartRequest@resource://devtools/shared/base-loader.js -> resource://devtools/shared/webconsole/network-monitor.js:436:5
Line: 1513, column: 5" ThreadSafeDevToolsUtils.js:88
nsLoginManager:searchLogins: `formSubmitURL` or `httpRealm` is recommended nsLoginManager.js:405
TypeError: mini_login is null  global.js:132:1
Content Security Policy: Ohitetaan ’x-frame-options’ direktiivin ’frame-ancestors’ takia. (unknown)
Content Security Policy: Directive ‘child-src’ has been deprecated. Please use directive ‘worker-src’ to control workers, or directive ‘frame-src’ to control frames respectively. (unknown)
Content Security Policy: Ohitetaan "'unsafe-inline'" script-src:ssä tai style-src:ssä: nonce-source tai hash-source määritetty (unknown)
TypeError: this.sink is null[Learn More]  network-monitor.js:527:5
Webconsole context has changed
NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIWebNavigation.loadURIWithOptions]  browser-child.js:359
TypeError: pool is null[Learn More]  webconsole.js:498:5
TypeError: channel.getResponseHeader is not a function[Learn More]  network-monitor.js:474:28
"Handler function threw an exception: TypeError: this.transport is null
Stack: send@resource://devtools/shared/base-loader.js -> resource://devtools/server/main.js:1513:5
addSecurityInfo@resource://devtools/shared/base-loader.js -> resource://devtools/server/actors/webconsole.js:2256:5
NetworkResponseListener.prototype._getSecurityInfo<@resource://devtools/shared/base-loader.js -> resource://devtools/shared/webconsole/network-monitor.js:516:5
exports.makeInfallible/<@resource://devtools/shared/base-loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:109:14
onStartRequest@resource://devtools/shared/base-loader.js -> resource://devtools/shared/webconsole/network-monitor.js:436:5
Line: 1513, column: 5"  ThreadSafeDevToolsUtils.js:88
TypeError: channel.getResponseHeader is not a function[Learn More]  network-monitor.js:474:28
"Handler function threw an exception: TypeError: this.transport is null
Stack: send@resource://devtools/shared/base-loader.js -> resource://devtools/server/main.js:1513:5
addSecurityInfo@resource://devtools/shared/base-loader.js -> resource://devtools/server/actors/webconsole.js:2256:5
NetworkResponseListener.prototype._getSecurityInfo<@resource://devtools/shared/base-loader.js -> resource://devtools/shared/webconsole/network-monitor.js:516:5
exports.makeInfallible/<@resource://devtools/shared/base-loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:109:14
onStartRequest@resource://devtools/shared/base-loader.js -> resource://devtools/shared/webconsole/network-monitor.js:436:5
Line: 1513, column: 5"  ThreadSafeDevToolsUtils.js:88
Loading failed for the <script> with source “https://www.googletagmanager.com/gtm.js?id=GTM-M26BKR”.  www.hs.fi:1
Loading failed for the <script> with source “https://ratas.sanoma.fi/adprof/2.0/-/-?sv=2&callback=ratas.callbacks.ratas&cb=1517467805803&utv=ut4.42.201712191048”.  www.hs.fi:408
Loading failed for the <script> with source “https://storage.googleapis.com/glimr-static/glimrsdk-js/3.0.0/glimr.min.js”.  www.hs.fi:1
Error: Network error.  widget_iframe.83d5793f6ebbe2046330abda6016ae93.html:12:8684
Näppäintapahtuma ei ole käytettävissä joillain näppäimistöasetteluilla: key=”r” modifiers=”accel,alt” id=”key_toggleReaderMode”  browser.xul
Näppäintapahtuma ei ole käytettävissä joillain näppäimistöasetteluilla: key=”i” modifiers=”accel,alt,shift” id=”key_browserToolbox”  browser.xul
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIScriptSecurityManager.getLoadContextCodebasePrincipal]  remote-browser.xml:372
Failed to create tab  tabbrowser.xml:2843
this.frameLoader.tabParent is null  remote-browser.xml:246
TypeError: this.frameLoader.tabParent is null[Learn More]  remote-browser.xml:246:13
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIScriptSecurityManager.getLoadContextCodebasePrincipal]  remote-browser.xml:372
Failed to create tab  tabbrowser.xml:2843
this.frameLoader.tabParent is null  remote-browser.xml:246
TypeError: this.frameLoader.tabParent is null[Learn More]  remote-browser.xml:246:13
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIScriptSecurityManager.getLoadContextCodebasePrincipal]  remote-browser.xml:372
Failed to create tab  tabbrowser.xml:2843
this.frameLoader.tabParent is null  remote-browser.xml:246
TypeError: this.frameLoader.tabParent is null[Learn More]  remote-browser.xml:246:13
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIScriptSecurityManager.getLoadContextCodebasePrincipal]  remote-browser.xml:372
Failed to create tab  tabbrowser.xml:2843
this.frameLoader.tabParent is null  remote-browser.xml:246
TypeError: this.frameLoader.tabParent is null[Learn More]  remote-browser.xml:246:13
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIScriptSecurityManager.getLoadContextCodebasePrincipal]  remote-browser.xml:372
Failed to create tab  tabbrowser.xml:2843
this.frameLoader.tabParent is null  remote-browser.xml:246
TypeError: this.frameLoader.tabParent is null[Learn More]  remote-browser.xml:246:13
Flags: needinfo?(osantanen)
Valentin, does anything in the above console log (comment 4) makes sense to you? It does seem to me that could be something network related, but I've never seen anything like that.
Flags: needinfo?(valentin.gosu)
It seems from this latest console text that the devtools console is open.
This means that all network traffic is intercepted by devtools, which will likely slow down the upload.
Is the upload still slow when devtools closed. Using a new profile and testing immediately after restarting the browser is recommended, as addons may be an influence as well.
Flags: needinfo?(valentin.gosu)
Hi, firefox is still slow although developer tools are not open - this page opened in a few seconds, then I opened browser console and a new larger newspaper page and then the GUI stucked - I had to write this with an other browser because GUI did not react anymore after first slowing dramatically. This console text printed when I opened this page (this took minutes to copy-paste). 

Could not read chrome manifest 'jar:file:///home/olli/Lataukset/firefox/browser/extensions/%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D.xpi!/chrome.manifest'.
Content Security Policy: Ohitetaan ’x-frame-options’ direktiivin ’frame-ancestors’ takia.  (unknown)
Content Security Policy: Directive ‘child-src’ has been deprecated. Please use directive ‘worker-src’ to control workers, or directive ‘frame-src’ to control frames respectively.  (unknown)
Content Security Policy: Ohitetaan "'unsafe-inline'" script-src:ssä tai style-src:ssä: nonce-source tai hash-source määritetty  (unknown)
Näppäintapahtuma ei ole käytettävissä joillain näppäimistöasetteluilla: key=”r” modifiers=”accel,alt” id=”key_toggleReaderMode”  browser.xul
Näppäintapahtuma ei ole käytettävissä joillain näppäimistöasetteluilla: key=”i” modifiers=”accel,alt,shift” id=”key_browserToolbox”  browser.xul
getScreenshot error: Error: page-thumbnail:error  Screenshots.jsm:61
AST library loaded: 0.12.0  ast.js:2
1517591713308	addons.productaddons	WARN	Failed downloading XML, status: 0, reason: timeout
The ‘content’ attribute of Window objects is deprecated.  Please use ‘window.top’ instead.  Standard:165:107
The ‘content’ attribute of Window objects is deprecated.  Please use ‘window.top’ instead.  Standard:166:107
unreachable code after return statement i.js:1:16186
1517591956023	addons.update-checker	WARN	Update manifest for aushelper@mozilla.org did not contain an updates property
1517591988028	addons.update-checker	WARN	Update manifest for firefox@getpocket.com did not contain an updates property
1517592020033	addons.update-checker	WARN	Update manifest for activity-stream@mozilla.org did not contain an updates property
1517592052038	addons.update-checker	WARN	Update manifest for followonsearch@mozilla.com did not contain an updates property
1517592084043	addons.update-checker	WARN	Update manifest for onboarding@mozilla.org did not contain an updates property
1517592148054	addons.update-checker	WARN	Update manifest for webcompat@mozilla.org did not contain an updates property
1517592212065	addons.update-checker	WARN	Update manifest for {972ce4c6-7e08-4474-a285-3208198ce6fd} did not contain an updates property
1517592244069	addons.update-checker	WARN	Update manifest for formautofill@mozilla.org did not contain an updates property
Olli, it is my understanding from your STR that the page load is slow, not the upload, as the title states. Updating the title to reflect this.

Also, you said in comment 0 that the page load was normal at some point. Did you do any routing modifications or firewall settings or any other OS modifications that you can remember between the period in which the page load was normal and now?  

Also, are all pages slow loading? or just some particular pages?
Flags: needinfo?(osantanen)
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Summary: Page upload is very slow → Page load is very slow
Yes, page load was normal until I noticed it was slow. I have rarely used other browsers than Firefox, but now I still have to use another one. I have not made routing modifications or firewall settings. I may have installed a few programs before I noticed the slowness, but I can not remember what they might be. 
Yes, all the pages I have tried are slow. New updates to Ubuntu 17.10 did not have effect on the slowness.
Flags: needinfo?(osantanen)
It would probably be a step forward if you could also provide the contents of the about:support page - Open in a new tab about:support / Copy text to clipboard -> paste in a text doc, attach the text doc to the bug.
Note: The about:support might contain sensitive information like computer name, path to the profile, etc. so you might want to edit those out.

Following the above can you please try running firefox with a new profile? (see how to run with a new profile in comment 1). (purge and safe mode doesn't really reset the profile). I still think that the root cause of this slowness might be something in the profile.
Flags: needinfo?(osantanen)
After installing Firefox with "sudo apt-get install firefox" and creating a new test profile, Firefox started to load pages normally fast again as you suspected! Then I started that self-unpacked Firefox and it was also as fast as test profile. Then I re-started Firefox with default profile and it was slow again - and self-unpacked Firefox was also slow - Firefox seem to use the latest used profile. I have never made any changes to the default profile. Should I remove default profile after exporting bookmarks?

Here is the print from about:support (the print from Firefox that was myself unpacked from downloaded package using default profile) and under it the same about:support from Firefox using test profile. 

Ohjelman perustiedot
--------------------

Nimi: Firefox
Versio: 58.0.2
Koosteen tunniste: 20180206200532
Päivityskanava: release
Selaintunniste: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Käyttöjärjestelmä: Linux 4.13.0-32-generic
Useaa prosessia hyödyntäviä ikkunoita: 1/1 (Käytössä oletuksena)
Verkkosisällön prosesseja: 2/4
Stylo: content = true (käytössä oletuksena), chrome = false (pois käytöstä oletuksena)
Google-avain: Löytyy
Mozilla Location Service -avain: Löytyy
Vikasietotila: false

Kaatumisilmoitukset viimeisen 3 päivän aikana
---------------------------------------------

Kaikki kaatumisilmoitukset

Firefox-ominaisuudet
--------------------

Nimi: Activity Stream
Versio: 2018.01.04.0062-4997c81d
ID: activity-stream@mozilla.org

Nimi: Application Update Service Helper
Versio: 2.0
ID: aushelper@mozilla.org

Nimi: Firefox Screenshots
Versio: 25.0.0
ID: screenshots@mozilla.org

Nimi: Follow-on Search Telemetry
Versio: 0.9.6
ID: followonsearch@mozilla.com

Nimi: Form Autofill
Versio: 1.0
ID: formautofill@mozilla.org

Nimi: Photon onboarding
Versio: 1.0
ID: onboarding@mozilla.org

Nimi: Pocket
Versio: 1.0.5
ID: firefox@getpocket.com

Nimi: Shield Recipe Client
Versio: 76.1
ID: shield-recipe-client@mozilla.org

Nimi: Web Compat
Versio: 1.1
ID: webcompat@mozilla.org

Laajennukset
------------

Grafiikka
---------

Ominaisuudet
Koostaminen: Basic
Asynkroninen siirto/lähennys: rullaliittymä käytössä; vierityspalkin vastus käytössä; näppäimistö käytössä; automaattivieritys käytössä
WebGL 1 -ajurin WSI-tiedot: GLX 1.4 GLX_VENDOR(client): Mesa Project and SGI GLX_VENDOR(server): SGI Extensions: GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_create_context_robustness GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_import_context GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_profile GLX_MESA_copy_sub_buffer GLX_MESA_multithread_makecurrent GLX_MESA_query_renderer GLX_MESA_swap_control GLX_OML_swap_method GLX_OML_sync_control GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_EXT_texture_from_pixmap GLX_INTEL_swap_event GLX_EXT_buffer_age
WebGL 1 -ajurin mallintaja: Intel Open Source Technology Center -- Mesa DRI Intel(R) Haswell Mobile
WebGL 1 -ajurin versio: 3.0 Mesa 17.2.8
WebGL 1 -ajurin laajennukset: GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_APPLE_packed_pixels GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_APPLE_object_purgeable GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_texture_lod GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_texture_barrier GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_precision GL_ARB_texture_compression_bptc GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shader_image_load_store GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_shader_trinary_minmax GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_compute_shader GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_framebuffer_no_attachments GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_robust_buffer_access_behavior GL_ARB_shader_image_size GL_ARB_shader_storage_buffer_object GL_ARB_stencil_texturing GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_robustness GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_query_buffer_object GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_INTEL_performance_query GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_derivative_control GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_shader_texture_image_samples GL_ARB_texture_barrier GL_ARB_transform_feedback_overflow_query GL_EXT_polygon_offset_clamp GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_ARB_shader_atomic_counter_ops GL_ARB_shader_clock GL_EXT_shader_samples_identical GL_KHR_no_error GL_MESA_shader_integer_functions
WebGL 1 -laajennukset: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_frag_depth EXT_sRGB EXT_shader_texture_lod EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_etc WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context
WebGL 2 -ajurin WSI-tiedot: GLX 1.4 GLX_VENDOR(client): Mesa Project and SGI GLX_VENDOR(server): SGI Extensions: GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_create_context_robustness GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_import_context GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_profile GLX_MESA_copy_sub_buffer GLX_MESA_multithread_makecurrent GLX_MESA_query_renderer GLX_MESA_swap_control GLX_OML_swap_method GLX_OML_sync_control GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_EXT_texture_from_pixmap GLX_INTEL_swap_event GLX_EXT_buffer_age
WebGL 2 -ajurin mallintaja: Intel Open Source Technology Center -- Mesa DRI Intel(R) Haswell Mobile
WebGL 2 -ajurin versio: 4.5 (Core Profile) Mesa 17.2.8
WebGL 2 -ajurin laajennukset: GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_APPLE_object_purgeable GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_occlusion_query2 GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_sprite GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map_array GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ATI_blend_equation_separate GL_ATI_texture_float GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_sRGB GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_sRGB GL_EXT_texture_sRGB_decode GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_IBM_multimode_draw_arrays GL_INTEL_performance_query GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_NV_conditional_render GL_NV_depth_clamp GL_NV_packed_depth_stencil GL_NV_texture_barrier GL_OES_EGL_image GL_S3_s3tc
WebGL 2 -laajennukset: EXT_color_buffer_float EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_texture_float_linear WEBGL_compressed_texture_etc WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context
GPU #1
Aktiivinen: Kyllä
Kuvaus: Intel Open Source Technology Center -- Mesa DRI Intel(R) Haswell Mobile
Valmistajan tunnus: Intel Open Source Technology Center
Laitteen tunnus: Mesa DRI Intel(R) Haswell Mobile
Ajurin versio: 3.0 Mesa 17.2.8

Diagnostiikka
AzureCanvasAccelerated: 0
AzureCanvasBackend: skia
AzureContentBackend: skia
AzureFallbackCanvasBackend: none
CairoUseXRender: 0
Päätösloki
HW_COMPOSITING:
blocked by default: Acceleration blocked by platform
OPENGL_COMPOSITING:
unavailable by default: Hardware compositing is disabled
WEBRENDER:
opt-in by default: WebRender is an opt-in feature
unavailable by runtime: Build doesn't include WebRender
OMTP:
disabled by default: Disabled by default




Media
-----

Äänen taustajärjestelmä: pulse
Kanavia enintään: 2
Ensisijainen kanava-asettelu: stereo
Ensisijainen näytteenottotaajuus: 44100
Toistolaitteet
Nimi: Ryhmä
Sisäinen äänentoisto Digital Stereo (HDMI 2): /devices/pci0000:00/0000:00:03.0/sound/card0
Sisäinen äänentoisto Analoginen stereo: /devices/pci0000:00/0000:00:1b.0/sound/card1
Syöttölaitteet
Nimi: Ryhmä
Monitor of Sisäinen äänentoisto Digital Stereo (HDMI 2): /devices/pci0000:00/0000:00:03.0/sound/card0
Monitor of Sisäinen äänentoisto Analoginen stereo: /devices/pci0000:00/0000:00:1b.0/sound/card1
Sisäinen äänentoisto Analoginen stereo: /devices/pci0000:00/0000:00:1b.0/sound/card1

Tärkeät muutetut asetukset
--------------------------

browser.cache.disk.capacity: 358400
browser.cache.disk.filesystem_reported: 1
browser.cache.disk.smart_size.first_run: false
browser.cache.frecency_experiment: 1
browser.places.smartBookmarksVersion: 8
browser.sessionstore.upgradeBackup.latestBuildID: 20180206200532
browser.startup.homepage_override.buildID: 20180206200532
browser.startup.homepage_override.mstone: 58.0.2
browser.urlbar.timesBeforeHidingSuggestionsHint: 0
extensions.lastAppVersion: 58.0.2
media.gmp-gmpopenh264.abi: x86_64-gcc3
media.gmp-gmpopenh264.enabled: false
media.gmp-gmpopenh264.lastUpdate: 1517327896
media.gmp-gmpopenh264.version: 1.7.1
media.gmp-manager.buildID: 20180206200532
media.gmp-manager.lastCheck: 1518689733
media.gmp.storage.version.observed: 1
network.cookie.prefsMigrated: true
network.predictor.cleaned-up: true
places.database.lastMaintenance: 1518415627
places.history.expiration.transient_current_max_pages: 80572
plugin.disable_full_page_plugin_for_types: application/pdf
print.print_bgcolor: false
print.print_bgimages: false
print.print_duplex: 0
print.print_evenpages: true
print.print_in_color: true
print.print_margin_bottom: 0.5
print.print_margin_left: 0.5
print.print_margin_right: 0.5
print.print_margin_top: 0.5
print.print_oddpages: true
print.print_orientation: 0
print.print_page_delay: 50
print.print_paper_data: 0
print.print_paper_height: 11,69
print.print_paper_name: iso_a4
print.print_paper_size_unit: 0
print.print_paper_width: 8,27
print.print_scaling: 1,00
print.print_shrink_to_fit: true
print.print_to_file: false
print.print_unwriteable_margin_bottom: 56
print.print_unwriteable_margin_left: 25
print.print_unwriteable_margin_right: 25
print.print_unwriteable_margin_top: 25
security.disable_button.openDeviceManager: false
services.sync.declinedEngines:
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1517329582

Tärkeät lukitut asetukset
-------------------------

Places-tietokanta
-----------------

JavaScript
----------

Jatkuva roskienkeräys: true

Esteettömyystoiminnot
---------------------

Käytössä: false
Estä esteettömyystoiminnot: 0

Kirjastojen versiot
-------------------

NSPR
Odotettu minimiversio: 4.17
Käytössä oleva versio: 4.17

NSS
Odotettu minimiversio: 3.34.1
Käytössä oleva versio: 3.34.1

NSSSMIME
Odotettu minimiversio: 3.34.1
Käytössä oleva versio: 3.34.1

NSSSSL
Odotettu minimiversio: 3.34.1
Käytössä oleva versio: 3.34.1

NSSUTIL
Odotettu minimiversio: 3.34.1
Käytössä oleva versio: 3.34.1

Kokeelliset ominaisuudet
------------------------

Hiekkalaatikko
--------------

Seccomp-BPF (Järjestelmäkutsujen suodatus): true
Seccomp-säikeiden synkronointi: true
Käyttäjän nimiavaruudet: true
Sisältöprosessin suorittaminen hiekkalaatikossa: true
Medialiitännäisen suorittaminen hiekkalaatikossa: true
Sisältöprosessin hiekkalaatikkotaso: 3
Sisältöprosessin efektiivinen hiekkalaatikkotaso: 3

Hylätyt järjestelmäkutsut
-------------------------

Internationalisointi ja lokalisointi
------------------------------------

Sovelluksen asetukset
Pyydetyt localet: ["fi","en-US"]
Käytettävissä olevat localet: ["fi"]
Sovelluksen localet: ["fi"]
Alueasetukset: ["fi-FI"]
Oletuslocale: "fi"
Käyttöjärjestelmä
Järjestelmän localet: ["fi-FI"]
Alueasetukset: ["fi-FI"]

************************************************************* 
The same about:support print from newly installed Firefox after testing new profile
-
Flags: needinfo?(osantanen)
(In reply to olli from comment #11)
> Then I re-started Firefox with default profile and it was
> slow again - and self-unpacked Firefox was also slow - Firefox seem to use
> the latest used profile. I have never made any changes to the default
> profile. Should I remove default profile after exporting bookmarks?

The about:support data listed seems fine to me. However it is clear now that something in the profile is amiss and it's causing the slowness. It is possible that the profile might have got corrupted if for example you used the canonical version (which I would guess is an older version) or if you installed an add-on, or might also have happened if you just downgraded/upgraded/switched versions.

The easiest way would be to just import bookmarks and the rest of your data into the new profile and keep using that one. You could, ofc, delete the old profile. However, before you delete it, it would be of great help if you could remove all your personal data from it (delete bookmarks, history, logins), make sure that the slowness still reproduces, archive it and attach it to the bug or just email it to me if you do not feel comfortable attaching it to the bug. Having the profile would be enough in order to identify what exactly is wrong with it and make sure we address the problem.
Flags: needinfo?(osantanen)
Olli sent the profile to me. Thank you for the help. 

Unfortunately, using your profile, for me,  pages load as usual. I couldn't spot any anomaly related to the page loading, which by your report should be obvious. I am running Ubuntu 16.04 x64, relatively stock.

So, unfortunately, I have no other ideas how to debug this issue and since it does work locally on my machine, means we can't really reproduce the issue therefore we can't fix it. My guess, with the amount of current information, is that something in cache might be wrong related to your default profile and thus that could be the difference. 

Olli if you still have the profile around could you check the above assumption by searching for .cache/Mozilla and .mozilla/firefox -> renaming the chnea19o.default folder to something else (firefox closed) and then try to run again with the default profile. If my assumption is correct, then the problems should go away once renaming is done.

All in all, I don't believe we can progress any further with gathering actionable information. Lets reopen this bug if we figure something new that can be actionable.
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
Thanks for looking into this, Adrian!
I renamed both folders and tried to run firefox -P choosing default profile, but now pops up an alert window "Your Firefox profile can not be loaded. It may be missing or inaccessible."
Flags: needinfo?(osantanen)
I have got new information for the reason of the above slowness of page load. The slowness reappeared after I have installed a new security device PKCS#11 module /usr/lib64/libcryptoki.so (smart card reader) for certificate logging and restarted Firefox. When I removed this security device, the problem seemed at first to disappear, but actually persisted when I restarted Firefox. I am sure that I have had the same security device installed in Firefox when I have originally reported of the slowness of page load in February.
That's interesting. Indeed, it could be an issue.
There are a few things you could try. First, make sure the PKCS device is removed, and also make sure it's removed from about:preferences#privacy (Security Devices - Last button at the bottom)
Then restart your browser and check that the problem went away.

Then add the device back, so we can verify this is the cause.
Afterwards, we can try to get a profile, to see exactly which part of the code is the problem: https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Reporting_a_Performance_Problem
The security device DigiSign PKCS#11 Module was indeed in both settings and in about:preferences#privacy when Firefox slows down - I did not at first recognize that I have already reinstalled DigiSign PKCS#11 with the name New PKCS#11 Module. Ok, I removed "New PKCS#11 Module" and the slowness wanished. 
Then I tested if I could reproduce the problem with a completely new Firefox profile (test1-profile): the slowness started right away after installing DigiSign PKCS#11 Module and wanished after removing PKCS#11 Module and did not reappear after restarting of the profile. After reinstalling PKCS#11 Module the problem reappeared again. Now, after re-removing PKCS#11 Module the slowness wanished again from test1-profile.
The bug is reproducable at least in my Ubuntu laptop.
Status: RESOLVED → REOPENED
Component: Untriaged → Security: PSM
Ever confirmed: true
Product: Firefox → Core
Resolution: WORKSFORME → ---
Summary: Page load is very slow → Page load is very slow when using PKCS#11 modules
olli, can you try the steps in the link from comment 17 with the threads "ssl,necko" so we can try to get an idea of what exactly is so slow?
Flags: needinfo?(osantanen)
There are links to my slow test-profile with DigiSign PKCS#11 module installed. The page I loaded was in https-protocol and very slow. Hope you find something useful.
https://perfht.ml/2uqVoYU
https://perfht.ml/2zx3R2E
Flags: needinfo?(osantanen)
Thanks, olli. However, those profiles didn't capture any ssl threads or the networking thread, which is what I need to look at. So, if you could re-capture with the text box next to the label "Threads:" set to "ssl,necko", that would be great.
Flags: needinfo?(osantanen)
Actually that should be "ssl,socket".
Here is a new try to capture threads:
https://perfht.ml/2LGGpEX (ssl, necko)
https://perfht.ml/2LGosWU (ssl, necko)
https://perfht.ml/2uSvrT7 (ssl, socket)
Flags: needinfo?(osantanen)
Hmmm - the largest delays I'm seeing in those traces are from OCSP requests (you can set "security.OCSP.enabled" to 0 in about:config and see if that makes a difference). If you try with a more recent version of Firefox (e.g. 62 or 63, so Beta or Nightly - https://www.mozilla.org/en-US/firefox/channel/desktop/ ), is it still slow? Also it looks like the socket thread didn't get captured, which I think makes sense as the profiler wasn't able to capture that thread until relatively recently. Can you get another capture with a Beta or Nightly? Thanks!
Flags: needinfo?(osantanen)
https://perfht.ml/2uU3zxX (Test Profile: about:config -> "security.OCSP.enabled" to 0; pageload seems faster but is still quite slow)
https://perfht.ml/2LSKWRE (Firefox beta: no security module; fast)
https://perfht.ml/2LV3PDk (Firefox beta: with DigiSign PKCS#11 security module; as slow as Test Profile of older FF version)
Flags: needinfo?(osantanen)
Thanks. Unfortunately, none of those profiles have captured the socket thread. Can you try again with Beta and the PKCS#11 module loaded with just "socket" in the threads list? Also maybe try shift-refreshing a page while capturing the profile.
Flags: needinfo?(osantanen)
https://perfht.ml/2uVKvzC (Firefox beta: with DigiSign PKCS#11 security module; Threads: socket)
Flags: needinfo?(osantanen)
Awesome - it looks like there's some unexpected lock contention. I have an idea of what could be causing it, but to confirm, can you do whatever you did to produce that profile but with "socket,ssl,main" as the thread list? Thanks!
Flags: needinfo?(osantanen)
Great that something may be found. The first try to capture threads resulted to stopped mouse function, but after reboot the next tries were more successful...
https://perfht.ml/2M9hAPa (Firefox beta: with DigiSign PKCS#11 security module; Threads: socket,ssl,main; relatively fast pageload)
https://perfht.ml/2M67kqH (Firefox beta: with DigiSign PKCS#11 security module; Threads: socket,ssl,main; relatively fast pageload)
https://perfht.ml/2M6hQyj (Firefox beta: with DigiSign PKCS#11 security module; Threads: socket,ssl,main; relatively fast pageload)
https://perfht.ml/2M9u6Og (Firefox beta: with DigiSign PKCS#11 security module; Threads: socket,ssl,main; relatively fast pageload)
Flags: needinfo?(osantanen)
Well, those don't show the issue to quite the same degree as previous profiles, but it illustrates what could be the issue. Essentially, when there are PKCS#11 modules present, Firefox has to check if anything has changed about them before doing certain operations (e.g. finding a potential issuer certificate). The module in your profile, libcryptoki.so, appears to be sleeping for about 10ms every time we do this. For the most part we do this off the main thread, so it isn't that much of a problem by itself, but the way the implementation currently works, we also acquire a lock that can block other threads before doing this operation, which obviously means those threads can't do any work while we're waiting on whatever this module is doing. Luckily I believe we don't actually need to acquire that lock, so while we can't prevent loaded modules pausing the execution of any given thread, we can at least make it so other threads can continue.
Assignee: nobody → dkeeler
Priority: -- → P1
Summary: Page load is very slow when using PKCS#11 modules → don't hold the nsNSSComponent lock unnecessarily (e.g. in CheckForSmartCardChanges)
Whiteboard: [psm-assigned]
In some cases, nsNSSComponent functions were acquiring nsNSSComponent's mMutex
to check mNSSInitialized to see if it had been initialized. It turns out this is
unnecessary in some cases because those functions are only callable if
nsNSSComponent has been initialized. This fixes those instances and renames
'mNSSInitialized' to 'mNonIdempotentCleanupMustHappen' to make it clear exactly
what that boolean represents.
Comment on attachment 8996432 [details]
bug 1433409 - avoid acquiring nsNSSComponent.mMutex when we don't have to r?franziskus

Franziskus Kiefer [:fkiefer or :franziskus] has approved the revision.

https://phabricator.services.mozilla.com/D2577
Attachment #8996432 - Flags: review+
Pushed by dkeeler@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/da4d091b0d2f
avoid acquiring nsNSSComponent.mMutex when we don't have to r=franziskus
https://hg.mozilla.org/mozilla-central/rev/da4d091b0d2f
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Olli - if you download and run the latest Nightly from https://www.mozilla.org/en-US/firefox/channel/desktop/ is the performance improved?
Flags: needinfo?(osantanen)
Yes, I tested with Nightly and FF is definitely faster now - one try was relatively slow but it might be caused from other reasons. 
https://perfht.ml/2LWoBpv (Firefox beta 62.0b13: with DigiSign PKCS#11 security module; Threads: socket,ssl,main; relatively slow pageload)
https://perfht.ml/2LZ6fEh (Firefox beta 62.0b13: with DigiSign PKCS#11 security module; Threads: socket,ssl,main; fast pageload)
https://perfht.ml/2M4voO9 (Firefox beta 62.0b13: with DigiSign PKCS#11 security module; Threads: socket,ssl,main; fast pageload)
The problem seems to be resolved. Thanks!
Flags: needinfo?(osantanen)
You need to log in before you can comment on or make changes to this bug.