]> git.proxmox.com Git - mirror_novnc.git/log
mirror_novnc.git
7 years agoUncomment ES6 module syntax
Solly Ross [Sat, 4 Feb 2017 04:17:44 +0000 (23:17 -0500)]
Uncomment ES6 module syntax

This removes the special comment part of the ES6 module syntax,
opting to enable ES6 module syntax by default.

It also appends `.js` to all import paths to better support in-browser
loading.

7 years agoFix typos in imports and i18n
Solly Ross [Sat, 4 Feb 2017 04:12:53 +0000 (23:12 -0500)]
Fix typos in imports and i18n

`app/ui.js` had an incorrect import path which caused issues
when using the ES6 and/or CommonJS builds of noVNC.

`core/util.js` had a non-strict-compatible declaration of a variable
without a `let` or `var` (it now uses `let`).

This fixes both issues.

7 years agoMerge branch 'settingswhileconnected' of https://github.com/samhed/noVNC
Samuel Mannehed [Fri, 24 Feb 2017 14:42:27 +0000 (15:42 +0100)]
Merge branch 'settingswhileconnected' of https://github.com/samhed/noVNC

Closes pull request #778

7 years agoMerge branch 'disableLabels' of https://github.com/samhed/noVNC
Samuel Mannehed [Fri, 24 Feb 2017 14:13:09 +0000 (15:13 +0100)]
Merge branch 'disableLabels' of https://github.com/samhed/noVNC

Closes pull request #776

7 years agoRemove 512x512 icon
Pierre Ossman [Thu, 23 Feb 2017 15:29:16 +0000 (16:29 +0100)]
Remove 512x512 icon

It is not a launcher icon, but rather used for display on Google
Play. As such it is not needed and removing it mitigates the issue
of some buggy browsers downloading each and every listed icon.

7 years agoProtect against race in setCapture() polyfill
Pierre Ossman [Thu, 23 Feb 2017 13:26:50 +0000 (14:26 +0100)]
Protect against race in setCapture() polyfill

It might take a long time for a timer to fire, long enough for a
new grab to be initiated. Clearing out the capture element would
then cause a crash.

7 years agoDisable labels for settings as well
Samuel Mannehed [Fri, 17 Feb 2017 15:16:29 +0000 (16:16 +0100)]
Disable labels for settings as well

Makes the settings UI easier to read.

7 years agoSet input type number for port & reconnect_delay
Samuel Mannehed [Fri, 17 Feb 2017 14:17:50 +0000 (15:17 +0100)]
Set input type number for port & reconnect_delay

7 years agoFix wrong colours on local cursor
Pierre Ossman [Mon, 20 Feb 2017 15:44:54 +0000 (16:44 +0100)]
Fix wrong colours on local cursor

The RGB order was backwards compared to the pixel format we've
requested, resulting in the red and blue channels getting swapped.

7 years agoAllow local cursor to be changed while connected
Samuel Mannehed [Sun, 19 Feb 2017 00:52:47 +0000 (01:52 +0100)]
Allow local cursor to be changed while connected

7 years agoAllow auto reconnect to be changed while connected
Samuel Mannehed [Sat, 18 Feb 2017 21:01:12 +0000 (22:01 +0100)]
Allow auto reconnect to be changed while connected

7 years agoAllow view_only to be changed while connected
Samuel Mannehed [Sat, 18 Feb 2017 19:43:25 +0000 (20:43 +0100)]
Allow view_only to be changed while connected

7 years agoDon't send or recieve clipboard in view_only
Samuel Mannehed [Sat, 18 Feb 2017 19:39:57 +0000 (20:39 +0100)]
Don't send or recieve clipboard in view_only

7 years agoAllow clipping to be changed while connected
Samuel Mannehed [Sat, 18 Feb 2017 15:30:35 +0000 (16:30 +0100)]
Allow clipping to be changed while connected

7 years agoFix translateDOM for placeholders
Samuel Mannehed [Fri, 17 Feb 2017 11:43:59 +0000 (12:43 +0100)]
Fix translateDOM for placeholders

Replaced 'in' with a comma, like in the surrounding code.

7 years agoProper workaround for Chrome's scrollbar bug
Pierre Ossman [Thu, 16 Feb 2017 15:28:55 +0000 (16:28 +0100)]
Proper workaround for Chrome's scrollbar bug

Avoid applying this workaround more than necessary. Also comment a
bit more why this hack is needed.

7 years agoUpdate drag button at right time
Samuel Mannehed [Thu, 16 Feb 2017 14:53:48 +0000 (15:53 +0100)]
Update drag button at right time

It needs to update whenever the viewport or clipping changes, so
let's make sure that actually happens and not trigger on mildly
related events.

7 years agoUpdate clipping before changing scaling
Samuel Mannehed [Thu, 16 Feb 2017 14:38:58 +0000 (15:38 +0100)]
Update clipping before changing scaling

The scaling is relative the current viewport, so we need to make
sure it is correct before changing the scale setting.

7 years agoDon't change stored setting when "forcing"
Samuel Mannehed [Thu, 16 Feb 2017 14:37:55 +0000 (15:37 +0100)]
Don't change stored setting when "forcing"

Don't overwrite the user's configured choice. Instead ignore
settings when they cannot be respected.

7 years agoFix status class for IE
Samuel Mannehed [Thu, 16 Feb 2017 14:24:53 +0000 (15:24 +0100)]
Fix status class for IE

IE apparently doesn't support removing several class specifiers at
once, so switch to several calls.

7 years agoAllow scroll bars on Safari and IE
Samuel Mannehed [Thu, 16 Feb 2017 14:14:08 +0000 (15:14 +0100)]
Allow scroll bars on Safari and IE

The previous problems were because we were scrolling the wrong element,
so we can enable this feature now.

7 years agoFix canvas size on IE
Samuel Mannehed [Thu, 16 Feb 2017 13:48:34 +0000 (14:48 +0100)]
Fix canvas size on IE

7 years agoProperly encapsulate the scale in Display
Samuel Mannehed [Thu, 16 Feb 2017 12:32:11 +0000 (13:32 +0100)]
Properly encapsulate the scale in Display

Other parts of the code shouldn't have to care about this. Let Display
convert between canvas coordinates and framebuffer coordinates.

7 years agoSet correct cursor style for setCapture()
Samuel Mannehed [Thu, 16 Feb 2017 12:25:34 +0000 (13:25 +0100)]
Set correct cursor style for setCapture()

7 years agoRemove return value from event handlers
Samuel Mannehed [Thu, 16 Feb 2017 09:52:18 +0000 (10:52 +0100)]
Remove return value from event handlers

It's not used in modern event handlers.

7 years agoStop using window.event
Samuel Mannehed [Thu, 16 Feb 2017 09:48:56 +0000 (10:48 +0100)]
Stop using window.event

It's an old propriatary IE thing that isn't necessary.

7 years agoRemove Util.getEventPosition()
Samuel Mannehed [Thu, 16 Feb 2017 09:43:32 +0000 (10:43 +0100)]
Remove Util.getEventPosition()

It mostly dealt with scrolling which we don't use. It also made mistakes
in some cases. Remove it and compute the coordinates directly in the
calling code.

7 years agoClean up some mouse workarounds
Samuel Mannehed [Tue, 14 Feb 2017 15:22:56 +0000 (16:22 +0100)]
Clean up some mouse workarounds

Adds comments that clarifies why they are needed. Also narrows the
handler for contextmenu a bit.

7 years agoImprove setCapture polyfill
Samuel Mannehed [Tue, 14 Feb 2017 15:20:18 +0000 (16:20 +0100)]
Improve setCapture polyfill

Fix some corner cases.

Fixes issue #773

7 years agoFix tests after changing auth negotiation
Pierre Ossman [Mon, 13 Feb 2017 14:00:32 +0000 (15:00 +0100)]
Fix tests after changing auth negotiation

PhantomJS has a very basic implementation of Uint8Array, so we
need to help it out a bit.

7 years agoBetter selection of auth type
Pierre Ossman [Mon, 13 Feb 2017 12:58:10 +0000 (13:58 +0100)]
Better selection of auth type

If no authentication is required then we should pick the None
option to avoid bothering the user.

7 years agoFix resize on Chrome
Samuel Mannehed [Fri, 10 Feb 2017 15:39:18 +0000 (16:39 +0100)]
Fix resize on Chrome

Chrome sucks at calculating the size and gets confused due to the
scrollbars. Hide the scroll bars while resizing.

7 years agoImprove check for when to ignore mouse events
Pierre Ossman [Thu, 9 Feb 2017 15:02:58 +0000 (16:02 +0100)]
Improve check for when to ignore mouse events

The browser tells us which element was under the cursor, so we don't
have to calculate it ourselves.

7 years agoUse setCapture() polyfill everywhere
Pierre Ossman [Thu, 9 Feb 2017 14:51:22 +0000 (15:51 +0100)]
Use setCapture() polyfill everywhere

This makes sure we get consistent behaviour across all browsers.

7 years agoMore aggressive retaining of focus
Pierre Ossman [Thu, 9 Feb 2017 13:20:37 +0000 (14:20 +0100)]
More aggressive retaining of focus

Try to keep the virtual keyboard up even more. Only release focus
when it is absolutely necessary.

7 years agoExpect console.debug(), not console.log(), in test
Pierre Ossman [Tue, 7 Feb 2017 15:44:16 +0000 (16:44 +0100)]
Expect console.debug(), not console.log(), in test

We use the more specific function now, even though it is usually an
alias.

7 years agoMerge branch 'util-console' of https://github.com/tghw/noVNC
Pierre Ossman [Tue, 7 Feb 2017 15:37:58 +0000 (16:37 +0100)]
Merge branch 'util-console' of https://github.com/tghw/noVNC

7 years agoTweak spinner appearence
Pierre Ossman [Tue, 7 Feb 2017 15:09:10 +0000 (16:09 +0100)]
Tweak spinner appearence

Change the look of the "busy" spinner a bit. It's mostly used for
connection stuff, so give it a more data flow feel. Also bling it
up a bit with some fading. Perty sells. :)

7 years agoRemove binary protocol tests
Pierre Ossman [Fri, 3 Feb 2017 16:16:02 +0000 (17:16 +0100)]
Remove binary protocol tests

We require standard adherence now, so remove tests that assume
the old system.

7 years agoRemove buffer limit tests
Pierre Ossman [Fri, 3 Feb 2017 16:15:27 +0000 (17:15 +0100)]
Remove buffer limit tests

We no longer limit writes to the socket.

7 years agoDon't delay WebSocket flushing
Pierre Ossman [Fri, 3 Feb 2017 16:11:39 +0000 (17:11 +0100)]
Don't delay WebSocket flushing

The native WebSocket is in a much better position to do queue
management than us. We also failed to check the return value and
set up a timer, causing stalls.

This gets us in sync with websockify as of 40238b00.

7 years agoAllow submitting the password from the input field
Pierre Ossman [Fri, 3 Feb 2017 12:19:15 +0000 (13:19 +0100)]
Allow submitting the password from the input field

7 years agoScroll correct element
Pierre Ossman [Fri, 3 Feb 2017 12:17:43 +0000 (13:17 +0100)]
Scroll correct element

The element we want scrolling around is noVNC_screen, not the entire
window. This also allows us to compute the screen size without
fiddling the scrollbars on and off.

7 years agoAvoid changing scale unless necessary
Pierre Ossman [Fri, 3 Feb 2017 11:00:13 +0000 (12:00 +0100)]
Avoid changing scale unless necessary

It causes the browser to redo the layout needlessly otherwise,
having annoying effects like moving the scroll position.

7 years agoMerge display scale changes
Pierre Ossman [Fri, 3 Feb 2017 10:56:02 +0000 (11:56 +0100)]
Merge display scale changes

7 years agoMove keyboard style in CSS
Pierre Ossman [Fri, 3 Feb 2017 10:44:24 +0000 (11:44 +0100)]
Move keyboard style in CSS

Put it so it matches where it is in the HTML.

7 years agoCenter canvas (again)
Pierre Ossman [Fri, 3 Feb 2017 10:43:17 +0000 (11:43 +0100)]
Center canvas (again)

The previous attempt could leave parts of the canvas outside the
document, making it impossible to reach. Use a safer method as
recommended by Mozilla.

7 years agoMerge pull request #762 from novnc/saveimmediately
Samuel Mannehed [Mon, 30 Jan 2017 12:02:49 +0000 (13:02 +0100)]
Merge pull request #762 from novnc/saveimmediately

Save settings immediately

7 years agoAllow resize setting to be changed while connected
Samuel Mannehed [Mon, 23 Jan 2017 14:37:04 +0000 (15:37 +0100)]
Allow resize setting to be changed while connected

There is no reason to why this shouldn't be possible.

7 years agoSeparate init functions from event handling setup
Samuel Mannehed [Mon, 23 Jan 2017 13:54:31 +0000 (14:54 +0100)]
Separate init functions from event handling setup

Adds a new section for all functions that add event handlers.

7 years agoRename function for adding resize handlers
Samuel Mannehed [Mon, 23 Jan 2017 13:53:12 +0000 (14:53 +0100)]
Rename function for adding resize handlers

Moves the one handler for the status out of the function as well. It
didn't fit in with the function's old name either.

7 years agoRename and move init function for fullscreen
Samuel Mannehed [Mon, 23 Jan 2017 12:25:55 +0000 (13:25 +0100)]
Rename and move init function for fullscreen

7 years agoSave settings immediately
Samuel Mannehed [Mon, 23 Jan 2017 11:20:45 +0000 (12:20 +0100)]
Save settings immediately

Retire the old settingsApply. This also allows UI logic to check the
state of things using the settings instead of having to look at the
values of HTML elements (we couldn't be sure if the changes were
applied yet or not).

7 years agoRemove unused toggleConnectPanel function
Samuel Mannehed [Mon, 23 Jan 2017 11:16:01 +0000 (12:16 +0100)]
Remove unused toggleConnectPanel function

7 years agoAdd UI wrapper for Webutil.init_logging
Samuel Mannehed [Mon, 23 Jan 2017 11:15:09 +0000 (12:15 +0100)]
Add UI wrapper for Webutil.init_logging

7 years agoMerge branch 'add-reconnect' of https://github.com/fd0/noVNC
Pierre Ossman [Mon, 23 Jan 2017 12:47:57 +0000 (13:47 +0100)]
Merge branch 'add-reconnect' of https://github.com/fd0/noVNC

7 years agoAdd reconnect option
Alexander Neumann [Wed, 11 Jan 2017 14:08:56 +0000 (15:08 +0100)]
Add reconnect option

Add an option to automatically reconnect after a delay when the
connection is closed.

Closes #746

7 years agoSet pointer cursor for status bar
Pierre Ossman [Fri, 20 Jan 2017 09:11:16 +0000 (10:11 +0100)]
Set pointer cursor for status bar

It can be dismissed by clicking on it, so hint this by setting the
pointer cursor type.

7 years agoReplace TigerVNC with MobileVNC
Samuel Mannehed [Thu, 19 Jan 2017 12:45:06 +0000 (13:45 +0100)]
Replace TigerVNC with MobileVNC

TigerVNC doesn't have a built in websocket proxy

7 years agoFix global error handler
Pierre Ossman [Wed, 18 Jan 2017 14:59:31 +0000 (15:59 +0100)]
Fix global error handler

It stopped working when we switched to textContent as it relies
on being able to add new HTML elements. Do things properly by
adding new elements via createElement().

7 years agoFix screenshot URL's
Samuel Mannehed [Sat, 14 Jan 2017 10:45:28 +0000 (11:45 +0100)]
Fix screenshot URL's

7 years agoChange server example
Samuel Mannehed [Sat, 14 Jan 2017 10:42:03 +0000 (11:42 +0100)]
Change server example

Replaced PocketVNC with TigerVNC since the PocketVNC url was broken and the project isn't active anymore.

7 years agoUpdate to new organization urls
Samuel Mannehed [Sat, 14 Jan 2017 10:33:36 +0000 (11:33 +0100)]
Update to new organization urls

7 years agoUse textContent instead of innerHTML
Solly Ross [Thu, 12 Jan 2017 16:43:35 +0000 (11:43 -0500)]
Use textContent instead of innerHTML

Previously, setting `innerHTML` was used to display the statuses.  These
could include content communicated from the remote VNC server, allowing
the remove VNC server to inject HTML into the noVNC page.

This commit switches all uses of `innerHTML` to use `textContent`, which
is not vulnerable to the HTML injection.

7 years agoAdd Pierre Ossman to core team
Samuel Mannehed [Thu, 12 Jan 2017 08:38:23 +0000 (09:38 +0100)]
Add Pierre Ossman to core team

7 years agoFix rfb._cleanup() (#743)
Samuel Mannehed [Mon, 9 Jan 2017 11:49:10 +0000 (12:49 +0100)]
Fix rfb._cleanup() (#743)

We don't have to check for _display or context here since this is a
private function which is never called under such circumstances. This
solves problems caused by display.get_context() which was previously
removed in e549ae074fcea9febde32c0fa260a64c15cc1b8e.

7 years agoMerge pull request #715 from CendioOssman/cleanup
Solly Ross [Fri, 6 Jan 2017 19:08:59 +0000 (14:08 -0500)]
Merge pull request #715 from CendioOssman/cleanup

Cleanup of settings (amongst other things)

7 years agoAvoid wrapping labels
Pierre Ossman [Tue, 15 Nov 2016 14:44:49 +0000 (15:44 +0100)]
Avoid wrapping labels

7 years agoClean up z index ordering
Pierre Ossman [Mon, 14 Nov 2016 16:17:05 +0000 (17:17 +0100)]
Clean up z index ordering

We have enough layers now that we need to have some system for this.
E.g. make sure that dialogs during connect show up in front of the
blocking transition layer.

7 years agoMake connect button more prominent
Pierre Ossman [Sat, 29 Oct 2016 15:58:34 +0000 (17:58 +0200)]
Make connect button more prominent

It's generally the only thing the user needs to click on, so make
sure it clearly stands out.

7 years agoRemove connect dialog
Pierre Ossman [Sat, 29 Oct 2016 15:58:34 +0000 (17:58 +0200)]
Remove connect dialog

It only contained a password field, which might not be needed, and
is handled by a separate dialog if it is.

7 years agoRemove vendor prefix from border-radius
Pierre Ossman [Sat, 29 Oct 2016 15:39:22 +0000 (17:39 +0200)]
Remove vendor prefix from border-radius

It's been standardised for quite some time, so remove the extra
noise in the CSS.

7 years agoGroup rarely changed settings together
Pierre Ossman [Sat, 29 Oct 2016 15:37:09 +0000 (17:37 +0200)]
Group rarely changed settings together

7 years agoGroup WebSocket settings together
Pierre Ossman [Sat, 29 Oct 2016 15:25:32 +0000 (17:25 +0200)]
Group WebSocket settings together

It was easy to confuse them as being VNC settings, so keep them all
under one group.

7 years agoRemove alternative style sheets
Pierre Ossman [Sun, 30 Oct 2016 20:36:54 +0000 (21:36 +0100)]
Remove alternative style sheets

Anyone with basic knowledge of CSS will easily figure out how to
customise the appearance of the UI, so remove the burden of having
to maintain these extra style sheets.

7 years agoRemove unused token setting
Pierre Ossman [Sat, 29 Oct 2016 14:04:13 +0000 (16:04 +0200)]
Remove unused token setting

7 years agoCenter canvas vertically as well
Pierre Ossman [Sun, 30 Oct 2016 20:32:35 +0000 (21:32 +0100)]
Center canvas vertically as well

7 years agoBlack out background when connected
Pierre Ossman [Sat, 29 Oct 2016 14:02:35 +0000 (16:02 +0200)]
Black out background when connected

7 years agoFix no auth "this._updateState" bug
Lee-Feng [Tue, 20 Dec 2016 07:37:31 +0000 (15:37 +0800)]
Fix no auth "this._updateState" bug

Fixes #735

7 years agoMerge pull request #699 from CendioOssman/double
Samuel Mannehed [Tue, 13 Dec 2016 11:42:22 +0000 (12:42 +0100)]
Merge pull request #699 from CendioOssman/double

Display double buffering

7 years agoClean up viewport handling
Pierre Ossman [Fri, 11 Nov 2016 14:32:11 +0000 (15:32 +0100)]
Clean up viewport handling

Make sure the viewport is properly updated when necessary, on respects
given restrictions.

7 years agoRemove max dimension handling
Pierre Ossman [Fri, 11 Nov 2016 13:29:03 +0000 (14:29 +0100)]
Remove max dimension handling

The viewport handling is now a lot clearer, so simply limit the size
of the viewport in the caller rather than having this extra layer
of checks.

7 years agoPrevent access to sensitive display variables
Pierre Ossman [Fri, 11 Nov 2016 13:01:42 +0000 (14:01 +0100)]
Prevent access to sensitive display variables

These should not be directly accessed. Instead use drawing operation
and Display.resize().

7 years agoDouble buffering damage tracking
Pierre Ossman [Tue, 25 Oct 2016 14:58:24 +0000 (16:58 +0200)]
Double buffering damage tracking

Optimise the copy from the hidden canvas to the visible one a bit
by only copying the modified area.

7 years agoUse double buffering for the display
Pierre Ossman [Tue, 25 Oct 2016 14:58:21 +0000 (16:58 +0200)]
Use double buffering for the display

Do all rendering to a hidden canvas and then copy over the finished
frame to the visible canvas once everything is done. This simplifies
things and solves some bugs as we can retain a copy of the entire
frame buffer.

7 years agoUpdate all state on session size change
Pierre Ossman [Thu, 24 Nov 2016 11:36:15 +0000 (12:36 +0100)]
Update all state on session size change

7 years agoDon't violate Display abstraction
Pierre Ossman [Sat, 29 Oct 2016 13:24:22 +0000 (15:24 +0200)]
Don't violate Display abstraction

Use the normal API as much as possible instead of poking around in
internals that might change.

7 years agoAdd test for Display.flush()
Pierre Ossman [Sat, 29 Oct 2016 13:01:56 +0000 (15:01 +0200)]
Add test for Display.flush()

7 years agoRemove blitStringImage() in favour of imageRect()
Pierre Ossman [Sat, 29 Oct 2016 13:00:22 +0000 (15:00 +0200)]
Remove blitStringImage() in favour of imageRect()

The latter is more generic and can easily be modified for other
mechanisms in the future.

7 years agoFlush out rendering after each performance test
Pierre Ossman [Mon, 24 Oct 2016 15:57:51 +0000 (17:57 +0200)]
Flush out rendering after each performance test

There might be operations pending in the render queue. Make sure
these are fully handled before we consider the test run over.

7 years agoRun performance tests at full speed
Pierre Ossman [Mon, 24 Oct 2016 15:37:21 +0000 (17:37 +0200)]
Run performance tests at full speed

setTimeout() is subject to delays, possible massive ones. As such it
is rather useless for performance sensitive code. Use the non-standard
setImmediate() API instead, emulating it on postMessage() when it
isn't available.

7 years agoMerge pull request #727 from CendioOssman/travis
Samuel Mannehed [Thu, 1 Dec 2016 09:43:35 +0000 (10:43 +0100)]
Merge pull request #727 from CendioOssman/travis

Fix travis tests

7 years agoSkip language tests on broken browsers
Pierre Ossman [Tue, 29 Nov 2016 15:06:20 +0000 (16:06 +0100)]
Skip language tests on broken browsers

The hacks needed to run these tests require proper handling of
properties. Unfortunately IE and old versions of Chrome mess up,
so just skip the tests there.

7 years agoUpdate test platforms
Pierre Ossman [Tue, 29 Nov 2016 13:48:34 +0000 (14:48 +0100)]
Update test platforms

Test on the latest version of everything, as new versions are
coming out constantly. Also add some missing combinations.

7 years agoMerge pull request #725 from CendioOssman/rightbar
Samuel Mannehed [Tue, 29 Nov 2016 12:23:02 +0000 (13:23 +0100)]
Merge pull request #725 from CendioOssman/rightbar

Allow control bar to be moved to the right side

7 years agoFix translation util tests
Samuel Mannehed [Mon, 28 Nov 2016 15:11:47 +0000 (16:11 +0100)]
Fix translation util tests

We have to temporarily replace window.navigator due to the fact that
its property languages is read-only. The tests for the translation
utilities require different values of this property. The failing tests
were added in merge of PR #718 (in commit
f5bf2d84ef1bae02dfaff068de7565664a00fba3).

7 years agoRemove duplicate line
Samuel Mannehed [Mon, 28 Nov 2016 15:11:03 +0000 (16:11 +0100)]
Remove duplicate line

7 years agoClear UI.connected state variable right away
Samuel Mannehed [Mon, 28 Nov 2016 11:36:29 +0000 (12:36 +0100)]
Clear UI.connected state variable right away

Keeping it set for the disconnecting state was causing an issue where
the controlbar could be hidden without any way to open it, when a
session disconnects too quickly.

7 years agoFurther fixes for fallback error handler
Samuel Mannehed [Mon, 28 Nov 2016 11:33:42 +0000 (12:33 +0100)]
Further fixes for fallback error handler

Layout improvements as well as an check for ErrorEvent.error as it is
not standardized.

7 years agoFix fallback error handling
Samuel Mannehed [Mon, 28 Nov 2016 09:02:13 +0000 (10:02 +0100)]
Fix fallback error handling

Start using the correct API for window.addEventListener('error',..).
Unlike when using onerror, the handler function gets an event.