for homescreen apps, but it's been a
while since I've tested it. It'll definitely store the URL (so you can
encode state in the hash, as usual), but you should be able to store data
using the data argument as well, for more complex persisted state.
--
Glenn Maynard
, not a bug. In fact, it's
one of the defining features of the platform.
--
Glenn Maynard
should be looking carefully at the use cases.
If you have nothing more useful to discuss beyond uninformed,
opinionated naysaying, I'll be leaving this thread lie.
You should make an effort to remain civil when people don't immediately
agree with you.
--
Glenn Maynard
it and copy it, I expect to
copy →, just as I selected. This sounds like something browsers should
actively discourage.
--
Glenn Maynard
that's inside CSS content, so it isn't included in the copy.)
--
Glenn Maynard
On Fri, Feb 13, 2015 at 9:02 AM, Glenn Maynard gl...@zewt.org wrote:
Copying ASCII isn't desirable. It should copy the Unicode string a →
b. After all, that's what gets copied if you had done spana →
b/span in the first place.
(Oh, I missed the obvious--the - from Firefox is coming from
itself, in a
consistent way, not by every site individually. (Public terminals need to
wipe the entire profile when a user leaves, since you also need cache,
browser history, cookies, etc.)
--
Glenn Maynard
autocomplete is to
disable the saving of sensitive or irrelevant information. If the user is
filling in an address or cc num it's likely they have the opportunity to
save that on other sites.
It wouldn't make sense for all sites to autocomplete credit cards, but only
50% to save them.
--
Glenn Maynard
.
- Some web services don't support HTTPS. (There's no excuse for this, but
saying that doesn't make the problem go away. I don't recall particular
examples.)
--
Glenn Maynard
not supported in most browsers. It's too
bad, since link anonymizers are terrible and the lack of this feature is
causing them to continue to be used.
--
Glenn Maynard
, Peter Lepeska bizzbys...@gmail.com wrote:
Thanks Glenn.
Do you happen to have a list of which browsers support it and which do not?
Thanks,
Peter
From: Glenn Maynard gl...@zewt.org
Date: Tuesday, October 7, 2014 at 10:00 AM
To: Peter Lepeska bizzbys...@gmail.com
Cc: Chris Bentzel cbent
at all, such as whether a user has one or two or
four cores, which are then combined with as many other data points as
possible to create a fingerprint. Limiting the maximum exposed number of
cores doesn't affect this.
--
Glenn Maynard
probably not be interoperable. Also, is 0.5 the default value?
Image compression is uninteroperable from the start, in the sense that the
each UA can always come up with different output files. This feature (and
the JPEG quality level feature) doesn't make it worse.
--
Glenn Maynard
. (Cookies are
another one that should be in this category; document.cookie isn't a sane
API without a wrapper.)
This isn't one of those, though.
--
Glenn Maynard
the
compression time gains you a 50% improvement in compression, that's a lot
more compelling than if it only gains you 10%. I don't know what the
numbers are myself.
--
Glenn Maynard
, and having the arguments to toBlob and toDataURL be
different seems like gratuitous inconsistency.
--
Glenn Maynard
made.
--
Glenn Maynard
know if feature testing for
dictionary arguments has been solved yet (it's come up before), but if not
that's something that needs to be figured out in general.
--
Glenn Maynard
--
Glenn Maynard
to
do toDataURL at 60fps.
(I hope we can all see more use cases than just screenshots.)
--
Glenn Maynard
On Thu, May 29, 2014 at 4:21 PM, Boris Zbarsky bzbar...@mit.edu wrote:
On 5/29/14, 5:13 PM, Glenn Maynard wrote:
Assembly language is inherently incompatible with the Web.
A SIMD API, however is not. Under the hood, it can be implemented in
terms of MMX, SSE, NEON, or just by forgetting
it takes to compress.
--
Glenn Maynard
issue is with the just do it in script argument. It would probably help
for people more strongly interested in this to show a comparison of
resulting file sizes and the relative amount of time it takes to compress
them.
--
Glenn Maynard
is manipulated. That seems hard to
implement, though, if you're blitting images to a canvas that all have
different color profiles. It's probably better to ignore color profiles
for canvas entirely than to expose the user's monitor configuration like
this...
--
Glenn Maynard
On Thu, May 8, 2014 at 2:33 AM, Brian Birtles bbirt...@mozilla.com wrote:
(2014/05/08 0:49), Glenn Maynard wrote:
Can you remind me why this shouldn't just use real time, eg. using the
Unix
epoch as the time base? It was some privacy concern, but I can't think of
any privacy argument
to use
as many cores as you can so the operation completes more quickly. For the
rest, using more cores means that the algorithm can do a better job, giving
a more accurate physics simulation, detecting motion more quickly and
accurately, and so on.
--
Glenn Maynard
.
--
Glenn Maynard
around 4 cores with HT for years. I think there's just not much market
demand for faster and faster CPUs like there used to be...)
That said, if I spent lots of money on a 16-core processor, then I'd be
pretty angry if this caused pages to only use half of it.
--
Glenn Maynard
concern, but I can't think of
any privacy argument for giving high-resolution event timestamps in units
that are this limited and awkward.
--
Glenn Maynard
Zbarsky bzbar...@mit.edu wrote:
On 5/6/14, 5:30 PM, Rik Cabanier wrote:
Leaving the question of fingerprinting aside for now, what name would
people prefer?
mauve?
Failing that, maxUsefulWorkers?
It can be useful to start more workers than processors, when they're not
CPU-bound.
--
Glenn
other way.
--
Glenn Maynard
On Wed, Apr 30, 2014 at 4:12 PM, Tab Atkins Jr. jackalm...@gmail.comwrote:
On Wed, Apr 30, 2014 at 7:32 AM, Glenn Maynard gl...@zewt.org wrote:
It's too bad that display-box also has multiple uses--it doesn't only
display or hide the content, it has a third contents mode. That means
this from happening.
The question was why is this a CSS style instead of a property on img,
not why isn't this just the default.
--
Glenn Maynard
be a setting on the notification.
--
Glenn Maynard
.
--
Glenn Maynard
, but if not, fixing that is probably closer to the right
direction than letting people run fast timers in minimized UI threads. If
this is just messaging of game state, he could probably do just relay that
through the UI thread, so the game simulation still takes place in a worker.
--
Glenn Maynard
-ending animation timers running when you can't even see it (who
have no reason to drive their timers from a worker to bypass the timer
throttling), but I'd recommend trying to move your actual server logic into
a worker.
--
Glenn Maynard
and communicated to clients.
--
Glenn Maynard
actually putting it in a document.
--
Glenn Maynard
in bilinear
when you wanted bicubic.
--
Glenn Maynard
thread if we want to go into this
further.
--
Glenn Maynard
transferToImageBitmap, if there are use cases that transferToImageBitmap
solves best in its own right. It seems like toBlob already handles this,
though.)
--
Glenn Maynard
AM, Glenn Maynard gl...@zewt.org wrote:
I just noticed that Canvas already has a Canvas.setContext() method
That's there in support of CanvasProxy, which is a flawed API and
which this entire discussion is aiming to rectify.
I don't see flaws with the setContext() API, which appears to have
for the other
use cases.)
I'd only recommend leaving out transferToImageBitmap, srcObject and
ImageBitmap.close() parts. I do think that would be redundant with with
present proposal. They can always be added later, and leaving them out
keeps the WorkerCanvas proposal itself focused.
--
Glenn Maynard
sub-workers to do drawing (at least, not without some really ugly
coordination with the main thread.)
Sure it is. If you want an offscreen buffer, you just new
WorkerCanvas(). This is unrelated to offscreen drawing.
--
Glenn Maynard
this downside as smaller than the upside of addressing both of the
above use cases.
I can only find one thing above that you might be referring to as a use
case (the one I replied to immediately above). What was the other?
--
Glenn Maynard
On Sun, Oct 20, 2013 at 2:22 AM, Robert O'Callahan rob...@ocallahan.orgwrote:
On Fri, Oct 18, 2013 at 3:10 PM, Glenn Maynard gl...@zewt.org wrote:
Also, with the transferToImageBuffer approach, if you want to render
from a worker into multiple canvases in the UI thread, you have to post
to a context, without caring about the DOM at all. If you
have to move the image to an img to display it, suddenly you have to care
about the DOM to render. It breaks the basic model.
--
Glenn Maynard
the main thread that the frame is ready.
postMessage(present);
}
function renderFrame(workerCanvas) { }
--
Glenn Maynard
(Whoops. Why did Gmail send that as my work email? It shouldn't have made
it through to the list, since it's not subscribed...)
On Sun, Oct 20, 2013 at 9:26 PM, Kyle Huey m...@kylehuey.com wrote:
On Sun, Oct 20, 2013 at 11:33 PM, Glenn Maynard gl...@bluegoji.comwrote:
It must
On Thu, Oct 17, 2013 at 10:25 PM, Robert O'Callahan rob...@ocallahan.orgwrote:
On Fri, Oct 18, 2013 at 3:10 PM, Glenn Maynard gl...@zewt.org wrote:
transferToImageBuffer looks like it would create a new ImageBuffer for
each frame, so you'd need to add a close() method to make sure they don't
= canvas.getContext(webgl);
loadExpensiveResources(gl);
drawStuff(gl);
var canvas2 = document.querySelector(.canvas2);
gl.attachToCanvas(canvas2);
drawStuff(gl); // don't need to loadExpensiveResources again
--
Glenn Maynard
, is a series of commands that are sent to the graphics chip. In
theory, this should be compatible.
All of that happens inside the OpenGL driver, which browsers have no
control over.
--
Glenn Maynard
thread-safety issues to the platform.
(I'm not sure if you mean the same thing here and above--they sound
similar, but you said canvas in one place and WebGL context in the
other.)
(Sorry if I'm forgetting things, the subject has been busy and a little bit
noisy...)
--
Glenn Maynard
to this use case (they're really all
different interfaces to the same functionality)...
--
Glenn Maynard
the worker.
--
Glenn Maynard
. For example, if the main thread
occasionally spends 4ms doing GC work, you may have a rendering hitch that
you wouldn't have otherwise.
--
Glenn Maynard
to be a thread-safe operation, but it doesn't need to block if the UI
thread is busy.
This proposal doesn't handle synchronizing DOM updates with threaded canvas
updates, but it seems like that inherently requires synchronization...
--
Glenn Maynard
it doesn't
bother me that much.
--
Glenn Maynard
the change.
--
Glenn Maynard
are the use cases for doing that? Being able to do complex work
in a worker in a linear, non-event-based manner is an important use case
for workers in general, but I can't think of any way this applies to
drawing successive frames to a canvas.
--
Glenn Maynard
(string)
function property of the Global object, I wonder if choosing a longer,
different name would be better to avoid confusion.
I think the CSS scope makes it perfectly clear and unambiguous.
--
Glenn Maynard
On Thu, Oct 10, 2013 at 9:22 AM, Boris Zbarsky bzbar...@mit.edu wrote:
On 10/10/13 10:15 AM, Glenn Maynard wrote:
When I'm doing this I just make sure that the strings don't need
escaping in the first place. Many of these look like they do that
(probably most ID cases are things like random
if I just save a reference.) That would help there, too,
since I wouldn't need to make sure that my IDs don't need to be escaped.
--
Glenn Maynard
script doing the walk and uploading the files.
It's unclear to me what you are proposing here. Can you elaborate?
The same thing I did, I think: an API to navigate the directory tree as
needed, and to never greedily recursing the directory tree.
--
Glenn Maynard
for this here, since lots of people
have done that already in the filesystem API threads, but I hope we can
agree that it would be a much better solution.)
--
Glenn Maynard
.
--
Glenn Maynard
proposed, but I don't
recall where that left off.
--
Glenn Maynard
should happen if you have a files input, and drag a directory into it
that you couldn't have selected with the file picker.)
--
Glenn Maynard
, which renders consistently in all three
browsers. http://jsfiddle.net/V92Gn/128/
--
Glenn Maynard
this proposal is a good idea, though.)
--
Glenn Maynard
On Tue, Sep 10, 2013 at 6:35 PM, Ian Hickson i...@hixie.ch wrote:
On Tue, 20 Aug 2013, Glenn Maynard wrote:
It's the behavior users expect when watching videos, which is the case
video should optimize for. If you're doing something else where the
user interacts with the video in other
for the iPad Mini; the Kindle Fire HD), and by contrast there's no
sign of them for desktops, so I think we're either there now or we won't be
for a long time.
--
Glenn Maynard
right for that. You'd end up downloading the scripts even if they're never
used. With jit, the browser can still avoid downloading the scripts
entirely if they're not used.
--
Glenn Maynard
away fetches, since Content-Range has no way of saying
give me the last 64K of the file so you have to ask for the size first,
but I'd rather that than introducing a new archive format into the wild...)
--
Glenn Maynard
list isn't a sensible API for recursively exposing directory
trees.
--
Glenn Maynard
now: http://encoding.spec.whatwg.org/#utf-8
--
Glenn Maynard
)
are best relegated to script loaders
I disagree. See above.
(Please remember to trim quotes.)
--
Glenn Maynard
, then download just the slice
of data you need. You don't need to download the whole file.
--
Glenn Maynard
aspects of the format: the maximum supported
length of comments and handling of duplicate filenames, for example. This
would all need to be specified; the ZIP AppNote doesn't specify a parser
or error handling in the way the web needs, it just describes the format.
--
Glenn Maynard
explicitly.
Unlike browser controls, this is visible to scripts and something that
affects authors, so this probably should be in the spec if it isn't.
--
Glenn Maynard
sounds similar to what I'm
suggesting.
--
Glenn Maynard
shifting between one pixel of grey and two pixels of lighter grey).
--
Glenn Maynard
.
If drawn with transparency, the resulting left and top edges would look
different than the bottom and right edges. E.g.,
http://jsfiddle.net/9xbkX/
My proposal addresses this, by adding an outer stroke mode.
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2013-July/040252.html
--
Glenn
. This is the mode I'm suggesting.
Chrome seems ignore stroke widths that are smaller than 1 (which is
reasonable).
(That seems wrong to me--it should continue to draw based on pixel
coverage--but that's a separate issue...)
--
Glenn Maynard
specified; the only mention of anti-aliasing is an example
of how to do it (oversampling).
This is tangental, though. Might want to start another thread if you want
to go over this more, or we'll derail this one...
--
Glenn Maynard
for something that behaves
exactly like something we already have, just to give it a different name.
(It may not be too late to rename those functions, if nobody has
implemented them yet, but I'm not convinced it's much of a problem.)
--
Glenn Maynard
that should
ever happen in the first place, but if it does we'd definitely need to make
sure it doesn't happen in this mode.)
--
Glenn Maynard
things land on for filesystem access should
probably be used for this--or vice-versa, if this comes first. I suspect
they're actually the same thing, since a file picker (along with drag and
drop) is the likely way to expose a filesystem-of-real-files API.
--
Glenn Maynard
edges, since you're adjusting the
size of the path as a whole. It would work for fills (which also get
aliased edges when transformed). It also works if the fill is a pattern,
where turning off antialiasing would make the pattern ugly.
--
Glenn Maynard
adjust the canvas so it's rendered 1:1 to pixels,
so the rules for getting hard edges are the same (half-pixels for strokes,
integer pixels for fills).
--
Glenn Maynard
On Thu, Jul 25, 2013 at 2:36 PM, Rik Cabanier caban...@gmail.com wrote:
On Thu, Jul 25, 2013 at 7:05 AM, Glenn Maynard gl...@zewt.org wrote:
On Thu, Jul 25, 2013 at 12:24 AM, Rik Cabanier caban...@gmail.comwrote:
Yes, that's what I had in mind: the developer detects the device pixel
ratio
it in the 100x100px region, eg.
canvas width=110 height=110 style=width: 100px; height: 100px;
You don't do any scaling within the 2d canvas itself, you just draw to it
like a 110x110-pixel canvas.
--
Glenn Maynard
functionality), it's much too late to change this.
--
Glenn Maynard
it.
In practice, game developers are rarely willing to spend the time to make
their games work well in both portrait and landscape. The Web solution is
probably not to lock the display, though, but to letterbox the display if
the window's aspect ratio is too far off, as with videos.
--
Glenn Maynard
in 800x600 (so
we'll force it), best viewed in portrait (so we'll force it).
--
Glenn Maynard
time, and I find
arguments that querySelector isn't readable or the wrong tool to simply
not hold up. I find it more readable, actually, since I don't have to
change interfaces depending on whether I'm searching for an ID or a class.)
--
Glenn Maynard
change a server to say windows-1252. The ISO spec is so
far out of touch with reality that it's hard to consider it authoritative;
in reality, ISO-8859-1 is 1252.)
--
Glenn Maynard
that.
CSS uses selectors, not the other way around. querySelector() has nothing
to do with styles.
--
Glenn Maynard
if a particular option is provided, which
supportsContext allows. (I don't know if there are any cases where this
actually happens, since most options are best effort and don't cause
context creation to fail if they're not available.)
--
Glenn Maynard
On Tue, Jun 25, 2013 at 6:48 PM, Simon Pieters sim...@opera.com wrote:
On Wed, 26 Jun 2013 01:39:01 +0200, Glenn Maynard gl...@zewt.org wrote:
This is done if the feature is being disabled completely at page load
time,
with no chance of it coming back: you simply don't put the interface
1 - 100 of 497 matches
Mail list logo