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

--HG--
extra : rebase_source : cadf747b30735e845e15f7a6f4a30bcae591f4e0
This commit is contained in:
Alexandre Poirot 2015-03-17 07:13:00 -04:00
Родитель 7774d591e4
Коммит b47e33bec1
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;