Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
d15c7aa2
Commit
d15c7aa2
authored
May 04, 2016
by
Nick Stenning
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3263 from hypothesis/firefox-webextensions-build
Build Firefox WebExtensions during Travis builds
parents
6cfbadf4
34f40b4a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
.jshintrc
.jshintrc
+1
-1
discovery.coffee
h/static/scripts/discovery.coffee
+5
-1
No files found.
.jshintrc
View file @
d15c7aa2
...
...
@@ -12,7 +12,6 @@
"esnext": true,
"globals": {
"chrome": false,
"h": false,
"Promise": false,
"chai": false,
"sinon": false,
...
...
@@ -31,6 +30,7 @@
"assert",
"before",
"beforeEach",
"chrome",
"context",
"describe",
"it",
...
...
h/static/scripts/discovery.coffee
View file @
d15c7aa2
...
...
@@ -92,7 +92,11 @@ module.exports = class Discovery
#
# https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
#
if
origin
is
'null'
# When sending messages to or from a Firefox WebExtension, current
# versions of Firefox have a bug that causes the origin check to fail even
# though the target and actual origins of the message match.
if
origin
is
'null'
||
origin
.
match
(
'moz-extension:'
)
||
window
.
location
.
protocol
==
'moz-extension:'
origin
=
'*'
# Check if the message is at all related to our discovery mechanism
...
...
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