Open Bug 763131 Opened 12 years ago Updated 2 years ago

large performance hit when applying custom css to tabbrowser

Categories

(Firefox :: Tabbed Browser, defect)

15 Branch
x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: yamiravko, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0
Build ID: 20120605113340

Steps to reproduce:

Install Vertical Tabs extension
Install Stylish or User Style Manager extension

apply following css:

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

/*removes tab borders*/
.tabbrowser-tabs
  .tabbrowser-tab:not([selected="true"]),
.tabbrowser-tabs
  .tabbrowser-tab[selected="true"] {
	-moz-border-top-colors: transparent transparent !important;
	-moz-border-bottom-colors: transparent transparent !important;
}


Actual results:

Firefox 15.0a2 and 16.0
The css works as expected but the tab bar becomes much less responsive.  Hover states take longer to catch up to the mouse.  Closing and opening a new tab seems to take three or four times as long.  __This behavior does not exist in 14.0__


Expected results:

No change in tab bar performance.
Component: Untriaged → Tabbed Browser
I'll confirm a huge negative change in behavior between /SeaMonkey/ 2.11a (aka FF 14) & 2.12a (aka FF 15, current Aurora) with the following userChrome.css :
 
 
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Change color of active tab */
tab{
   -moz-appearance: none !important;
   }
tab[selected="true"] {
   background-color: rgb(0,255,0) !important;
   color: black !important;
   }
 
 
This caused a huge (lets say 3-second) delay when switching windows, in addition to prolonged & irregular load from Session Restore.

Now I do have a few windows/tabs (690 tabs across 60 groups in 60 windows), so maybe it is more apparent for me then it might be for others.
 
 
(This was not particularly apparent in FF 15.  In SeaMonkey, the entire tab is colored, green in the case here, where in FF there only appeared a very slight green bar a the top of the tab.)
I'll note that I NOT seeing this everywhere (every computer).

Where I noted this was with:
> Win7 x64, AMD (ATI) Radeon HD 6450, Intel i5-750, 12 GB RAM

The computer I am on now, with the same basic Profile runs flawlessly:
> XP x86, NVIDIA GeForce4 MX 440, Intel E4300, 2 GB RAM
 
 
Likewise, ColorfulTabs affected the Win7 computer & not my XP computer.
And again FF 15 seemed unaffected by ColorfulTabs.

https://addons.mozilla.org/en-US/firefox/addon/colorfultabs/
 
 
So perhaps video (card/driver) related?
(I'll see if I can try an NVIDIA 6200 LE on my Win7 this evening.)
 
 
Perhaps my issue is different from yamiravko's?
 
 
My XP:
Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120617 Firefox/15.0a2 SeaMonkey/2.12a2
Build identifier: 20120617013002
Built from http://hg.mozilla.org/releases/mozilla-aurora/rev/787d44019d72
(This is going to be ugly :hint:)
 
 
 
  Application Basics

        Name
        SeaMonkey

        Version
        2.12a2

        User Agent
        Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120617 Firefox/15.0a2 SeaMonkey/2.12a2

        Profile Folder

          Show Folder

        Enabled Plugins

          about:plugins

        Build Configuration

          about:buildconfig

        Crash Reports

          about:crashes

        Memory Use

          about:memory

  Extensions

        Name

        Version

        Enabled

        ID

        Adblock Plus
        2.0.3
        true
        {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}

        ChatZilla
        0.9.88.2
        true
        {59c81df5-4b7a-477b-912d-4e0fdf64e5f2}

        Copy URL +
        1.3.2
        true
        {F78DC607-BB30-4e13-9E47-2C2E162E9094}

        DOM Inspector
        2.0.13pre
        true
        inspector@mozilla.org

        Fetch Text URL
        1.6.4
        true
        {5B700FEA-FF2A-4746-BB2D-9D26A8EB056D}

        FlashGot
        1.4.6rc1
        true
        {19503e42-ca3c-4c27-b1e2-9cdb2170ee34}

        Image Zoom
        0.4.6.1mod
        true
        {1A2D0EC4-75F5-4c91-89C4-3656F6E44B68}

        JavaScript Debugger
        0.9.89
        true
        {f13b157f-b174-47e7-a34d-4815ddfdfeb8}

        JSView
        2.0.8
        true
        {cf15270e-cf08-4def-b4ea-6a5ac23f3bca}

        Named anchors
        0.3.2
        true
        {1b8bc8ac-acc1-461d-bc65-ca7614223dd8}

        NoScript
        2.4.7rc2
        true
        {73a6fe31-595d-460b-a920-fcc0f8843232}

        Nuke Anything Enhanced
        1.0.2
        true
        {1ced4832-f06e-413f-aa14-9eb63ad40ace}

        SeaMonkey Debug and QA UI
        1.0pre
        true
        debugQA@mozilla.org

        Tab Stats
        0.0.3
        true
        tabstats@glandium.org

  Important Modified Preferences

      Name

      Value

        browser.cache.disk.capacity
        1048576

        browser.cache.disk.smart_size.first_run
        false

        browser.cache.disk.smart_size_cached_value
        389120

        browser.display.focus_ring_width
        3

        browser.fixup.alternate.enabled
        false

        browser.places.smartBookmarksVersion
        3

        browser.sessionstore.max_concurrent_tabs
        0

        browser.startup.homepage_override.mstone
        rv:15.0

        browser.tabs.loadInBackground
        true

        browser.tabs.opentabfor.middleclick
        true

        browser.tabs.opentabfor.urlbar
        true

        browser.tabs.tabMinWidth
        30

        browser.tabs.tooltippreview.width
        600

        extensions.checkCompatibility
        false

        extensions.checkCompatibility.2.1
        false
        ...
        extensions.checkCompatibility.2.13a
        false
        extensions.checkCompatibility.2.13b
        false

        extensions.checkCompatibility.nightly
        false

        extensions.lastAppVersion
        2.12a2

        gfx.blacklist.suggested-driver-version
        257.21

        javascript.options.mem.log
        true

        layers.prefer-d3d9
        true

        network.cookie.prefsMigrated
        true

        network.http.pipelining
        true

        network.protocol-handler.external.mailto
        true

        places.database.lastMaintenance
        1340035563

        places.history.expiration.transient_current_max_pages
        51031

        places.history.expiration.transient_optimal_database_size
        85867068

        plugin.expose_full_path
        true

        print.print_printer
        Xerox DocuPrint P12

        privacy.item.downloads
        false

        privacy.item.formdata
        false

        privacy.item.history
        false

        privacy.item.urlbar
        false

        privacy.popups.remove_blacklist
        false

        security.enable_java
        false

  Graphics

        Adapter Description
        NVIDIA GeForce4 MX 440 with AGP8X (Microsoft Corporation)

        Vendor ID
        0x10de

        Device ID
        0x0181

        Adapter RAM
        Unknown

        Adapter Drivers
        nv4_disp

        Driver Version
        5.6.7.3

        Driver Date
        4-7-2004

        WebGL Renderer
        Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.

        GPU Accelerated Windows
        0. Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.

  JavaScript

        Incremental GC
        1

  Library Versions

        Expected minimum version

        Version in use

        NSPR
        4.9.1
        4.9.1

        NSS
        3.13.5.0 Basic ECC
        3.13.5.0 Basic ECC

        NSS Util
        3.13.5.0
        3.13.5.0

        NSS SSL
        3.13.5.0 Basic ECC
        3.13.5.0 Basic ECC

        NSS S/MIME
        3.13.5.0 Basic ECC
        3.13.5.0 Basic ECC
Attached file about:support
about:support from Win 7 x64 machine.
(I learned.)
> So perhaps video (card/driver) related?
> (I'll see if I can try an NVIDIA 6200 LE on my Win7 this evening.)

Night & day.
No problems with the NVIDIA, much problems with the ATI/AMD.
 
 
Diff between above (Comment 4 attachment) about:support & Win7 with the NDVIDIA:


  Graphics

        Adapter Description
        NVIDIA GeForce 6200 LE (Microsoft Corporation - WDDM)

        Vendor ID
        0x10de

        Device ID
        0x0163

        Adapter RAM
        256

        Adapter Drivers
        nvd3dumx,nvd3dum nvwgf2umx, nvwgf2um

        Driver Version
        8.15.11.8593

        Driver Date
        5-14-2009

        Direct2D Enabled
        Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.

        DirectWrite Enabled
        false (6.1.7601.17789)

        ClearType Parameters
        Gamma: 2200 Pixel Structure: RGB ClearType Level: 100 Enhanced Contrast: 200

        WebGL Renderer
        Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.

        GPU Accelerated Windows
        0. Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
 
 
Suggestions (other then switching cards again, which I have switched back to the ATI ;-) ).
Attached file about:support
about:support from Win 7 x64 machine, "fixed".
NOTE:  gfx.direct2d.disabled;true
 
 
***************
*** 236,240 ****
  
-         gfx.direct2d.disabled
-         true
- 
          gfx.direct3d.prefer_10_1
--- 241,242 ----
***************
*** 293,298 ****
          Direct2D Enabled
!         false
  
          DirectWrite Enabled
!         false (6.1.7601.17789)
  
--- 295,300 ----
          Direct2D Enabled
!         true
  
          DirectWrite Enabled
!         true (6.1.7601.17789)
  
***************
*** 305,307 ****
          GPU Accelerated Windows
!         60/60 Direct3D 9
  
--- 307,312 ----
          GPU Accelerated Windows
!         60/60 Direct3D 10
! 
!         AzureBackend
!         direct2d
Possible DUP ?

Bug 765290 - Direct2D acceleration blits/copies whole window on every draw
I may have not been too clear.

I put my original ATI Video card back in, set the pref;  gfx.direct2d.disabled;true  & now my Win7 computer with the ATI Video card is working just fine.
(In reply to therube from comment #8)
> I may have not been too clear.
> 
> I put my original ATI Video card back in, set the pref; 
> gfx.direct2d.disabled;true  & now my Win7 computer with the ATI Video card
> is working just fine.

I can also confirm that disabling direct2d fixes this problem.  Thanks therube!
Another test:

Install Tree Style Tab (this extension applies its own css to the tabbar).  With direct2d enabled, Nightly is very slow in seemingly all tab operations.  Disable direct2d and things work great.
I no longer have the machine I filed this bug with.  Nevertheless, it did seem to be an issue with direct2d and older video cards.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: