Closed Bug 1132030 Opened 10 years ago Closed 10 years ago

browser_webapi.js is going to permafail when Gecko 38 merges to Aurora

Categories

(Firefox :: Search, defect)

defect
Not set
critical
Points:
2

Tracking

()

VERIFIED FIXED
Firefox 38
Iteration:
38.3 - 23 Feb
Tracking Status
firefox38 --- verified

People

(Reporter: RyanVM, Assigned: mossop)

References

Details

Attachments

(1 file, 1 obsolete file)

[Tracking Requested - why for this release]: Test permafail when Gecko 38 merges to Aurora. https://treeherder.mozilla.org/logviewer.html#?job_id=4859852&repo=try 23:32:20 INFO - 1501 INFO TEST-START | browser/components/search/test/browser_webapi.js 23:32:23 INFO - 1502 INFO checking window state 23:32:23 INFO - 1503 INFO Entering test test_working_AddSearchProvider 23:32:23 INFO - 1504 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/browser/components/search/test/webapi.html?AddSearchProvider:%5B%22http%3A%2F%2Fexample.com%2Fbrowser%2Fbrowser%2Fcomponents%2Fsearch%2Ftest%2FtestEngine.xml%22%5D" line: 0}] 23:32:23 INFO - 1505 INFO must wait for load 23:32:23 INFO - 1506 INFO must wait for focus 23:32:23 INFO - 1507 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the confirmation dialog. 23:32:23 INFO - 1508 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should have seen the right install message 23:32:23 INFO - 1509 INFO Leaving test test_working_AddSearchProvider 23:32:23 INFO - 1510 INFO Entering test test_HTTP_AddSearchProvider 23:32:23 INFO - 1511 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/browser/components/search/test/webapi.html?AddSearchProvider:%5B%22HTTP%3A%2F%2Fexample.com%2Fbrowser%2Fbrowser%2Fcomponents%2Fsearch%2Ftest%2FtestEngine.xml%22%5D" line: 0}] 23:32:23 INFO - 1512 INFO must wait for load 23:32:23 INFO - 1513 INFO must wait for focus 23:32:23 INFO - 1514 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the confirmation dialog. 23:32:23 INFO - 1515 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should have seen the right install message 23:32:23 INFO - 1516 INFO Leaving test test_HTTP_AddSearchProvider 23:32:23 INFO - 1517 INFO Entering test test_relative_AddSearchProvider 23:32:23 INFO - 1518 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/browser/components/search/test/webapi.html?AddSearchProvider:%5B%22testEngine.xml%22%5D" line: 0}] 23:32:23 INFO - 1519 INFO must wait for load 23:32:23 INFO - 1520 INFO must wait for focus 23:32:23 INFO - 1521 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the confirmation dialog. 23:32:23 INFO - 1522 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should have seen the right install message 23:32:23 INFO - 1523 INFO Leaving test test_relative_AddSearchProvider 23:32:23 INFO - 1524 INFO Entering test test_invalid_AddSearchProvider 23:32:23 INFO - 1525 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/browser/components/search/test/webapi.html?AddSearchProvider:%5B%22z%3A%2F%2Ffoobar%22%5D" line: 0}] 23:32:23 INFO - 1526 INFO must wait for load 23:32:23 INFO - 1527 INFO must wait for focus 23:32:23 INFO - 1528 INFO Console message: [JavaScript Error: "Invalid argument passed to window.sidebar.addSearchEngine: Unsupported search engine URL: [xpconnect wrapped nsIURI]" {file: "resource://gre/components/MainProcessSingleton.js" line: 61}] 23:32:23 INFO - 1529 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the alert dialog. 23:32:23 INFO - 1530 INFO TEST-UNEXPECTED-FAIL | browser/components/search/test/browser_webapi.js | Should have seen the right error message - Got This search engine isn't supported by Firefox Developer Edition and can't be installed., expected This search engine isn't supported by Nightly and can't be installed. 23:32:23 INFO - Stack trace: 23:32:23 INFO - chrome://mochikit/content/browser-test.js:test_is:851 23:32:23 INFO - chrome://mochitests/content/browser/browser/components/search/test/browser_webapi.js:test_invalid_AddSearchProvider:71 23:32:23 INFO - self-hosted:InterpretGeneratorResume:702 23:32:23 INFO - self-hosted:next:610 23:32:23 INFO - Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:867:23 23:32:23 INFO - this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:746:7 23:32:23 INFO - this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:688:37 23:32:23 INFO - openModalWindow@resource://gre/components/nsPrompter.js:370:5 23:32:23 INFO - ModalPrompter.prototype.openPrompt@resource://gre/components/nsPrompter.js:553:9 23:32:23 INFO - ModalPrompter.prototype.confirmEx@resource://gre/components/nsPrompter.js:697:9 23:32:23 INFO - Prompter.prototype.confirmEx@resource://gre/components/nsPrompter.js:79:16 23:32:23 INFO - SRCH_SVC_confirmAddEngine@resource://gre/components/nsSearchService.js:1561:20 23:32:23 INFO - SRCH_ENG_onLoad@resource://gre/components/nsSearchService.js:1673:26 23:32:23 INFO - SRCH_loadStopR@resource://gre/components/nsSearchService.js:359:7 23:32:23 INFO - 1531 INFO Leaving test test_invalid_AddSearchProvider 23:32:23 INFO - 1532 INFO Entering test test_missing_AddSearchProvider 23:32:23 INFO - 1533 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/browser/components/search/test/webapi.html?AddSearchProvider:%5B%22http%3A%2F%2Fexample.com%2Fbrowser%2Fbrowser%2Fcomponents%2Fsearch%2Ftest%2Ffoobar.xml%22%5D" line: 0}] 23:32:23 INFO - 1534 INFO must wait for load 23:32:23 INFO - 1535 INFO must wait for focus 23:32:23 INFO - 1536 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the alert dialog. 23:32:23 INFO - 1537 INFO TEST-UNEXPECTED-FAIL | browser/components/search/test/browser_webapi.js | Should have seen the right error message - Got Firefox Developer Edition could not download the search plugin from: 23:32:23 INFO - http://example.com/browser/browser/components/search/test/foobar.xml, expected Nightly could not download the search plugin from: 23:32:23 INFO - http://example.com/browser/browser/components/search/test/foobar.xml 23:32:23 INFO - Stack trace: 23:32:23 INFO - chrome://mochikit/content/browser-test.js:test_is:851 23:32:23 INFO - chrome://mochitests/content/browser/browser/components/search/test/browser_webapi.js:test_missing_AddSearchProvider:84 23:32:23 INFO - self-hosted:InterpretGeneratorResume:702 23:32:23 INFO - self-hosted:next:610 23:32:23 INFO - Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:867:23 23:32:23 INFO - this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:746:7 23:32:23 INFO - this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:688:37 23:32:23 INFO - openModalWindow@resource://gre/components/nsPrompter.js:370:5 23:32:23 INFO - ModalPrompter.prototype.openPrompt@resource://gre/components/nsPrompter.js:553:9 23:32:23 INFO - ModalPrompter.prototype.alert@resource://gre/components/nsPrompter.js:605:9 23:32:23 INFO - MainProcessSingleton.prototype.addSearchEngine@resource://gre/components/MainProcessSingleton.js:69:7 23:32:23 INFO - 1538 INFO Leaving test test_missing_AddSearchProvider 23:32:23 INFO - 1539 INFO Entering test test_working_addSearchEngine_xml 23:32:24 INFO - 1540 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/browser/components/search/test/webapi.html?addSearchEngine:%5B%22http%3A%2F%2Fexample.com%2Fbrowser%2Fbrowser%2Fcomponents%2Fsearch%2Ftest%2FtestEngine.xml%22%2C%22%22%2C%22%22%2C%22%22%5D" line: 0}] 23:32:24 INFO - 1541 INFO must wait for load 23:32:24 INFO - 1542 INFO must wait for focus 23:32:24 INFO - 1543 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the confirmation dialog. 23:32:24 INFO - 1544 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should have seen the right install message 23:32:24 INFO - 1545 INFO Leaving test test_working_addSearchEngine_xml 23:32:24 INFO - 1546 INFO Entering test test_working_addSearchEngine_src 23:32:25 INFO - 1547 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/browser/components/search/test/webapi.html?addSearchEngine:%5B%22http%3A%2F%2Fexample.com%2Fbrowser%2Fbrowser%2Fcomponents%2Fsearch%2Ftest%2FtestEngine.src%22%2C%22%22%2C%22%22%2C%22%22%5D" line: 0}] 23:32:25 INFO - 1548 INFO must wait for load 23:32:25 INFO - 1549 INFO must wait for focus 23:32:25 INFO - 1550 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the confirmation dialog. 23:32:25 INFO - 1551 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should have seen the right install message 23:32:25 INFO - 1552 INFO Leaving test test_working_addSearchEngine_src 23:32:25 INFO - 1553 INFO Entering test test_relative_addSearchEngine_xml 23:32:25 INFO - 1554 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/browser/components/search/test/webapi.html?addSearchEngine:%5B%22testEngine.xml%22%2C%22%22%2C%22%22%2C%22%22%5D" line: 0}] 23:32:25 INFO - 1555 INFO must wait for load 23:32:25 INFO - 1556 INFO must wait for focus 23:32:25 INFO - 1557 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the confirmation dialog. 23:32:25 INFO - 1558 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should have seen the right install message 23:32:25 INFO - 1559 INFO Leaving test test_relative_addSearchEngine_xml 23:32:25 INFO - 1560 INFO Entering test test_relative_addSearchEngine_src 23:32:26 INFO - 1561 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/browser/components/search/test/webapi.html?addSearchEngine:%5B%22testEngine.src%22%2C%22%22%2C%22%22%2C%22%22%5D" line: 0}] 23:32:26 INFO - 1562 INFO must wait for load 23:32:26 INFO - 1563 INFO must wait for focus 23:32:26 INFO - 1564 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the confirmation dialog. 23:32:26 INFO - 1565 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should have seen the right install message 23:32:26 INFO - 1566 INFO Leaving test test_relative_addSearchEngine_src 23:32:26 INFO - 1567 INFO Entering test test_invalid_addSearchEngine 23:32:26 INFO - 1568 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/browser/components/search/test/webapi.html?addSearchEngine:%5B%22z%3A%2F%2Ffoobar%22%2C%22%22%2C%22%22%2C%22%22%5D" line: 0}] 23:32:26 INFO - 1569 INFO must wait for load 23:32:26 INFO - 1570 INFO must wait for focus 23:32:26 INFO - 1571 INFO Console message: [JavaScript Error: "Invalid argument passed to window.sidebar.addSearchEngine: Unsupported search engine URL: [xpconnect wrapped nsIURI]" {file: "resource://gre/components/MainProcessSingleton.js" line: 61}] 23:32:27 INFO - 1572 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the alert dialog. 23:32:27 INFO - 1573 INFO TEST-UNEXPECTED-FAIL | browser/components/search/test/browser_webapi.js | Should have seen the right error message - Got This search engine isn't supported by Firefox Developer Edition and can't be installed., expected This search engine isn't supported by Nightly and can't be installed. 23:32:27 INFO - Stack trace: 23:32:27 INFO - chrome://mochikit/content/browser-test.js:test_is:851 23:32:27 INFO - chrome://mochitests/content/browser/browser/components/search/test/browser_webapi.js:test_invalid_addSearchEngine:144 23:32:27 INFO - self-hosted:InterpretGeneratorResume:702 23:32:27 INFO - self-hosted:next:610 23:32:27 INFO - Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:867:23 23:32:27 INFO - this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:746:7 23:32:27 INFO - this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:688:37 23:32:27 INFO - openModalWindow@resource://gre/components/nsPrompter.js:370:5 23:32:27 INFO - ModalPrompter.prototype.openPrompt@resource://gre/components/nsPrompter.js:553:9 23:32:27 INFO - ModalPrompter.prototype.confirmEx@resource://gre/components/nsPrompter.js:697:9 23:32:27 INFO - Prompter.prototype.confirmEx@resource://gre/components/nsPrompter.js:79:16 23:32:27 INFO - SRCH_SVC_confirmAddEngine@resource://gre/components/nsSearchService.js:1561:20 23:32:27 INFO - SRCH_ENG_onLoad@resource://gre/components/nsSearchService.js:1673:26 23:32:27 INFO - SRCH_loadStopR@resource://gre/components/nsSearchService.js:359:7 23:32:27 INFO - 1574 INFO Leaving test test_invalid_addSearchEngine 23:32:27 INFO - 1575 INFO Entering test test_invalid_icon_addSearchEngine 23:32:27 INFO - 1576 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/browser/components/search/test/webapi.html?addSearchEngine:%5B%22http%3A%2F%2Fexample.com%2Fbrowser%2Fbrowser%2Fcomponents%2Fsearch%2Ftest%2FtestEngine.src%22%2C%22z%3A%2F%2Ffoobar%22%2C%22%22%2C%22%22%5D" line: 0}] 23:32:27 INFO - 1577 INFO must wait for load 23:32:27 INFO - 1578 INFO must wait for focus 23:32:27 INFO - 1579 INFO Console message: [JavaScript Error: "Invalid argument passed to window.sidebar.addSearchEngine: Unsupported search icon URL: [xpconnect wrapped nsIURI]" {file: "resource://gre/components/MainProcessSingleton.js" line: 61}] 23:32:27 INFO - 1580 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the alert dialog. 23:32:27 INFO - 1581 INFO TEST-UNEXPECTED-FAIL | browser/components/search/test/browser_webapi.js | Should have seen the right error message - Got This search engine isn't supported by Firefox Developer Edition and can't be installed., expected This search engine isn't supported by Nightly and can't be installed. 23:32:27 INFO - Stack trace: 23:32:27 INFO - chrome://mochikit/content/browser-test.js:test_is:851 23:32:27 INFO - chrome://mochitests/content/browser/browser/components/search/test/browser_webapi.js:test_invalid_icon_addSearchEngine:156 23:32:27 INFO - self-hosted:InterpretGeneratorResume:702 23:32:27 INFO - self-hosted:next:610 23:32:27 INFO - Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:867:23 23:32:27 INFO - this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:746:7 23:32:27 INFO - this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:688:37 23:32:27 INFO - openModalWindow@resource://gre/components/nsPrompter.js:370:5 23:32:27 INFO - ModalPrompter.prototype.openPrompt@resource://gre/components/nsPrompter.js:553:9 23:32:27 INFO - ModalPrompter.prototype.alert@resource://gre/components/nsPrompter.js:605:9 23:32:27 INFO - MainProcessSingleton.prototype.addSearchEngine@resource://gre/components/MainProcessSingleton.js:69:7 23:32:27 INFO - 1582 INFO Leaving test test_invalid_icon_addSearchEngine 23:32:27 INFO - 1583 INFO Entering test test_missing_addSearchEngine 23:32:28 INFO - 1584 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/browser/components/search/test/webapi.html?addSearchEngine:%5B%22http%3A%2F%2Fexample.com%2Fbrowser%2Fbrowser%2Fcomponents%2Fsearch%2Ftest%2Ffoobar.xml%22%2C%22%22%2C%22%22%2C%22%22%5D" line: 0}] 23:32:28 INFO - 1585 INFO must wait for load 23:32:28 INFO - 1586 INFO must wait for focus 23:32:28 INFO - 1587 INFO TEST-PASS | browser/components/search/test/browser_webapi.js | Should see the alert dialog. 23:32:28 INFO - 1588 INFO TEST-UNEXPECTED-FAIL | browser/components/search/test/browser_webapi.js | Should have seen the right error message - Got Firefox Developer Edition could not download the search plugin from: 23:32:28 INFO - http://example.com/browser/browser/components/search/test/foobar.xml, expected Nightly could not download the search plugin from: 23:32:28 INFO - http://example.com/browser/browser/components/search/test/foobar.xml 23:32:28 INFO - Stack trace: 23:32:28 INFO - chrome://mochikit/content/browser-test.js:test_is:851 23:32:28 INFO - chrome://mochitests/content/browser/browser/components/search/test/browser_webapi.js:test_missing_addSearchEngine:169 23:32:28 INFO - self-hosted:InterpretGeneratorResume:702 23:32:28 INFO - self-hosted:next:610 23:32:28 INFO - Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:867:23 23:32:28 INFO - this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:746:7 23:32:28 INFO - this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:688:37 23:32:28 INFO - openModalWindow@resource://gre/components/nsPrompter.js:370:5 23:32:28 INFO - ModalPrompter.prototype.openPrompt@resource://gre/components/nsPrompter.js:553:9 23:32:28 INFO - ModalPrompter.prototype.alert@resource://gre/components/nsPrompter.js:605:9 23:32:28 INFO - MainProcessSingleton.prototype.addSearchEngine@resource://gre/components/MainProcessSingleton.js:69:7 23:32:28 INFO - 1589 INFO Leaving test test_missing_addSearchEngine 23:32:28 INFO - 1590 INFO MEMORY STAT vsize after test: 675233792 23:32:28 INFO - 1591 INFO MEMORY STAT residentFast after test: 183234560 23:32:28 INFO - 1592 INFO MEMORY STAT heapAllocated after test: 71636492 23:32:28 INFO - 1593 INFO TEST-OK | browser/components/search/test/browser_webapi.js | took 8180ms
Flags: needinfo?(dtownsend)
Assignee: nobody → dtownsend
Points: --- → 1
Flags: qe-verify-
Flags: needinfo?(dtownsend)
Flags: firefox-backlog+
Status: NEW → ASSIGNED
Iteration: --- → 38.3 - 23 Feb
Attached patch patch (obsolete) — Splinter Review
This makes the test use the messages straight from the locale.
Attachment #8564367 - Flags: review?(felipc)
Comment on attachment 8564367 [details] [diff] [review] patch Applied this with my other patches. Still hitting one failure: https://treeherder.mozilla.org/logviewer.html#?job_id=4937133&repo=try
Attachment #8564367 - Flags: feedback-
Attached patch patchSplinter Review
Missed one
Attachment #8564367 - Attachment is obsolete: true
Attachment #8564367 - Flags: review?(felipc)
Attachment #8564551 - Flags: review?(florian)
Attachment #8564551 - Flags: review?(florian) → review+
Points: 1 → 2
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
Fixed while I was in the middle of tracking, since it's landed on trunk now - not tracking :)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: