Closed
Bug 971006
Opened 12 years ago
Closed 11 years ago
Remove a sync reflow when showing the utility tray
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Firefox OS Graveyard
Gaia::System
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
References
Details
Attachments
(1 file, 3 obsolete files)
5.03 KB,
patch
|
etienne
:
review+
|
Details | Diff | Splinter Review |
Same fix than the one for edge swipe detector.
Assignee | ||
Comment 1•12 years ago
|
||
Same BrowserElementPanning.js issue that creates a reflow to found a pannable in the system app.
Attachment #8374146 -
Flags: review?(etienne)
Comment 2•12 years ago
|
||
Comment on attachment 8374146 [details] [diff] [review]
bug971006.patch
Review of attachment 8374146 [details] [diff] [review]:
-----------------------------------------------------------------
Awesome! But you're breaking unit tests :)
We can either :
* keep doing what fakeTouches does, but make sure we sent fake objects with a preventDefault() method
* change it to forge real touch events like we do in other system app test suites
In both case we should also add a test to check that the default was prevented.
Attachment #8374146 -
Flags: review?(etienne) → review-
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #2)
> Comment on attachment 8374146 [details] [diff] [review]
> bug971006.patch
>
> Review of attachment 8374146 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Awesome! But you're breaking unit tests :)
>
> We can either :
> * keep doing what fakeTouches does, but make sure we sent fake objects with
> a preventDefault() method
It makes me sad that we don't use real events :(
Assignee | ||
Comment 4•12 years ago
|
||
Sent to Travis as well.
Attachment #8374146 -
Attachment is obsolete: true
Attachment #8376198 -
Flags: review?(etienne)
Assignee | ||
Comment 5•12 years ago
|
||
With some tests.
Attachment #8376198 -
Attachment is obsolete: true
Attachment #8376198 -
Flags: review?(etienne)
Attachment #8376363 -
Flags: review?(etienne)
Comment 6•12 years ago
|
||
Comment on attachment 8376363 [details] [diff] [review]
bug971006.patch
Review of attachment 8376363 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with a green travis, but I'm confident it will be :)
Attachment #8376363 -
Flags: review?(etienne) → review+
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #6)
> Comment on attachment 8376363 [details] [diff] [review]
> bug971006.patch
>
> Review of attachment 8376363 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r=me with a green travis, but I'm confident it will be :)
As green as a zombie.
https://github.com/mozilla-b2g/gaia/commit/19304fe63b26630f95c6f3a7da49349b433d476e
Assignee: nobody → 21
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 8•11 years ago
|
||
Reopening. Backed out bug 971006 as of
https://github.com/mozilla-b2g/gaia/pull/16539
Commit
https://github.com/mozilla-b2g/gaia/commit/b6b2f10d4784f478878b3cfdabc4bd66bf3da8ec
In order to fix regression in Bug 975018.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 9•11 years ago
|
||
Send a new version on Travis: https://github.com/mozilla-b2g/gaia/pull/16770
This one only preventDefault the events is they are targetting the statusbar or the grippy.
Updated•11 years ago
|
Blocks: salt-grain
Assignee | ||
Comment 10•11 years ago
|
||
Etienne here is a new version on top of bug 978687
Attachment #8376363 -
Attachment is obsolete: true
Attachment #8384686 -
Flags: review?(etienne)
Comment 11•11 years ago
|
||
Comment on attachment 8384686 [details] [diff] [review]
bug971006.v2.diff
Review of attachment 8384686 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with the nits in the test.
I'm pretty impressed :)
::: apps/system/test/unit/utility_tray_test.js
@@ +241,5 @@
> assert.ok(stub.calledOnce);
> });
>
> + test('Dont preventDefault if the target is the overlay', function() {
> + assert.ok(UtilityTray.overlay.dispatchEvent(fakeEvt));
nit: assert.isTrue
@@ +245,5 @@
> + assert.ok(UtilityTray.overlay.dispatchEvent(fakeEvt));
> + });
> +
> + test('preventDefault if the target is the statusbar', function() {
> + assert.ok(!UtilityTray.statusbar.dispatchEvent(fakeEvt));
assert.isFalse
@@ +249,5 @@
> + assert.ok(!UtilityTray.statusbar.dispatchEvent(fakeEvt));
> + });
> +
> + test('preventDefault if the target is the grippy', function() {
> + assert.ok(!UtilityTray.grippy.dispatchEvent(fakeEvt));
assert.isFalse
@@ +268,5 @@
> UtilityTray.active = true;
> + });
> +
> + test('Dont preventDefault if the target is the overlay', function() {
> + assert.ok(UtilityTray.overlay.dispatchEvent(fakeEvt));
same
@@ +272,5 @@
> + assert.ok(UtilityTray.overlay.dispatchEvent(fakeEvt));
> + });
> +
> + test('preventDefault if the target is the statusbar', function() {
> + assert.ok(!UtilityTray.statusbar.dispatchEvent(fakeEvt));
same
@@ +276,5 @@
> + assert.ok(!UtilityTray.statusbar.dispatchEvent(fakeEvt));
> + });
> +
> + test('preventDefault if the target is the grippy', function() {
> + assert.ok(!UtilityTray.grippy.dispatchEvent(fakeEvt));
same
Attachment #8384686 -
Flags: review?(etienne) → review+
Assignee | ||
Comment 12•11 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/73a4755535fa6051c7ed7c11bf44c1f62cdabe1b
Landed with nits addressed.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•