mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1085446 - Allow chrome and about sources in tabs. r=past
This commit is contained in:
parent
3448cbe760
commit
887c5cd706
@ -2121,21 +2121,7 @@ ThreadActor.prototype = {
|
||||
* @returns true, if the script can be added, false otherwise.
|
||||
*/
|
||||
_allowSource: function (aSource) {
|
||||
let url = getSourceURL(aSource);
|
||||
|
||||
if (isHiddenSource(aSource)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Ignore XBL bindings for content debugging.
|
||||
if (url && url.indexOf("chrome://") == 0) {
|
||||
return false;
|
||||
}
|
||||
// Ignore about:* pages for content debugging.
|
||||
if (url && url.indexOf("about:") == 0) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return !isHiddenSource(aSource);
|
||||
},
|
||||
|
||||
/**
|
||||
@ -5201,16 +5187,7 @@ update(ChromeDebuggerActor.prototype, {
|
||||
constructor: ChromeDebuggerActor,
|
||||
|
||||
// A constant prefix that will be used to form the actor ID by the server.
|
||||
actorPrefix: "chromeDebugger",
|
||||
|
||||
/**
|
||||
* Override the eligibility check for scripts and sources to make sure every
|
||||
* script and source with a URL is stored when debugging chrome.
|
||||
*/
|
||||
|
||||
_allowSource: function(aSource) {
|
||||
return !isHiddenSource(aSource);
|
||||
}
|
||||
actorPrefix: "chromeDebugger"
|
||||
});
|
||||
|
||||
exports.ChromeDebuggerActor = ChromeDebuggerActor;
|
||||
|
Loading…
Reference in New Issue
Block a user