Closed Bug 1486525 Opened 6 years ago Closed 6 years ago

Add GeckoView test for onLoadRequest redirect handling

Categories

(GeckoView :: General, enhancement, P3)

53 Branch
All
Android
enhancement

Tracking

(firefox63 fixed)

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: droeh, Assigned: droeh)

References

Details

Attachments

(1 file)

We need to add a test for the redirect onLoadRequest handling introduced in bug 1478171.
Comment on attachment 9004558 [details] [diff] [review]
Test redirect onLoadRequest handling

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

::: mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/NavigationDelegateTest.kt
@@ +203,5 @@
>  
> +    @Test fun redirectLoad() {
> +        assumeThat(sessionRule.env.isAutomation, equalTo(true))
> +
> +        val uri = "http://example.org/tests/robocop/simple_redirect.sjs?http://example.org/tests/robocop/robocop_blank_02.html"

Use `val uri = "http://example.org/tests/robocop/simple_redirect.sjs?$redirectUri"

@@ +204,5 @@
> +    @Test fun redirectLoad() {
> +        assumeThat(sessionRule.env.isAutomation, equalTo(true))
> +
> +        val uri = "http://example.org/tests/robocop/simple_redirect.sjs?http://example.org/tests/robocop/robocop_blank_02.html"
> +        val redirectUri = "http://example.org/tests/robocop/robocop_blank_02.html"

Does it still work if you change the target URL to what `createTestUrl(HELLO_HTML_PATH)` returns? I'd rather have us use our GV test pages as much as possible.
Attachment #9004558 - Flags: review?(nchen) → review+
Pushed by droeh@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f22d0641fd3d
Add NavigationDelegateTest.redirectLoad() to test redirect onLoadRequest handling. r=jchen
https://hg.mozilla.org/mozilla-central/rev/f22d0641fd3d
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
I @Ignored this test as part of the backout of bug 1441059 and bug 1478171; reopening so we remember to reenable the test when redirect onLoadRequest handling is working again.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to Dylan Roeh (:droeh) from comment #5)
> I @Ignored this test as part of the backout of bug 1441059 and bug 1478171;
> reopening so we remember to reenable the test when redirect onLoadRequest
> handling is working again.

The test was reenabled as part of bug 1478171; closing this.
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Product: Firefox for Android → GeckoView
Target Milestone: Firefox 63 → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: