Closed
Bug 386939
Opened 17 years ago
Closed 17 years ago
[FIX]"ASSERTION: no user stylesheets in styleset, but we have one!" when removing frames from frameset
Categories
(Core :: Layout, defect, P3)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: bzbarsky)
References
Details
(Keywords: assertion, regression, testcase)
Attachments
(4 files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
Loading the testcase triggers: ###!!! ASSERTION: no user stylesheets in styleset, but we have one!: 'numBefore > 0', file /Users/jruderman/trunk/mozilla/layout/base/nsPresShell.cpp, line 1824 This is a regression from within the last few days.
Reporter | ||
Comment 1•17 years ago
|
||
Reporter | ||
Comment 2•17 years ago
|
||
This assertion is triggered when loading http://online.wsj.com/public/us.
Comment 3•17 years ago
|
||
reproducible in winxp/linux as well and #6 in a recent top site run with over 1300 occurrences.
OS: Mac OS X → All
Comment 4•17 years ago
|
||
It's one of the more visible assertions in Mochitest runs in debug builds, too; I don't have access to a machine to determine which test(s) cause it.
Assignee | ||
Comment 5•17 years ago
|
||
This is a regression from bug 310165. The problem is that setting up the pref stylesheet fails if there is non-chrome script on the JS stack, because presshell uses the CSSOM API to set it up, and we added security checks to those calls (in particular to InsertRule). We can either push null JSContexts on the stack in a bunch of places in presshell and in nsMathMLFrame, or we need to add a non-scriptable version of InsertRule that skips the security check. David, do you have a preference? Oh, and this bug can easily lead to pages without the pref stylesheet applied, so I think we need to block on it.
Blocks: 310165
Component: Layout: HTML Frames → Layout
Flags: blocking1.9?
QA Contact: layout.html-frames → layout
Comment 6•17 years ago
|
||
I don't have a preference, other than whichever seems simpler and more maintainable.
Flags: blocking1.9? → blocking1.9+
Priority: -- → P3
Assignee | ||
Comment 7•17 years ago
|
||
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•17 years ago
|
||
Attachment #288927 -
Flags: superreview?(dbaron)
Attachment #288927 -
Flags: review?(dbaron)
Assignee | ||
Updated•17 years ago
|
Summary: "ASSERTION: no user stylesheets in styleset, but we have one!" when removing frames from frameset → [FIX]"ASSERTION: no user stylesheets in styleset, but we have one!" when removing frames from frameset
Comment 9•17 years ago
|
||
Comment on attachment 288927 [details] [diff] [review] Same as diff -w r+sr=dbaron. Should the InsertRule security check be changed to fail if there's nothing on the context stack?
Attachment #288927 -
Flags: superreview?(dbaron)
Attachment #288927 -
Flags: superreview+
Attachment #288927 -
Flags: review?(dbaron)
Attachment #288927 -
Flags: review+
Assignee | ||
Comment 10•17 years ago
|
||
You mean so that these things won't randomly work sometimes and randomly fail at other times? That seems like a good idea. I'll make that change before checking in.
Assignee | ||
Comment 11•17 years ago
|
||
Assignee | ||
Comment 12•17 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•