Closed
Bug 731155
Opened 12 years ago
Closed 12 years ago
getTab(aIndex) helper function from controller causes errors in Mozmill /testPrivateBrowsing tests for default branch
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: vladmaniac, Assigned: remus.pop)
References
()
Details
(Whiteboard: [lib][mozmill-test-failure])
Attachments
(1 file, 1 obsolete file)
5.07 KB,
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
Build ID: Build identifier: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120227 Firefox/13.0a1 -------------------------------------------------------------------------------------- Mozmill Version: 1.5.9 -------------------------------------------------------------------------------------- Firefox Version: 13 -------------------------------------------------------------------------------------- Tests affected: /testPrivateBrowsing/testTabRestoration.js /testPrivateBrowsing/testStartStopPBMode.js /testPrivateBrowsing/testCloseWindow.js -------------------------------------------------------------------------------------- Error: TimeoutError("controller.waitForPageLoad(): Timeout waiting for page loaded.")@resource://mozmill/modules/utils.js:429 waitFor((function () {return this.isLoaded(win);}),"controller.waitForPageLoad(): Timeout waiting for page loaded.",30000,100,[object Object])@resource://mozmill/modules/utils.js:467 ((function () {return this.isLoaded(win);}),"controller.waitForPageLoad(): Timeout waiting for page loaded.",30000,(void 0),[object Object])@resource://mozmill/modules/controller.js:648 ([object Proxy])@resource://mozmill/modules/controller.js:1291 testStartStopPrivateBrowsingMode()@resource://mozmill/modules/frame.js -> file:///c:/docume~1/mozilla/locals~1/temp/tmpluui_m.mozmill-tests/tests/functional/testPrivateBrowsing/testStartStopPBMode.js:118 (testStartStopPrivateBrowsingMode)@resource://mozmill/modules/frame.js:557 ([object Object])@resource://mozmill/modules/frame.js:626 ([object Object])@resource://mozmill/modules/frame.js:669 ("c:\\docume~1\\mozilla\\locals~1\\temp\\tmpluui_m.mozmill-tests\\tests\\functional\\testPrivateBrowsing\\testStartStopPBMode.js")@resource://mozmill/modules/frame.js:506 ("c:\\docume~1\\mozilla\\locals~1\\temp\\tmpluui_m.mozmill-tests\\tests\\functional\\testPrivateBrowsing\\testStartStopPBMode.js")@resource://mozmill/modules/frame.js:681 ((function (filename, invokedFromIDE) {var runner = new Runner(new Collector, invokedFromIDE);runner.runTestFile(filename);runner.end();return true;}),[object Proxy])@resource://jsbridge/modules/server.js:179 ("f729aff3-615e-11e1-83be-005056f3c7a8",(function (filename, invokedFromIDE) {var runner = new Runner(new Collector, invokedFromIDE);runner.runTestFile(filename);runner.end();return true;}),[object Proxy])@resource://jsbridge/modules/server.js:183 -------------------------------------------------------------------------------------- Started failing: 2012-02-27 -------------------------------------------------------------------------------------- Firefox Build failing first: Built from http://hg.mozilla.org/mozilla-central/rev/d1b2fd680235 -------------------------------------------------------------------------------------- Code snippet: dump("\n\n Page number OK " + LOCAL_TEST_PAGES.length + "\n\n"); //XXX: This line of code is failing controller.waitForPageLoad(controller.tabs.getTab(i)); --------------------------------------------------------------------------------------
Reporter | ||
Updated•12 years ago
|
Whiteboard: [mozmill-test-failure]
Reporter | ||
Updated•12 years ago
|
Reporter | ||
Updated•12 years ago
|
Assignee: nobody → remuspop.mozbugs
Status: NEW → ASSIGNED
Comment 1•12 years ago
|
||
At which state does the failure happen? That would be helpful information which is still missing. Are the right amount of tabs open? Does the contained page load correctly?
Assignee | ||
Comment 2•12 years ago
|
||
The right amount of tabs are open. The problem is with controller.tabs.getTab(i). It does not get the tab with index i. While using tabBrowser class and it's getTab function, waitForPageLoad works correctly and I get a fail in elementslib: "this._view is undefined".
Assignee: remuspop.mozbugs → remus.pop
Comment 3•12 years ago
|
||
tabBrowser.getTab() doesn't work here because it doesn't get the tab document, but the visual tab. So not sure how waitForPageLoad would work at all.
Assignee | ||
Comment 4•12 years ago
|
||
So, when doing -- window.gBrowser.browsers[0].contentDocument I get Error: Permission denied to access property 'gBrowser'. For comparison, release works fine, and looking at the reports I bet Aurora is fine with this property too.
Assignee | ||
Comment 5•12 years ago
|
||
After restarting the browser, window.gBrowser.browsers[0].contentDocument works fine now.
Assignee | ||
Comment 6•12 years ago
|
||
Somehow win.mozmillDocumentLoaded is false and never gets true, where win is the window object.
Assignee | ||
Comment 7•12 years ago
|
||
I think that mozmillDocumentLoaded property is set to false after Private Browsing turns off, but not sure why.
Comment 8•12 years ago
|
||
Is this across platforms and only for Firefox 13? A regression?
Assignee | ||
Comment 9•12 years ago
|
||
Yes, I've seen it across platforms. Reports are here http://bit.ly/xTDlUy
Comment 10•12 years ago
|
||
So please check what has been changed between the builds from Feb 26 and 27.
OS: Linux → All
Hardware: x86 → All
Assignee | ||
Comment 11•12 years ago
|
||
Ok, found the bad boy: bug 711193. Tried with setting "browser.sessionstore.restore_on_demand" to false in the setup module and the test passed. What fix should we apply here? Should we bring up the tab before controller.waitForPageLoad (this is where we fail) ?
OS: All → Linux
Hardware: All → x86
Comment 12•12 years ago
|
||
Yeah, we should switch through all the open tabs.
OS: Linux → All
Hardware: x86 → All
Assignee | ||
Updated•12 years ago
|
Depends on: 731948
OS: All → Mac OS X
Hardware: All → x86
Summary: getTab(aIndex) helper function from tabs.js causes errors in Mozmill /testPrivateBrowsing tests for default branch → getTab(aIndex) helper function from controller causes errors in Mozmill /testPrivateBrowsing tests for default branch
Assignee | ||
Comment 13•12 years ago
|
||
Because tabs only load their content when clicked, we must click on them before waiting for the content. For testCloseWindow a new instantiation of tabBrowser must be made because we have a different controller.
Attachment #603688 -
Flags: review?(vlad.mozbugs)
Reporter | ||
Comment 14•12 years ago
|
||
Comment on attachment 603688 [details] [diff] [review] patch v1 (default) I see only a nit: variable declarations must be separated from callbacks or other code blocks but I will not - this fix for that, because the initial test file was not compliant with these code standards. + from me, over to Anthony to approve this fix
Attachment #603688 -
Flags: review?(vlad.mozbugs)
Attachment #603688 -
Flags: review?(anthony.s.hughes)
Attachment #603688 -
Flags: review+
Comment 15•12 years ago
|
||
Comment on attachment 603688 [details] [diff] [review] patch v1 (default) > // Check if all local pages were re-loaded and show their content > for (var i = 0; i < LOCAL_TEST_PAGES.length; i++) { >+ tabBrowser = new tabs.tabBrowser(controller); This line should not be inside the for loop, otherwise it needlessly gets reinitialized with every iteration.
Attachment #603688 -
Flags: review?(anthony.s.hughes) → review-
Assignee | ||
Comment 16•12 years ago
|
||
Moved the line before the for loop.
Attachment #603688 -
Attachment is obsolete: true
Attachment #604347 -
Flags: review?(anthony.s.hughes)
Comment 17•12 years ago
|
||
Comment on attachment 604347 [details] [diff] [review] patch v2 (default) [landed] Landed: http://hg.mozilla.org/qa/mozmill-tests/rev/47451d564fff (default)
Attachment #604347 -
Flags: review?(anthony.s.hughes) → review+
Attachment #604347 -
Attachment description: patch v2 (default) → patch v2 (default) [landed]
Comment 18•12 years ago
|
||
Please verify with tomorrow's testrun.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 19•12 years ago
|
||
http://mozmill-release.blargon7.com/#/functional/reports?branch=13.0&platform=All&from=2012-03-12&to=2012-03-12 No errors - verified as the patch was intended only for the default branch
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
Component: Mozmill Shared Modules → Mozmill Tests
Updated•12 years ago
|
Whiteboard: [mozmill-test-failure] → [lib]
Updated•12 years ago
|
Whiteboard: [lib] → [lib][mozmill-test-failure]
Updated•5 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•