Closed Bug 1418210 Opened 7 years ago Closed 7 years ago

`mach mochitest browser/base/content/test/tabs/browser_opened_file_tab_navigated_to_web.js` fails locally

Categories

(Core :: Security: Process Sandboxing, defect)

x86_64
macOS
defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

When I run browser/base/content/test/tabs/browser_opened_file_tab_navigated_to_web.js locally with the following command, it hits timeout:
  ./mach mochitest browser/base/content/test/tabs/browser_opened_file_tab_navigated_to_web.js

it's because of the URL the test expects doesn't match due to symbolic link.
it expects file:///Users/arai/projects/mozilla-unified/obj-master/_tests/testing/mochitest/browser/browser/base/content/test/tabs/dummy_page.html?opened
but the actual URL that appears is file:///Users/arai/projects/mozilla-unified/browser/base/content/test/tabs/dummy_page.html?opened
and BrowserTestUtils.waitForNewTab ignores the tab, and waits for the next tab forever.
to be clear, the difference is
OBJDIR/_tests/testing/mochitest/browser/browser/base/content/test/tabs/dummy_page.html?opened
vs
TOPSRCDIR/browser/base/content/test/tabs/dummy_page.html?opened
OS: Unspecified → Mac OS X
Hardware: Unspecified → x86_64
this seems to be hiding another issue in bug 1416153
Blocks: 1416153
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Locally, test files in OBJDIR can be a symbolic link to the actual file in tree,
and the path generated from symbolic link is differ from the actual URI for the new tab.
This patch normalizes the symbolic link, so that the `uriString` matches to the actual URI.
Attachment #8930307 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8930307 [details] [diff] [review]
Normalize symbolic link for test file in browser/base/content/test/tabs/browser_opened_file_tab_navigated_to_web.js.

Review of attachment 8930307 [details] [diff] [review]:
-----------------------------------------------------------------

rs=me
Attachment #8930307 - Flags: review?(gijskruitbosch+bugs) → review+
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fe25958d6339
Normalize symbolic link for test file in browser/base/content/test/tabs/browser_opened_file_tab_navigated_to_web.js. r=Gijs
https://hg.mozilla.org/integration/mozilla-inbound/rev/fe25958d63393c748df119c3bf08254b83f41eae
Bug 1418210 - Normalize symbolic link for test file in browser/base/content/test/tabs/browser_opened_file_tab_navigated_to_web.js. r=Gijs
https://hg.mozilla.org/mozilla-central/rev/fe25958d6339
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: