Last Comment Bug 728127 - use GetComputedStyle carefully
: use GetComputedStyle carefully
: access
Product: Core
Classification: Components
Component: Disability Access APIs (show other bugs)
: unspecified
: All All
-- normal (vote)
: mozilla13
Assigned To: alexander :surkov
: alexander :surkov
Depends on: 714579 727735 728907 731276 731287 735228
  Show dependency treegraph
Reported: 2012-02-16 21:57 PST by alexander :surkov
Modified: 2012-03-13 07:28 PDT (History)
0 users
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description User image alexander :surkov 2012-02-16 21:57:12 PST
rationally in bug 714579 comment 10:
getComputedStyle on an element in document D can lead to destruction of any presshell in the document tree containing document D.

that means getComputedStyle can destroy whole document accessible and if we are calling this method internally then we get into trouble. We can't check all code paths where getComputedStyle is used and add IsDefunct checks so we need to switch to non-flush version (general bug 728126). Now we're going to borrow layout code to make this (approach from bug 714579).

Note You need to log in before you can comment on or make changes to this bug.