mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Bug 738649 - Incorrect return value check in nsHTMLDocument::EditingStateChanged; r=khuey
This commit is contained in:
parent
e29edd2e13
commit
45a106cae1
@ -2681,8 +2681,8 @@ nsHTMLDocument::EditingStateChanged()
|
||||
rv = LoadChromeSheetSync(uri, true, getter_AddRefs(sheet));
|
||||
NS_ENSURE_TRUE(sheet, rv);
|
||||
|
||||
rv = agentSheets.AppendObject(sheet);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
bool result = agentSheets.AppendObject(sheet);
|
||||
NS_ENSURE_TRUE(result, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
// Should we update the editable state of all the nodes in the document? We
|
||||
// need to do this when the designMode value changes, as that overrides
|
||||
@ -2695,8 +2695,8 @@ nsHTMLDocument::EditingStateChanged()
|
||||
rv = LoadChromeSheetSync(uri, true, getter_AddRefs(sheet));
|
||||
NS_ENSURE_TRUE(sheet, rv);
|
||||
|
||||
rv = agentSheets.AppendObject(sheet);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
result = agentSheets.AppendObject(sheet);
|
||||
NS_ENSURE_TRUE(result, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
// Disable scripting and plugins.
|
||||
rv = editSession->DisableJSAndPlugins(window);
|
||||
|
Loading…
x
Reference in New Issue
Block a user