olymosi / tabgroupsmanager

Automatically exported from code.google.com/p/tabgroupsmanager
0 stars 0 forks source link

NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS - setTabValue #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bug 996053 is landed - make nsISessionStore's setTabValue, setWindowValue and 
setGlobalValue take arbitrary JS values but throw for non-strings, for 
consistency with SessionStore.jsm

Result:
NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS
[JavaScript Error: "setTabValue only accepts string values" {file: 
"resource:///modules/sessionstore/SessionStore.jsm" line: 1779}]'[JavaScript 
Error: "setTabValue only accepts string values" {file: 
"resource:///modules/sessionstore/SessionStore.jsm" line: 1779}]' when calling 
method: [nsISessionStore::setTabValue]

File: undefined
Line: 2912
Stack:
undefined

the lines can differ due various fixes in my tabgroupmanager.js, but its always 
setTabValue() in relation to group id:
2912
3471
1121

Solution:
convert the 3rd parameter with .toString()

Original issue reported on code.google.com by micha.go...@arcor.de on 20 Jun 2014 at 8:12

GoogleCodeExporter commented 9 years ago
Hi micha, thank you so much for reporting the issue and giving some clues about 
it. It would be really nice if we could check your version and sharing your 
fixes here.

Gonna release new testing version 003 with some session fixes, ty.

Original comment by tabgroup...@gmail.com on 20 Aug 2014 at 10:49

GoogleCodeExporter commented 9 years ago

Original comment by micha.go...@arcor.de on 21 Oct 2014 at 4:47

GoogleCodeExporter commented 9 years ago
Thank you micha, this was your fix Im closing the issue :)

Original comment by miguelro...@gmail.com on 21 Oct 2014 at 6:49