Open Bug 1849060 Opened 1 year ago Updated 1 year ago

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

Categories

(GeckoView :: Sandboxing, task, P1)

Unspecified
All

Tracking

(Not tracked)

People

(Reporter: owlish, Assigned: owlish)

References

(Blocks 1 open bug)

Details

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

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
You need to log in before you can comment on or make changes to this bug.