mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
bug 49116, javascript errors when doing edit in javascript window, r=waterson
This commit is contained in:
parent
631ed81066
commit
b0762e0beb
@ -86,7 +86,10 @@ function goPreferences(id, paneURL, paneID)
|
||||
|
||||
function okToCapture() {
|
||||
var capture = document.getElementById("menu_capture");
|
||||
if (!window._content.document) {
|
||||
if (!capture) {
|
||||
return;
|
||||
}
|
||||
if (!window._content || !window._content.document) {
|
||||
capture.setAttribute("disabled", "true");
|
||||
return;
|
||||
}
|
||||
@ -109,7 +112,10 @@ function okToCapture() {
|
||||
|
||||
function okToPrefill() {
|
||||
var prefill = document.getElementById("menu_prefill");
|
||||
if (!window._content.document) {
|
||||
if (!prefill) {
|
||||
return;
|
||||
}
|
||||
if (!window._content || !window._content.document) {
|
||||
prefill.setAttribute("disabled", "true");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user