mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1139678 - (Part 2) Update non-reader-able test URL in browser_readerMode.js. r=Gijs
This commit is contained in:
parent
aaa20d3d7c
commit
ff94ebea21
@ -490,7 +490,7 @@ let AboutReaderListener = {
|
||||
receiveMessage: function(message) {
|
||||
switch (message.name) {
|
||||
case "Reader:ParseDocument":
|
||||
this._articlePromise = ReaderMode.parseDocument(content.document);
|
||||
this._articlePromise = ReaderMode.parseDocument(content.document).catch(Cu.reportError);
|
||||
content.document.location = "about:reader?url=" + encodeURIComponent(message.data.url);
|
||||
break;
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ add_task(function* () {
|
||||
|
||||
// Load a new tab that is NOT reader-able.
|
||||
let newTab = gBrowser.selectedTab = gBrowser.addTab();
|
||||
yield promiseTabLoadEvent(newTab, TEST_PATH + "download_page.html");
|
||||
yield promiseTabLoadEvent(newTab, "about:robots");
|
||||
yield promiseWaitForCondition(() => readerButton.hidden);
|
||||
is_element_hidden(readerButton, "Reader mode button is not present on a non-reader-able page");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user