Bug 1139984 - Fix console API in child processes by ensuring windowID is correctly typed. r=bz

This commit is contained in:
Alexandre Poirot 2015-03-17 07:13:00 -04:00
parent d05757bf13
commit 9b74d49025
2 changed files with 4 additions and 4 deletions

View File

@ -1157,8 +1157,8 @@ Console::ProcessCallData(ConsoleCallData* aData)
event.mInnerID.Value().SetAsString() = aData->mInnerIDString;
} else {
MOZ_ASSERT(aData->mIDType == ConsoleCallData::eNumber);
event.mID.Value().SetAsUnsignedLong() = aData->mOuterIDNumber;
event.mInnerID.Value().SetAsUnsignedLong() = aData->mInnerIDNumber;
event.mID.Value().SetAsUnsignedLongLong() = aData->mOuterIDNumber;
event.mInnerID.Value().SetAsUnsignedLongLong() = aData->mInnerIDNumber;
}
event.mLevel = aData->mMethodString;

View File

@ -45,8 +45,8 @@ interface Console {
// This is used to propagate console events to the observers.
dictionary ConsoleEvent {
(unsigned long or DOMString) ID;
(unsigned long or DOMString) innerID;
(unsigned long long or DOMString) ID;
(unsigned long long or DOMString) innerID;
DOMString level = "";
DOMString filename = "";
unsigned long lineNumber = 0;