Closed
Bug 343508
Opened 18 years ago
Closed 15 years ago
Calling setProperty on a rule in a resource: stylesheet asserts "container didn't take ownership: 'Not Reached'"
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
People
(Reporter: jason.barnabe, Assigned: dbaron)
References
(Depends on 1 open bug)
Details
1. Open DOMI on any document. 2. Select the BODY element. 3. Switch the right side to the stylesheet view 4. Select the first rule (resource://gre/res/html.css) 5. Change margin-top to something else Result: WARNING: NS_ENSURE_TRUE(index != -1) failed: file /home/np/mozilla/layout/style/nsCSSStyleSheet.cpp, line 1082 ###!!! ASSERTION: container didn't take ownership: 'Not Reached', file /home/np/mozilla/layout/style/nsCSSStyleRule.cpp, line 977 ************************************************************ * Call to xpconnect wrapped JSObject produced this error: * [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMCSSStyleDeclaration.setProperty]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://inspector/content/viewers/styleRules/styleRules.js :: doTransaction :: line 596" data: no] ************************************************************ JavaScript error: , line 0: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMCSSStyleDeclaration.setProperty]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://inspector/content/viewers/styleRules/styleRules.js :: doTransaction :: line 596" data: no]
Comment 1•18 years ago
|
||
The problem is that this is a child sheet of a sheet that gets cloned. Editing those has Issues.
Depends on: 183348
Assignee | ||
Updated•17 years ago
|
Assignee: dbaron → nobody
QA Contact: ian → style-system
Comment 2•16 years ago
|
||
This code still needs to call EnsureUniqueInner to actually work, even with bug 183348 fixed.
Comment 3•15 years ago
|
||
Is the platform for this bug really x86 Linux or All All?
Assignee | ||
Updated•15 years ago
|
OS: Linux → All
Hardware: x86 → All
Assignee | ||
Comment 5•15 years ago
|
||
The UI for this now seems disabled, but I just verified very similar steps for bug 253354, so I think this is now fixed. That said, the UA sheet, scrollbars sheet, user content sheet, user chrome sheet, forms sheet, and sheets from the style sheet service still aren't cloned in DocumentViewerImpl::CreateStyleSet, so editing them affects all documents.
Assignee: nobody → dbaron
Status: NEW → RESOLVED
Closed: 15 years ago
Priority: -- → P3
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
You need to log in
before you can comment on or make changes to this bug.
Description
•