mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 760882 - XBL Bindings appear in the debugger script dropdown if the debugger is open when the page is refreshed; r=rcampbell
This commit is contained in:
parent
2655e2afaf
commit
d8c8860a3c
@ -501,9 +501,7 @@ ThreadActor.prototype = {
|
||||
onScripts: function TA_onScripts(aRequest) {
|
||||
// Get the script list from the debugger.
|
||||
for (let s of this.dbg.findScripts()) {
|
||||
if (s.url.indexOf("chrome://") != 0) {
|
||||
this._addScript(s);
|
||||
}
|
||||
this._addScript(s);
|
||||
}
|
||||
// Build the cache.
|
||||
let scripts = [];
|
||||
@ -917,6 +915,10 @@ ThreadActor.prototype = {
|
||||
* The source script that will be stored.
|
||||
*/
|
||||
_addScript: function TA__addScript(aScript) {
|
||||
// Ignore XBL bindings for content debugging.
|
||||
if (aScript.url.indexOf("chrome://") == 0) {
|
||||
return;
|
||||
}
|
||||
// Use a sparse array for storing the scripts for each URL in order to
|
||||
// optimize retrieval.
|
||||
if (!this._scripts[aScript.url]) {
|
||||
|
Loading…
Reference in New Issue
Block a user