mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 823736 - include.js must stringify objects going to userland js. r=benadida
This commit is contained in:
parent
0c6c027935
commit
bf807a48d5
@ -98,6 +98,7 @@ function doInternalWatch() {
|
||||
function doInternalRequest() {
|
||||
log("doInternalRequest:", options && isLoaded);
|
||||
if (options && isLoaded) {
|
||||
var stringifiedOptions = JSON.stringify(options);
|
||||
content.wrappedJSObject.BrowserID.internal.get(
|
||||
options.origin,
|
||||
function(assertion, internalParams) {
|
||||
@ -110,7 +111,7 @@ function doInternalRequest() {
|
||||
}
|
||||
closeIdentityDialog();
|
||||
},
|
||||
options);
|
||||
stringifiedOptions);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -206,7 +206,7 @@ function test_options_pass_through() {
|
||||
let randomMixedParams = {
|
||||
loggedInUser: "juanita@mozilla.com",
|
||||
forceAuthentication: true,
|
||||
issuer: "https://foo.com",
|
||||
forceIssuer: "foo.com",
|
||||
someThing: {
|
||||
name: "Pertelote",
|
||||
legs: 4,
|
||||
|
Loading…
Reference in New Issue
Block a user