Disabling CSS animation causes error in element inspector

Discussions about the development and maturation of the platform code (UXP).
Warning: may contain highly-technical topics.

Moderators: trava90, athenian200

gabrgv
Moon lover
Moon lover
Posts: 82
Joined: 2023-10-28, 18:59

Disabling CSS animation causes error in element inspector

Post by gabrgv » 2025-09-30, 23:03

Setting the pref layout.css.animation.enabled to false causes the element inspector (Right click > Inspect Element) to show a blank page.

I know nothing about troubleshooting info, but that’s what the Browser Console said:

Code: Select all

Exception {  }  
protocol.js:906
Protocol error (unknownError): Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [inIDOMUtils.getCSSValuesForProperty]  
Promise-backend.js:934
Affects both Basilisk and Pale Moon with clean profiles.
Off-topic:
Is this the right board?
Edit: More info below

I’m on Devuan GNU+Linux Daedalus (64 bit), using Nuck-TH’s AVX2 GTK2 build for Pale Moon, and official GTK2 for Basilisk.

Launching from a terminal window I get this message:

Code: Select all

console.error: 
  Message: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [inIDOMUtils.getCSSValuesForProperty]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js :: generateCssProperties/< :: line 64"  data: no]
  Stack:
    generateCssProperties/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:64:27
generateCssProperties@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:54:17
getCSSDatabase@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:32:24
handler@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:1042:35
onPacket@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/main.js:1745:58
receiveMessage@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/transport/transport.js:761:18

generateCssProperties/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:64:27
generateCssProperties@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:54:17
getCSSDatabase@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:32:24
handler@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:1042:35
onPacket@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/main.js:1745:58
receiveMessage@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/transport/transport.js:761:18
console.error: 
  Protocol error (unknownError): Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [inIDOMUtils.getCSSValuesForProperty]

jarsealer
Apollo supporter
Apollo supporter
Posts: 32
Joined: 2025-08-03, 23:56

Re: Disabling CSS animation causes error in element inspector

Post by jarsealer » 2025-10-06, 13:18

Can confirm this happens on PM 33.9.0.1 (GTK 3)

Terminal output:

Code: Select all

console.error: 
  Message: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [inIDOMUtils.getCSSValuesForProperty]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js :: generateCssProperties/< :: line 64"  data: no]
  Stack:
    generateCssProperties/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:64:27
generateCssProperties@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:54:17
getCSSDatabase@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:32:24
handler@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:1042:35
onPacket@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/main.js:1745:58
receiveMessage@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/transport/transport.js:761:18

generateCssProperties/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:64:27
generateCssProperties@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:54:17
getCSSDatabase@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/css-properties.js:32:24
handler@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:1042:35
onPacket@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/main.js:1745:58
receiveMessage@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/transport/transport.js:761:18
console.error: 
  Protocol error (unknownError): Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [inIDOMUtils.getCSSValuesForProperty]
Pale Moon and Basilisk aarch64 user, on Raspberry Pi 5 (8 GB RAM)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38378
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Disabling CSS animation causes error in element inspector

Post by Moonchild » 2025-10-06, 15:54

Moved to platform development as it would affect any browser building on UXP with devtools.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

gabrgv
Moon lover
Moon lover
Posts: 82
Joined: 2023-10-28, 18:59

Re: Disabling CSS animation causes error in element inspector

Post by gabrgv » 2025-10-15, 18:35

Same thing setting layout.css.transition.enabled to false.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38378
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Disabling CSS animation causes error in element inspector

Post by Moonchild » 2025-10-15, 20:11

"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite