Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
bc2c18b7
Unverified
Commit
bc2c18b7
authored
Sep 20, 2019
by
Liana Husikyan
Committed by
GitHub
Sep 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2352 from ethereum/webworker
firefox restriction removed
parents
f57feeab
25d3409e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
compilerContainer.js
src/app/tabs/compileTab/compilerContainer.js
+6
-2
verifyContracts.js
test-browser/commands/verifyContracts.js
+4
-1
No files found.
src/app/tabs/compileTab/compilerContainer.js
View file @
bc2c18b7
...
...
@@ -319,8 +319,8 @@ class CompilerContainer {
}
url
=
`
${
this
.
data
.
baseurl
}
/
${
this
.
data
.
selectedVersion
}
`
}
const
isFirefox
=
typeof
InstallTrigger
!==
'undefined'
if
(
document
.
location
.
protocol
!==
'file:'
&&
Worker
!==
undefined
&&
isFirefox
)
{
// Check if browser is compatible with web worker
if
(
this
.
browserSupportWorker
)
{
// Workers cannot load js on "file:"-URLs and we get a
// "Uncaught RangeError: Maximum call stack size exceeded" error on Chromium,
// resort to non-worker version in that case.
...
...
@@ -374,6 +374,10 @@ class CompilerContainer {
this
.
data
.
compileTimeout
=
window
.
setTimeout
(()
=>
this
.
compileIfAutoCompileOn
(),
this
.
data
.
timeout
)
}
browserSupportWorker
()
{
return
document
.
location
.
protocol
!==
'file:'
&&
Worker
!==
undefined
}
}
module
.
exports
=
CompilerContainer
test-browser/commands/verifyContracts.js
View file @
bc2c18b7
...
...
@@ -13,7 +13,10 @@ class VerifyContracts extends EventEmitter {
}
function
getCompiledContracts
(
browser
,
callback
)
{
browser
.
clickLaunchIcon
(
'solidity'
).
execute
(
function
()
{
browser
.
clickLaunchIcon
(
'solidity'
)
.
waitForElementPresent
(
'#compileTabView select#compiledContracts option'
)
.
execute
(
function
()
{
var
contracts
=
document
.
querySelectorAll
(
'#compileTabView select#compiledContracts option'
)
if
(
!
contracts
)
{
return
null
...
...
Write
Preview
Markdown
is supported
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