Closed Bug 604353 Opened 15 years ago Closed 15 years ago

Random failure into browser_viewport.js

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: vingtetun, Assigned: vingtetun)

Details

Attachments

(1 file)

Bug 601619 change the awesome panel code and this add an effect on browser_viewport.js. browser_viewport.js also behave differently while run alone or in the testsuite, those needs to be fixed.
Attached patch PatchSplinter Review
Most of the patch is just code rewrite : * loadUrl -> loadURL * var -> let * adding spaces around "+" when needed * renaming working_tab -> currentTab to fit with the name used in most of the test The interesting part are: * the change in browser.xml (not needed) but I'm not sure we need to send all thoses messages when there is no change in the scale level * the move from setTimeout(callback, 0) to waitFor. In most situation we are fine and we don't really wait for anything since there is a check at the beginning of the function to ensure the condition is not already ok. But for the cases where 2 MozScrolledAreaChanged happened this allow us to wait for the right scale and prevent those random orange
Assignee: nobody → 21
Attachment #499928 - Flags: review?(mark.finkle)
Attachment #499928 - Flags: review?(mark.finkle) → review?(mbrubeck)
Attachment #499928 - Flags: review?(mbrubeck) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Vivien can you provide some steps to reproduce ? So that I can verify this bug...
it is verified, there are issues with browser_viewport.js but they are different.
VERIFIED FIXED on: Build ID: Mozilla/5.0 (Maemo; Linux armv7l; rv:6.0a1) Gecko/20110510 Firefox/6.0a1 Fennec/6.0a1 Mozilla /5.0 (Android;Linux armv7l;rv:6.0a1) Gecko/20110515 Firefox/6.0a1 Fennec/6.0a1 Mozilla /5.0 (Android;Linux armv7l;rv:5.0a1) Gecko/20110515 Firefox/5.0a2 Fennec/5.0a2 Devices: Nokia N900(Maemo GTK), HTC Desire Z (Android 2.2)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: