show running web workers on debugging in chrome

This commit is contained in:
Konstantin Ulitin
2016-01-18 18:35:39 +03:00
parent bdb8408b74
commit 23b7782b17
4 changed files with 6 additions and 2 deletions
@@ -45,4 +45,6 @@ interface Script : UserDataHolderEx {
val column: Int
val endLine: Int
val isWorker: Boolean
}
@@ -31,4 +31,6 @@ abstract class ScriptBase(override val type: Script.Type,
override var sourceMap: SourceMap? = null
override fun toString() = "[url=$url, lineRange=[$line;$endLine]]"
override val isWorker: Boolean = false
}
@@ -48,5 +48,5 @@ abstract class ScriptManagerBaseEx<SCRIPT : ScriptBase> : ScriptManagerBase<SCRI
return null
}
protected open fun rawUrlToOurUrl(rawUrl: String) = Urls.parseEncoded(rawUrl)!!
open fun rawUrlToOurUrl(rawUrl: String) = Urls.parseEncoded(rawUrl)!!
}
@@ -219,7 +219,7 @@ internal class Generator(outputDir: String, private val rootPackage: String, req
val READER_INTERFACE_NAME = "ProtocolResponseReader"
private fun isDomainSkipped(domain: ProtocolMetaModel.Domain): Boolean {
if (domain.domain() == "CSS" || domain.domain() == "Inspector") {
if (domain.domain() == "CSS" || domain.domain() == "Inspector" || domain.domain() == "Worker") {
return false
}