Closed Bug 1849060 Opened 1 year ago Closed 11 months ago

[gv-junit-fis] Receiving unexpected Principal within RecvNewWindowGlobal

Categories

(GeckoView Graveyard :: Sandboxing, task, P1)

Unspecified
All

Tracking

(firefox121 fixed)

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: owlish, Assigned: owlish)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fission:android:m2] [geckoview:2022q3][geckoview:m119?][fxdroid]])

Attachments

(1 file)

This happens during the error page load. The error message:

Receiving unexpected Principal (http://localhost:4245/assets/www/hello.html) within RecvNewWindowGlobal

MOZ_Assert org.mozilla.geckoview.test  A  Assertion failure: false (Receiving unexpected Principal), at /Users/owlish/code/gecko/dom/ipc/ContentParent.cpp:1330

(http://localhost:4245/assets/www/hello.html is the error page address) Happens because we are trying to load an HTTP resource as the error page in the wrong process. HTTP as error pages is not something that we can easily support even if we implement a custom channel for async redirect to process switch (see bugs 1673763 and 1848701 for context).

What's needed here:

  1. Make sure the undesirability of HTTP resource as the error page is communicated in the API documentation
  2. Consider having URI validation in GeckoView
  3. Change the error page URI in the tests

STR:

Run any of these with Fission enabled:

  • NavigationDelegateTest#loadUnknownHost
  • NavigationDelegateTest#loadUntrusted
  • NavigationDelegateTest#safebrowsingPhishing
  • NavigationDelegateTest#safebrowsingMalware
  • NavigationDelegateTest#safebrowsingUnwanted
  • NavigationDelegateTest#safebrowsingHarmful
No longer depends on: 1677190, 1837551
Whiteboard: [fission:android:m2] [geckoview:2022q3][geckoview:m115?] → [fission:android:m2] [geckoview:2022q3][geckoview:m119?]
Assignee: nobody → bugzeeeeee
Severity: -- → N/A
Priority: -- → P1
Whiteboard: [fission:android:m2] [geckoview:2022q3][geckoview:m119?] → [fission:android:m2] [geckoview:2022q3][geckoview:m119?][fxdroid]]
Duplicate of this bug: 1853282
Pushed by istorozhko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14791c645827 Use non-html links for error pages in tests r=geckoview-reviewers,zmckenney
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Product: GeckoView → GeckoView Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: