The default bug view has changed. See this FAQ.

Remove NS_NewCSSStyleSheet

RESOLVED FIXED in mozilla17

Status

()

Core
CSS Parsing and Computation
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Tracking

Trunk
mozilla17
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
Created attachment 645698 [details] [diff] [review]
Patch v1
Attachment #645698 - Flags: review?(dbaron)
Comment on attachment 645698 [details] [diff] [review]
Patch v1

>-nsresult
>-NS_NewCSSStyleSheet(nsCSSStyleSheet** aInstancePtrResult)
>-{
>-  *aInstancePtrResult = nsnull;
>-  nsCSSStyleSheet  *it = new nsCSSStyleSheet();
>-
>-  if (!it) {
>-    return NS_ERROR_OUT_OF_MEMORY;
>-  }
>-
>-  NS_ADDREF(it);
>-
>-  if (!it->mInner || !it->mInner->mPrincipal) {
>-    NS_RELEASE(it);
>-    return NS_ERROR_OUT_OF_MEMORY;
>-  }
>-  
>-  *aInstancePtrResult = it;
>-  return NS_OK;
>-}

Because of the it->mInner->mPrincipal check here, you need to change nsCSSStyleSheetInner::nsCSSStyleSheetInner to NS_RUNTIMEABORT if mPrincipal is null after the do_CreateInstance call.

r=dbaron with that
Attachment #645698 - Flags: review?(dbaron) → review+
(Assignee)

Updated

5 years ago
Assignee: nobody → Ms2ger
(Assignee)

Comment 2

5 years ago
https://hg.mozilla.org/mozilla-central/rev/dc145011431f
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Backed out with the mass tree revert to get rid of the OS X M5 orange:
https://hg.mozilla.org/mozilla-central/rev/c801b99d726f
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
https://hg.mozilla.org/integration/mozilla-inbound/rev/4027e2283d98
Flags: in-testsuite-
https://hg.mozilla.org/mozilla-central/rev/4027e2283d98
Status: REOPENED → RESOLVED
Last Resolved: 5 years ago5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.