Closed Bug 1095369 Opened 10 years ago Closed 10 years ago

[FFOS2.0][Woodduck][Browser]Wallpaper will display when edit bookmark

Categories

(Firefox OS Graveyard :: Gaia::System, defect, P2)

defect

Tracking

(blocking-b2g:2.0M+, b2g-v2.0 wontfix, b2g-v2.0M verified, b2g-v2.1 verified, b2g-v2.2 verified)

VERIFIED FIXED
2.1 S9 (21Nov)
blocking-b2g 2.0M+
Tracking Status
b2g-v2.0 --- wontfix
b2g-v2.0M --- verified
b2g-v2.1 --- verified
b2g-v2.2 --- verified

People

(Reporter: sync-1, Assigned: yifan)

References

Details

Attachments

(7 files)

+++ This bug was initially created as a clone of Bug #811498 +++
 Created an attachment (id=976126)
 picture
 
 DEFECT DESCRIPTION:
  Wallpaper will display when edit bookmark
 
  REPRODUCING PROCEDURES:
  1.launch browser->open one website->tap[star]icon->[Bookmark]
  2.tap[star]icon->[Edit Bookmark]->tap input field
  3.Switch to landscape mode->Wallpaper will display-->KO1
 
 
  EXPECTED BEHAVIOUR:
  KO1:lpaper won't display
 
  中文描述:
  1.打开一网页->添加为书签
  2.点击[五角星]->编辑书签->点击输入域
  3.把手机切换到横屏->壁纸闪现-->KO1
 
  ASSOCIATE SPECIFICATION:
 
  TEST PLAN REFERENCE:
  free test
 
  TOOLS AND PLATFORMS USED:
 
  USER IMPACT:
  moderate
 
  REPRODUCING RATE:
  5/5
  For FT PR, Please list reference mobile's behavior:
  Fire e 1.3 SW28C+CN10 没有壁纸出现
 ++++++++++ end of initial bug #811498 description ++++++++++
 
 		
 
  DEFECT DESCRIPTION:
 
  REPRODUCING PROCEDURES:
 
  EXPECTED BEHAVIOUR:
 
  ASSOCIATE SPECIFICATION:
 
  TEST PLAN REFERENCE:
 
  TOOLS AND PLATFORMS USED:
 
  USER IMPACT:
 
  REPRODUCING RATE:
 
  For FT PR, Please list reference mobile's behavior:
Attached file jrdlog_811498.rar
Attached image picture
Hi Yi-Fan,
Could you please have a check for this bug with bookmark issue? Thanks!
Blocks: Woodduck
Flags: needinfo?(yliao)
blocking-b2g: --- → 2.0M?
Assignee: nobody → yliao
Flags: needinfo?(yliao)
Attached file resizing log
When changing orientation from portrait to landscape in the browser app with keyboard on, from the log of the system app we could see that the first time the browser app gets resized, the height is calculated by the layout_manager.js with the portrait keyboard which is 205px. This is later corrected after the keyboard resized. So between these resize events, the system background would be visible like the picture in the previous attachment.
See Also: → 901956
Hi Alive,

This seems to also affect apps that change orientations. How would you suggest we fix this bug?
Flags: needinfo?(alive)
Picture#1 is software home button gap I guess.
No idea what is Picture#2 doing and what you really want
* Don't want to see wallpaper when resizing => call fadeOut on homescreenWindow
* Don't want to be resized when holding home in landscape mode => ?
* More magical stuff like rotating the screen while resizing
Flags: needinfo?(alive)
Component: Gaia::Browser → Gaia::System
Attached file pull request for v2.0
Thank you Alive!

When changing orientation from portrait to landscape and resizing with keyboard on, the layout manager in the system app will resize the height of the active app first with the keyboard height in portrait (line 55 in layout_manager.js). When the height of the keyboard in portrait mode is bigger than the height in landscape mode, the calculated height of the active app will be smaller than it should've been. The system wallpaper is visible at the mean time. Subsequent resize events later will immediately correct the active app height using the correct landscape keyboard height.

The resizing event sequence is 'resize' --> 'keyboardchange' --> 'keyboardchange'. This patch disables the keyboard height check in the 'resize' event since it'd be incorrect during orientation change, which would display part of the system wallpaper in a flash.
Attachment #8520464 - Flags: review?(alive)
Comment on attachment 8520464 [details] [review]
pull request for v2.0

Good investigation, LGTM for v2.0, please make a master patch *with test* as well. Thanks.
Attachment #8520464 - Flags: review?(alive) → review+
Thank you for the review! Here's the PR with test for the master branch.
Attachment #8521121 - Flags: review?(alive)
blocking-b2g: 2.0M? → 2.0M+
Attachment #8521121 - Flags: review?(alive) → review+
Merged into master
https://github.com/mozilla-b2g/gaia/pull/26050

Test completed
https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=93b1f0c655f4
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment on attachment 8521121 [details] [review]
pull request for master

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): 1095369
[User impact] if declined: When changing orientation with keyboard on in apps a user will see the wallpaper flashes.
[Testing completed]: https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=93b1f0c655f4
[Risk to taking this patch] (and alternatives if risky): N/A
[String changes made]: N/A
Attachment #8521121 - Flags: approval-gaia-v2.1?(bbajaj)
Attachment #8521121 - Flags: approval-gaia-v2.0?(bbajaj)
Attached file PR to v2.0m
Ni myself to merge it when the tree is opened.
Flags: needinfo?(kli)
Yifan, is this a regression in 2.0 ?
Flags: needinfo?(yliao)
No, it's not a regression.
Flags: needinfo?(yliao)
(In reply to yifan [:yifan][:yliao] from comment #14)
> No, it's not a regression.

so this is better off riding the trains for 2.0 given the release is done there but I'll take it on 2.1
Attachment #8521121 - Flags: approval-gaia-v2.1?(bbajaj)
Attachment #8521121 - Flags: approval-gaia-v2.1+
Attachment #8521121 - Flags: approval-gaia-v2.0?(bbajaj)
Attachment #8521121 - Flags: approval-gaia-v2.0-
Attached video Woodduck
The verify result as follows:
Woodduck 2.0: in step3, device doesn’t support landscape mode now. please see attachment: verify video~1.mp4
Flame 2.1& 2.2: on Flame Browser, there’s no [Star] icon and doesn’t support Bookmarks function.
Woodduck2.0 build:
Gaia-Rev        3a98f1287fa7b604891220ba5d86982ae8f9971e
Gecko-Rev       03d3ab62d5b07b915434f2d1d68495ad5915ecd2
Build-ID        20141120103003
Version         32.0
Flame 2.1 build:
Gaia-Rev        f8d3bf44029e0afc0124600a4bb34dba8fc1ad21
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/f70a67a7f846
Build-ID        20141120001207
Version         34.0
Flame2.2 build:
Gaia-Rev        1abe09b4925547699dfdb2d358aed019137c3aa6
Gecko-Rev       https://hg.mozilla.org/mozilla-central/rev/6ce1b906c690
Build-ID        20141120040205
Version         36.0a1
Flags: needinfo?(jocheng)
Flags: needinfo?(jocheng) → needinfo?(hlu)
The new ref is updated by  with patch_delivery script!
 
     ###%%%comment:[FFOS2.0][Woodduck][Browser]Wallpaper will display when edit bookmark     ###%%%bug number:834085     ###%%%product name:soul35-ff-v1.0-dint     ###%%%root cause:Coding     ###%%%Module_Impact:no     ###%%%Test_Suggestion:     ###%%%Solu
 
 Branch: refs/heads/soul35-ff-v1.0-dint
 http://10.92.32.10:8081/#change,34113
 http://10.92.32.10/gitweb.cgi?p=firefox/quic/lf/b2g/mozilla/gaia.git;a=commit;h=2631015ad1eae22d10b506990ba7b0dd3b38b69e
According to comment 19, this issue does not exit on v2.0m, v2.1 and v2.2.
Status: RESOLVED → VERIFIED
Flags: needinfo?(hlu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: