[widgets] TWI clarification

Hi,
During the testing of TWI's preferences attribute in Opera, I noticed
that preferences had stop firing events at the window object. I asked
around a bit and it was pointed out to me that Web Storage had changed
to no longer fire events at the window object that contains the
storage area. Now it only fires events at other windows. This makes
absolute sense. In response, I've clarified the text in the  TWI spec:

Upon invocation of the setItem(), removeItem() and clear() methods, if
the invocation did something, a user agent must dispatch a storage
event akin to what is specified in "the storage event" section of
[WebStorage] (i.e., the preferences attribute behaves the same as
sessionStorage and localStorage with regards to dispatching events).

I will add one more test to the test suite for widget.preferences.clear();


-- 
Marcos Caceres
http://datadriven.com.au

Received on Monday, 30 May 2011 12:11:13 UTC