Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
torbutton
Commits
9c15f4a7
Commit
9c15f4a7
authored
Jan 15, 2013
by
Mike Perry
Browse files
Remove some JavaScript Debugger exception spam.
parent
71aa3e36
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/external-app-blocker.js
View file @
9c15f4a7
...
...
@@ -30,6 +30,7 @@ const kExternalInterfaces = ["nsIObserver", "nsIMIMEService",
const
kREAL_DRAG_CID
=
"
{8b5314bb-db01-11d2-96ce-0060b0fb9956}
"
;
const
kDragInterfaces
=
[
"
nsIDragService
"
];
//, "nsIDragSession"];
const
Cr
=
Components
.
results
;
const
Cc
=
Components
.
classes
;
...
...
@@ -81,12 +82,21 @@ ExternalWrapper.prototype =
return
this
;
}
try
{
var
external
=
this
.
_external
().
QueryInterface
(
iid
);
this
.
copyMethods
(
external
);
}
catch
(
e
)
{
/* We perform this explicit check first because otherwise
* the JSD exception logs are full of noise */
if
(
iid
.
equals
(
Components
.
interfaces
.
nsIDragService
)
||
iid
.
equals
(
Components
.
interfaces
.
nsIDragSession
)
)
{
var
drag
=
this
.
_drag
().
QueryInterface
(
iid
);
this
.
copyMethods
(
drag
);
}
else
{
try
{
var
external
=
this
.
_external
().
QueryInterface
(
iid
);
this
.
copyMethods
(
external
);
}
catch
(
e
)
{
this
.
logger
.
log
(
3
,
"
Drag+drop QI:
"
+
iid
);
var
drag
=
this
.
_drag
().
QueryInterface
(
iid
);
this
.
copyMethods
(
drag
);
}
}
return
this
;
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment