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)

defect

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]
The problem is that this is a child sheet of a sheet that gets cloned.  Editing those has Issues.
Depends on: 183348
Blocks: 354082
Assignee: dbaron → nobody
QA Contact: ian → style-system
Blocks: 429080
This code still needs to call EnsureUniqueInner to actually work, even with bug 183348 fixed.
Is the platform for this bug really x86 Linux or All All?
OS: Linux → All
Hardware: x86 → All
Fixing bug 536379 should fix this.
Depends on: 536379
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
No longer blocks: 429080
You need to log in before you can comment on or make changes to this bug.