mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out 7dbbb6e3d240 (bug 832435) for assertion failures
This commit is contained in:
parent
2f946c4f2d
commit
d564033cc7
@ -165,7 +165,6 @@ _BROWSER_FILES = \
|
||||
browser_bug749738.js \
|
||||
browser_bug783614.js \
|
||||
browser_bug797677.js \
|
||||
browser_bug832435.js \
|
||||
browser_canonizeURL.js \
|
||||
browser_customize.js \
|
||||
browser_findbarClose.js \
|
||||
|
@ -1,19 +0,0 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
ok(true, "Starting up");
|
||||
|
||||
gBrowser.selectedBrowser.focus();
|
||||
gURLBar.addEventListener("focus", function onFocus() {
|
||||
gURLBar.removeEventListener("focus", onFocus);
|
||||
ok(true, "Invoked onfocus handler");
|
||||
EventUtils.synthesizeKey("VK_RETURN", { shiftKey: true });
|
||||
ok(true, "Evaluated without crashing");
|
||||
finish();
|
||||
});
|
||||
gURLBar.inputField.value = "javascript: document.body.innerHTML = '11111111'); ";
|
||||
gURLBar.focus();
|
||||
}
|
@ -1293,9 +1293,6 @@ nsJSContext::EvaluateString(const nsAString& aScript,
|
||||
pusher.Pop();
|
||||
ScriptEvaluated(true);
|
||||
|
||||
// Wrap the return value into whatever compartment mContext was in.
|
||||
if (!JS_WrapValue(mContext, aRetValue))
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -340,12 +340,6 @@ nsresult nsJSThunk::EvaluateScript(nsIChannel *aChannel,
|
||||
::JS_ReportPendingException(cx);
|
||||
}
|
||||
|
||||
// If we took the sandbox path above, v might be in the sandbox
|
||||
// compartment.
|
||||
if (!JS_WrapValue(cx, &v)) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
rv = NS_ERROR_MALFORMED_URI;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user