]> git.proxmox.com Git - mirror_novnc.git/log
mirror_novnc.git
7 years agoRemove browser engine detection
Pierre Ossman [Thu, 4 May 2017 12:52:05 +0000 (14:52 +0200)]
Remove browser engine detection

It is out of date and not used anyway.

7 years agoSkip some keyboard tests on IE and Edge
Pierre Ossman [Thu, 4 May 2017 11:26:39 +0000 (13:26 +0200)]
Skip some keyboard tests on IE and Edge

IE and Edge has some broken behaviour for keyboard events that
prevent the standard tests from running properly.

7 years agoMerge branch 'png_cursor' of https://github.com/CendioOssman/noVNC
Pierre Ossman [Thu, 4 May 2017 11:13:02 +0000 (13:13 +0200)]
Merge branch 'png_cursor' of https://github.com/CendioOssman/noVNC

7 years agoMerge branch 'keyboard' of https://github.com/CendioOssman/noVNC
Pierre Ossman [Thu, 4 May 2017 10:18:55 +0000 (12:18 +0200)]
Merge branch 'keyboard' of https://github.com/CendioOssman/noVNC

7 years agoError.error can be null in some cases
Pierre Ossman [Thu, 13 Apr 2017 12:49:42 +0000 (14:49 +0200)]
Error.error can be null in some cases

7 years agoUse KeyboardEvent.key too look up keysyms
Pierre Ossman [Thu, 13 Apr 2017 12:50:55 +0000 (14:50 +0200)]
Use KeyboardEvent.key too look up keysyms

And emulate it on browsers where it is missing or incorrect. This
makes the code more future oriented as it primarily uses the standardised
fields.

7 years agoHandle CapsLock on macOS
Pierre Ossman [Thu, 4 May 2017 09:52:40 +0000 (11:52 +0200)]
Handle CapsLock on macOS

Modifiers behave a bit oddly on macOS, causing weird CapsLock events
to be sent by the browsers.

7 years agoClean up AltGraph handling
Pierre Ossman [Fri, 27 Jan 2017 11:52:24 +0000 (12:52 +0100)]
Clean up AltGraph handling

It doesn't need to be this general as the issue is mostly about
Windows. Also use the same modifier shuffle that RealVNC and
TigerVNC uses to get macOS working well.

7 years agoSimplify pressed key handling
Pierre Ossman [Fri, 27 Jan 2017 11:26:55 +0000 (12:26 +0100)]
Simplify pressed key handling

Prefer avoid having the server simulate multiple key presses by
refusing to use multiple keysyms for the same physical key.

7 years agoSimplify handling of keypress
Pierre Ossman [Fri, 27 Jan 2017 11:24:20 +0000 (12:24 +0100)]
Simplify handling of keypress

Use a dedicated variable to track a two stage key rather than
piggy-backing on the key state array.

7 years agoMove keyboard handling in to Keyboard class
Pierre Ossman [Fri, 27 Jan 2017 09:36:10 +0000 (10:36 +0100)]
Move keyboard handling in to Keyboard class

Replace the multi stage pipeline system with something simpler.
That level of abstraction is not needed.

7 years agoRemove modifier synchronisation
Pierre Ossman [Fri, 27 Jan 2017 09:49:04 +0000 (10:49 +0100)]
Remove modifier synchronisation

The fields provided cannot tell us if it is the left or right
version of the key that's pressed, so they are inherently unreliable.
It is also not a huge problem in practice as we'll get in sync on
the next press or release of the modifier.

7 years agoRemove QEMU key event handler
Pierre Ossman [Thu, 26 Jan 2017 17:20:19 +0000 (18:20 +0100)]
Remove QEMU key event handler

The normal event handler provides all the necessary information
now, so it is no longer needed.

7 years agoSimplify keyboard event API
Pierre Ossman [Thu, 26 Jan 2017 17:09:40 +0000 (18:09 +0100)]
Simplify keyboard event API

No need for an object for three static fields.

7 years agoSend keyboard events from single place
Pierre Ossman [Thu, 26 Jan 2017 16:59:25 +0000 (17:59 +0100)]
Send keyboard events from single place

This makes it easier to handle any needed variations, like different
types of messages.

7 years agoImprove lookup of special keys
Pierre Ossman [Tue, 24 Jan 2017 16:18:43 +0000 (17:18 +0100)]
Improve lookup of special keys

Look up keys that are independent of layout and state first,
followed by keys that are only mild variations in layouts.
This is more robust as there might be multiple physical keys
generating the same symbols, and Keysyms don't map directly to
Unicode in all cases.

At the same time switch over to using the modern, standardised
'code' field for lookup.

7 years agoImprove character keysym lookup
Pierre Ossman [Wed, 25 Jan 2017 10:29:08 +0000 (11:29 +0100)]
Improve character keysym lookup

Use the more modern 'key' field, and remove some legacy fallbacks
that are no longer required. This also removes the "stall" mechanism
as it is not needed with current browsers.

7 years agoUse standard DOM identifiers for physical keys
Pierre Ossman [Tue, 24 Jan 2017 14:16:10 +0000 (15:16 +0100)]
Use standard DOM identifiers for physical keys

7 years agoMerge pull request #817 from univention/master
Samuel Mannehed [Wed, 3 May 2017 11:57:23 +0000 (13:57 +0200)]
Merge pull request #817 from univention/master

Remove double unescaping of title

7 years agoRemove double unescaping of title
Philipp Hahn [Wed, 3 May 2017 10:01:05 +0000 (12:01 +0200)]
Remove double unescaping of title

Commit fa5b334dcbe7a5dab21580b54cc2f5f142600379 by Joel Martin changed
getQueryVal() to always decode the value using decodeURIComponent(), but
unescape() is still used for extracting the title, leading to
double-unescaping.

As unescape() is deprecated anyway, remove the last user.

Cc: Joel Martin <github@martintribe.org>
Cc: Anthony Young <sleepsonthefloor@gmail.com>
7 years agoOnly load ES6 module loader polyfill if needed
Pierre Ossman [Fri, 28 Apr 2017 12:38:59 +0000 (14:38 +0200)]
Only load ES6 module loader polyfill if needed

Safari now has native support for modules, so we need to make sure
we only load our polyfill when actually needed.

7 years agoFix panning test for high DPI devices
Samuel Mannehed [Fri, 21 Apr 2017 13:23:18 +0000 (15:23 +0200)]
Fix panning test for high DPI devices

There is a drag-threshold in the panning code which the tests didn't
account for. This caused the tests to fail when window.devicePixelRatio
was higher than 1.

7 years agoAdd Pierre as contributor in package.json
Samuel Mannehed [Wed, 19 Apr 2017 13:34:16 +0000 (15:34 +0200)]
Add Pierre as contributor in package.json

7 years agoUpdate url's
Samuel Mannehed [Wed, 19 Apr 2017 13:33:42 +0000 (15:33 +0200)]
Update url's

7 years agoProperly restore the default style
Samuel Mannehed [Tue, 11 Apr 2017 08:53:06 +0000 (10:53 +0200)]
Properly restore the default style

Setting a style to null does restore it in FF, Chrome, Safari and Edge.
But it does not work in Internet Explorer. The proper way to restore to
default values is to set it to the empty string. This works in all
browsers. Fixes issue #808.

7 years agoFixed the issue where novnc can't be relocated
Soichi Hayashi [Mon, 3 Apr 2017 16:31:19 +0000 (16:31 +0000)]
Fixed the issue where novnc can't be relocated

7 years agoAlways send mouseUp events properly
Samuel Mannehed [Wed, 5 Apr 2017 12:00:59 +0000 (14:00 +0200)]
Always send mouseUp events properly

If down is false we can't just toggle the current internal state, even
though this is correct most of the time. There are cases where we don't
get the down event and thus won't have a correct internal state. For
example, when clicking in the session after using the clipboard
textarea.

If down is false, we always want to send a mouse event with the button
in 'up'-state.

7 years agoMerge pull request #801 from CendioOssman/errors
Samuel Mannehed [Mon, 3 Apr 2017 06:18:48 +0000 (08:18 +0200)]
Merge pull request #801 from CendioOssman/errors

Improve fallback error handler

7 years agoGenerate source map for ES module loader rollup
Pierre Ossman [Thu, 2 Mar 2017 14:49:43 +0000 (15:49 +0100)]
Generate source map for ES module loader rollup

Makes it easier to debug things as you get the original source and
proper line numbers.

7 years agoHandle uncaught WebWorker exceptions
Pierre Ossman [Thu, 2 Mar 2017 14:48:47 +0000 (15:48 +0100)]
Handle uncaught WebWorker exceptions

7 years agoTry to populate error location on Promise errors
Pierre Ossman [Thu, 2 Mar 2017 14:48:13 +0000 (15:48 +0100)]
Try to populate error location on Promise errors

7 years agoOnly use unhandledrejection fallback when needed
Pierre Ossman [Thu, 2 Mar 2017 14:47:22 +0000 (15:47 +0100)]
Only use unhandledrejection fallback when needed

7 years agoUse common code to handle Promise errors
Pierre Ossman [Thu, 2 Mar 2017 14:46:05 +0000 (15:46 +0100)]
Use common code to handle Promise errors

7 years agoHandle partial error location information
Pierre Ossman [Thu, 2 Mar 2017 14:44:30 +0000 (15:44 +0100)]
Handle partial error location information

We might not get line or column number, but the file is still
useful information.

7 years agoErrorEvent.error isn't always set
Pierre Ossman [Thu, 2 Mar 2017 13:22:15 +0000 (14:22 +0100)]
ErrorEvent.error isn't always set

It's not just a matter of the browser lacking support.

7 years agoLimit fallback error width to window width
Pierre Ossman [Thu, 2 Mar 2017 13:21:29 +0000 (14:21 +0100)]
Limit fallback error width to window width

Change the layout a bit to make sure the entire message can be read.

7 years agoUse monospace font for unhandled errors
Pierre Ossman [Thu, 2 Mar 2017 13:20:03 +0000 (14:20 +0100)]
Use monospace font for unhandled errors

The browsers uses crude layout formatting that expects this.

7 years agoMerge pull request #738 from patrakov/master
Solly Ross [Sat, 25 Mar 2017 00:40:15 +0000 (17:40 -0700)]
Merge pull request #738 from patrakov/master

Changed the default compression level to 2

7 years agoHide internal keyboard functions
Pierre Ossman [Tue, 24 Jan 2017 12:36:31 +0000 (13:36 +0100)]
Hide internal keyboard functions

These may change and are not part of a stable API.

This also reindents the object functions to make sure they can
access private functions.

7 years agoRemove character substitution
Pierre Ossman [Tue, 24 Jan 2017 11:55:54 +0000 (12:55 +0100)]
Remove character substitution

We can handle any Unicode codepoint now, so stop replacing symbols.

7 years agoSimplify keysymdef.js
Pierre Ossman [Tue, 24 Jan 2017 11:49:29 +0000 (12:49 +0100)]
Simplify keysymdef.js

Some Unicode to Keysym mappings can be computed and can therefore
be left out of the huge lookup table.

7 years agoClean up keysymdef
Pierre Ossman [Tue, 24 Jan 2017 11:39:21 +0000 (12:39 +0100)]
Clean up keysymdef

7 years agoRemove keysym names from keysymdef.js
Pierre Ossman [Tue, 24 Jan 2017 11:07:26 +0000 (12:07 +0100)]
Remove keysym names from keysymdef.js

They were incomplete and turned off in most cases so they served
little use besides adding complexity.

7 years agoGet parse.js in sync with generated code
Pierre Ossman [Fri, 24 Mar 2017 09:49:00 +0000 (10:49 +0100)]
Get parse.js in sync with generated code

The generated keysymdef.js was recently converted to ES modules,
but the generating script was overlooked.

7 years agoDefine an initial shadow for spinner
Pierre Ossman [Thu, 23 Mar 2017 16:53:09 +0000 (17:53 +0100)]
Define an initial shadow for spinner

IE and Edge refuse to animate attributes that weren't present in
the static definition.

7 years agoMerge pull request #774 from novnc/refactor/es6-module-loader
Solly Ross [Wed, 22 Mar 2017 22:28:13 +0000 (15:28 -0700)]
Merge pull request #774 from novnc/refactor/es6-module-loader

[Refactor] ES6 Modules

7 years agoMake vnc_playback.html functional once more
Solly Ross [Thu, 2 Mar 2017 02:10:09 +0000 (21:10 -0500)]
Make vnc_playback.html functional once more

This commit makes vnc_playback.html functional once more, and completely
refactors tests/playback.js to make it usable in other scenarios.

In order for vnc_playback.js to properly load playback files now, they
must `export` their variables.

7 years agoFix vnc_auto.html
Solly Ross [Wed, 1 Mar 2017 21:26:15 +0000 (16:26 -0500)]
Fix vnc_auto.html

This commit fixes `vnc_auto.html` to work with the new changes.
Note that it is not translated over when `--with-app` is used
on `util/use_require.js`.  We'll probably want to deprecate it,
or do some longer-term cleanup.

7 years agoVendor in an IE11 polyfill for Promises
Solly Ross [Wed, 1 Mar 2017 16:17:44 +0000 (11:17 -0500)]
Vendor in an IE11 polyfill for Promises

This commit introduces a polyfill to add support for Promises in IE11.
This means IE11 can be tested without first running
`utils/as_require.js`.

7 years agoMove error handler into separate file
Solly Ross [Wed, 1 Mar 2017 01:47:02 +0000 (20:47 -0500)]
Move error handler into separate file

This commit moves the global error handler into a separate file,
so that it can catch module loading errors.

This also adds support for properly displaying error messages with
newlines in them (since the module loader may throw those)

7 years agoOnly apply settings with an RFB object
Solly Ross [Sun, 26 Feb 2017 21:55:24 +0000 (16:55 -0500)]
Only apply settings with an RFB object

We should only apply settings if we have an RFB object available.
Some of the settings handlers didn't respect this, but do now.

7 years agoFix view_only clipboard handling
Solly Ross [Sun, 26 Feb 2017 21:50:54 +0000 (16:50 -0500)]
Fix view_only clipboard handling

We need to actually consume the clipboard event message,
even if we don't act on it.

7 years agoMove scripts in vnc.html head
Solly Ross [Tue, 14 Feb 2017 23:11:55 +0000 (18:11 -0500)]
Move scripts in vnc.html head

This commit moves the vnc.html scripts into head.

7 years agoOptimize ES6 Module Loader Polyfill
Solly Ross [Sat, 11 Feb 2017 21:49:03 +0000 (16:49 -0500)]
Optimize ES6 Module Loader Polyfill

This commit makes the ES6 module loader polyfill use Web Workers,
so that Babel doesn't block the browser from animating.  It also
uses localStorage to cache the compiled results, only recompiling
on source changes, so it makes loading faster while developing noVNC.

This includes a vendored copy of the ES6 module loader, modified as
described above.

7 years agoUse transition animation while loading
Solly Ross [Tue, 14 Feb 2017 23:39:19 +0000 (18:39 -0500)]
Use transition animation while loading

This shows the transition animation while loading, so users can see
something is going on.

7 years agoUpdate tests to work with new structure
Solly Ross [Sun, 5 Feb 2017 17:34:47 +0000 (12:34 -0500)]
Update tests to work with new structure

This updates the tests to work with the new structure, and removes the
old `utils/run_from_console.js` files in favor of just using Karma
directly.  The Karma debug page now displays the normal mocha HTML, so
we can use that instead of the HTML generation functionality of the old
test runner.

Note that PhantomJS does not work at the moment (PhantomJS 1.5 should
make it possible to test on PhantomJS again).

7 years agoRefactor ES6 module structure/split up Util
Solly Ross [Sun, 5 Feb 2017 02:26:00 +0000 (21:26 -0500)]
Refactor ES6 module structure/split up Util

This commit restructures many of the ES6 modules, splitting them
up to actual export multiple functions instead of a single object.

It also splits up Util into multiple sub-modules, to make it easier
to maintain.

Finally, localisation is renamed to localization.

7 years agoRemove WebUtil.load_scripts
Solly Ross [Sat, 4 Feb 2017 22:40:18 +0000 (17:40 -0500)]
Remove WebUtil.load_scripts

The only remaining user of WebUtil.load_scripts was for loading
localisation.  Instead, we now load the localization information
over XHR as a JSON blob.

7 years agoLoad translations over XHR
Solly Ross [Wed, 15 Feb 2017 00:38:54 +0000 (19:38 -0500)]
Load translations over XHR

This commit causes translations to be loaded over XHR instead of
the import system.

7 years agoRemove WebUtil.dirObj
Solly Ross [Sat, 4 Feb 2017 22:16:05 +0000 (17:16 -0500)]
Remove WebUtil.dirObj

`WebUtil.dirObj` wasn't being used anywhere, so this removes it.

7 years agoAllow transforming to any format
Solly Ross [Sat, 4 Feb 2017 22:12:00 +0000 (17:12 -0500)]
Allow transforming to any format

This changes around `utils/use_require.js` to be able to generate any
of AMD (RequireJS), CommonJS, SystemJS, or UMD modules.  The three
former also include support for translating `vnc.html`, producing a full
"app" version of noVNC.

7 years agoUse PNG for mouse cursors
Pierre Ossman [Mon, 6 Mar 2017 14:54:00 +0000 (15:54 +0100)]
Use PNG for mouse cursors

The browsers' support for Microsoft's cursor format is a bit spotty,
so use the more common PNG format instead. This also allows us to
use a Canvas to generate the image, rather than coding it by hand.

7 years agoUse ES6 modules natively via Polyfill
Solly Ross [Sat, 4 Feb 2017 04:59:44 +0000 (23:59 -0500)]
Use ES6 modules natively via Polyfill

This commit introduces the "Browser ES Module Loader" polyfill
to support developing with native ES6 modules, without any compilation
step (files are passed through Babel in the browser).  This should not
be used in production -- a pre-compiled version passed through babel
ahead of time (as produced by the `npm install` hook or
`utils/use_require.js`) should be used instead.

7 years agoVendor an ES6-modules-compatible Pako
Solly Ross [Sat, 4 Feb 2017 04:55:00 +0000 (23:55 -0500)]
Vendor an ES6-modules-compatible Pako

This commit vendors a converted, stripped-down version of Pako which
uses ES6 modules instead of CommonJS modules.

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.