Closed Bug 1153457 Opened 5 years ago Closed 3 years ago

Intermittent browser_RemoteWebNavigation.js | Uncaught exception - at :0 - Error: operation not possible on dead CPOW | Found an unexpected tab at the end of test run: dummy_page.html

Categories

(Toolkit :: General, defect, P3)

x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox48 --- wontfix
firefox49 --- wontfix
firefox50 --- wontfix
firefox51 --- wontfix
firefox52 --- fixed
firefox-esr52 --- fixed
firefox53 --- fixed
firefox54 --- fixed

People

(Reporter: KWierso, Assigned: mrbkap)

References

Details

(Keywords: intermittent-failure, Whiteboard: [stockwell fixed])

Attachments

(1 file)

13:55:45 INFO - 234 INFO TEST-START | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js
13:55:47 INFO - 235 INFO checking window state
13:55:47 INFO - 236 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource:///modules/sessionstore/TabState.jsm" line: 96}]
13:55:47 INFO - 237 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource:///modules/sessionstore/TabState.jsm" line: 96}]
13:55:47 INFO - 238 INFO Entering test test_referrer
13:55:47 INFO - 239 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should have loaded the right URL
13:55:47 INFO - 240 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should have the right referrer
13:55:47 INFO - 241 INFO Leaving test test_referrer
13:55:47 INFO - 242 INFO Entering test test_history
13:55:47 INFO - 243 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/toolkit/modules/tests/browser/dummy_page.html" line: 0}]
13:55:47 INFO - 244 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 40}]
13:55:47 INFO - 245 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 923}]
13:55:47 INFO - 246 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 923}]
13:55:47 INFO - 247 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 923}]
13:55:47 INFO - 248 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 923}]
13:55:47 INFO - 249 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 923}]
13:55:47 INFO - 250 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 923}]
13:55:47 INFO - 251 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 923}]
13:55:47 INFO - 252 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 923}]
13:55:47 INFO - 253 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://global/content/bindings/remote-browser.xml" line: 162}]
13:55:47 INFO - 254 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 41}]
13:55:47 INFO - 255 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource:///modules/sessionstore/TabState.jsm" line: 96}]
13:55:47 INFO - 256 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource:///modules/sessionstore/TabState.jsm" line: 96}]
13:55:47 INFO - 257 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/toolkit/modules/tests/browser/dummy_page.html" line: 0}]
13:55:47 INFO - 258 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should be two history items
13:55:47 INFO - 259 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should be at the right place in history
13:55:47 INFO - 260 INFO TEST-UNEXPECTED-FAIL | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Uncaught exception - at :0 - Error: operation not possible on dead CPOW
13:55:47 INFO - Stack trace:
13:55:47 INFO - Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:867:23
13:55:47 INFO - this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:746:7
13:55:47 INFO - this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:688:37
13:55:47 INFO - Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:688:5
13:55:47 INFO - this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:709:7
13:55:47 INFO - this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:671:7
13:55:47 INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:739:9
13:55:47 INFO - Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:662:7
13:55:47 INFO - SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:752:59
13:55:47 INFO - 261 INFO Leaving test test_history
13:55:47 INFO - 262 INFO Entering test test_flags
13:55:47 INFO - 263 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.org/browser/toolkit/modules/tests/browser/dummy_page.html" line: 0}]
13:55:47 INFO - 264 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 62}]
13:55:47 INFO - 265 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 63}]
13:55:47 INFO - 266 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 64}]
13:55:47 INFO - 267 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 64}]
13:55:47 INFO - 268 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 65}]
13:55:47 INFO - 269 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 65}]
13:55:47 INFO - 270 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource://gre/modules/Task.jsm" line: 407}]
13:55:47 INFO - 271 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource://gre/modules/Task.jsm" line: 409}]
13:55:47 INFO - 272 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource://gre/modules/Task.jsm" line: 412}]
13:55:47 INFO - 273 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource://gre/modules/Task.jsm" line: 422}]
13:55:47 INFO - 274 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource://gre/modules/Task.jsm" line: 426}]
13:55:47 INFO - 275 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource://gre/modules/Task.jsm" line: 431}]
13:55:47 INFO - 276 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource://gre/modules/Task.jsm" line: 432}]
13:55:47 INFO - 277 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 747}]
13:55:47 INFO - 278 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 747}]
13:55:47 INFO - 279 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 862}]
13:55:47 INFO - 280 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 864}]
13:55:47 INFO - 281 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 864}]
13:55:47 INFO - 282 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 866}]
13:55:47 INFO - 283 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochikit/content/browser-test.js" line: 866}]
13:55:48 INFO - 284 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/toolkit/modules/tests/browser/dummy_page.html" line: 0}]
13:55:48 INFO - 285 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should be one history item
13:55:48 INFO - 286 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should be at the right place in history
13:55:48 INFO - 287 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should have the right history entry
13:55:48 INFO - 288 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.org/browser/toolkit/modules/tests/browser/dummy_page.html" line: 0}]
13:55:48 INFO - 289 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 103}]
13:55:48 INFO - 290 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 104}]
13:55:48 INFO - 291 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 105}]
13:55:48 INFO - 292 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 105}]
13:55:48 INFO - 293 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 106}]
13:55:48 INFO - 294 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 106}]
13:55:49 INFO - 295 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should still be one history item
13:55:49 INFO - 296 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should be at the right place in history
13:55:49 INFO - 297 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should have the right history entry
13:55:49 INFO - 298 INFO Leaving test test_flags
13:55:49 INFO - 299 INFO Entering test test_badarguments
13:55:49 INFO - 300 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should have seen an exception from trying to pass some postdata
13:55:49 INFO - 301 INFO TEST-PASS | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Should have seen an exception from trying to pass some headers
13:55:49 INFO - 302 INFO Leaving test test_badarguments
13:55:49 INFO - 303 INFO Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/toolkit/modules/tests/browser/dummy_page.html" line: 0}]
13:55:49 INFO - 304 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 113}]
13:55:49 INFO - 305 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 114}]
13:55:49 INFO - 306 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 115}]
13:55:49 INFO - 307 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 115}]
13:55:49 INFO - 308 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 116}]
13:55:49 INFO - 309 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "chrome://mochitests/content/browser/toolkit/modules/tests/browser/browser_RemoteWebNavigation.js" line: 116}]
13:55:49 INFO - 310 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource:///modules/sessionstore/TabState.jsm" line: 96}]
13:55:49 INFO - 311 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource:///modules/sessionstore/TabState.jsm" line: 96}]
13:55:49 INFO - MEMORY STAT vsize after test: 21991402287104
13:55:49 INFO - MEMORY STAT residentFast after test: 472997888
13:55:49 INFO - 312 INFO TEST-OK | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | took 3653ms
13:55:49 INFO - 313 INFO TEST-UNEXPECTED-FAIL | toolkit/modules/tests/browser/browser_RemoteWebNavigation.js | Found an unexpected tab at the end of test run: http://example.org/browser/toolkit/modules/tests/browser/dummy_page.html - expected PASS
13:55:49 INFO - 314 INFO checking window state
13:55:49 INFO - 315 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource:///modules/sessionstore/TabState.jsm" line: 96}]
13:55:49 INFO - 316 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource:///modules/sessionstore/TabState.jsm" line: 96}]
13:55:49 INFO - 317 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource:///modules/sessionstore/TabState.jsm" line: 96}]
13:55:49 INFO - 318 INFO Console message: [JavaScript Warning: "unsafe CPOW usage" {file: "resource:///modules/sessionstore/TabState.jsm" line: 96}]
13:55:49 INFO - 319 INFO TEST-START | toolkit/modules/tests/browser/browser_Troubleshoot.js
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Bulk assigning P3 to all open intermittent bugs without a priority set in Firefox components per bug 1298978.
Priority: -- → P3
Currently the secondmost frequent dead CPOW orange in automation. Looks like it's always on line 82.

https://dxr.mozilla.org/mozilla-central/rev/1851b78b5a9673ee422f189b92e5f1e86b82a01c/toolkit/components/remotebrowserutils/tests/browser/browser_RemoteWebNavigation.js#82
> is(history.index, 0, "Should be at the right place in history");

Mike, can you please take a look? Or would this be a good mentored bug for Kevin?
:mrbkap, I recall you were doing a lot of work for dead CPOWs, any chance this falls into that pattern?  maybe you have pointers on how to fix this?
Flags: needinfo?(mrbkap)
Assignee: nobody → mrbkap
Flags: needinfo?(mrbkap)
Comment on attachment 8841091 [details]
Bug 1153457 - Remove CPOWs from browser_RemoteWebNavigation.js.

https://reviewboard.mozilla.org/r/115434/#review117546

::: toolkit/components/remotebrowserutils/tests/browser/browser_RemoteWebNavigation.js:116
(Diff revision 1)
>  
>    browser.webNavigation.loadURI(DUMMY2,
>                                  Ci.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY,
>                                  null, null, null);
>    yield waitForLoad();
> +  yield checkHistory(browser, 1, 0);

I feel like the arguments for `checkHistoryIndex` are self-explanatory, but the ones for `checkHistory` not so much. Would you mind adding some documentation to checkHistory, or passing in an object, like:

```
yield checkHistory(browser, { count: 1, index: 0 });
```
Attachment #8841091 - Flags: review?(mconley) → review+
Pushed by mrbkap@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e72421387bb8
Remove CPOWs from browser_RemoteWebNavigation.js. r=mconley
Flags: needinfo?(mrbkap)
Pushed by mrbkap@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ca1bd686d9c6
Remove CPOWs from browser_RemoteWebNavigation.js. r=mconley
https://hg.mozilla.org/mozilla-central/rev/ca1bd686d9c6
Status: REOPENED → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Whiteboard: [stockwell fixed]
You need to log in before you can comment on or make changes to this bug.