Closed Bug 1730481 Opened 3 years ago Closed 3 years ago

Remove workaround for localhost browser chrome test as added by bug 1553849

Categories

(Remote Protocol :: CDP, enhancement, P3)

enhancement

Tracking

(firefox94 fixed)

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: whimboo, Assigned: etienne)

References

Details

Attachments

(1 file)

Follow-up from bug 1553849, which added workarounds for browser chrome tests to check offline mode also for localhost. With bug 1634246 fixed these are no longer necessary anymore.

Since Bug 1634246 got resolved, connections to localhost can be
blocked when in offline mode. This commit now makes use of that
in the testing of the offline-part of emulateNetworkConditions.

Assignee: nobody → etienne
Status: NEW → ASSIGNED

I reuploaded a new commit / with a fresh commit message, so https://phabricator.services.mozilla.com/D125040 is no longer needed.

Attachment #9240882 - Attachment description: Bug 1730481 - Remove workaround for localhost tests r?whimboo → Bug 1730481 - [remote] Remove workaround for localhost CDP browser chrome tests
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2d025ff107cc [remote] Remove workaround for localhost CDP browser chrome tests r=whimboo,webdriver-reviewers

Backed out for causing mochitest-remote failures on browser_emulateNetworkConditions.js.

Flags: needinfo?(etienne)

As it looks like the failures only happen on these builds which use networking on the socket channel:

https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&resultStatus=success%2Ctestfailed%2Cbusted%2Cexception%2Cusercancel&revision=2d025ff107cc08664a90e3da1640aee9e9b3c304&searchStr=remote%2Cmochi

Does that specific feature as added via bug 1634246 require a dedicated patch? Nihanth and Valentin, could you please help?

Flags: needinfo?(valentin.gosu)
Flags: needinfo?(nhnt11)
Flags: needinfo?(etienne)

Kershaw, do you know if the patch in bug 1634246 requires a follow-up for socket process?

Flags: needinfo?(nhnt11) → needinfo?(kershaw)

(In reply to Nihanth Subramanya [:nhnt11] from comment #6)

Kershaw, do you know if the patch in bug 1634246 requires a follow-up for socket process?

I think we need to let socket process know that the pref network.disable-localhost-when-offline is changed. To do this, we need to add network.disable-localhost-when-offline in this array.
I'll file another bug to do this.

Flags: needinfo?(valentin.gosu)
Flags: needinfo?(kershaw)

Since the tests added in bug 1634246 don't fail for socket process, we should probably see if they're running correctly on the socket process.

Depends on: 1730983

Great news. Thanks a lot for fixing it! We will push once that mentioned bug has been reached mozilla-central.

Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f60b7786873 [remote] Remove workaround for localhost CDP browser chrome tests r=whimboo,webdriver-reviewers
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: