Closed Bug 1523577 Opened 7 years ago Closed 5 years ago

GeckoNetworkManager is not compatible with isolatedProcess

Categories

(Core :: Security: Process Sandboxing, defect, P1)

ARM
Android
defect

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox67 --- wontfix
firefox88 --- fixed

People

(Reporter: gcp, Assigned: owlish)

References

(Blocks 1 open bug)

Details

(Whiteboard: [geckoview:m89][geckoview:m88])

Attachments

(3 files)

E/GeckoCrashHandler(16760): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
E/GeckoCrashHandler(16760): java.lang.NullPointerException: missing IConnectivityManager
E/GeckoCrashHandler(16760): at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:54)
E/GeckoCrashHandler(16760): at android.net.ConnectivityManager.<init>(ConnectivityManager.java:1404)
E/GeckoCrashHandler(16760): at android.app.ContextImpl$12.createService(ContextImpl.java:413)
E/GeckoCrashHandler(16760): at android.app.ContextImpl$ServiceFetcher.getService(ContextImpl.java:298)
E/GeckoCrashHandler(16760): at android.app.ContextImpl.getSystemService(ContextImpl.java:1838)
E/GeckoCrashHandler(16760): at android.content.ContextWrapper.getSystemService(ContextWrapper.java:562)
E/GeckoCrashHandler(16760): at org.mozilla.gecko.GeckoNetworkManager.updateNetworkStateAndConnectionType(GeckoNetworkManager.java:305)
E/GeckoCrashHandler(16760): at org.mozilla.gecko.GeckoNetworkManager.performActionsForStateEvent(GeckoNetworkManager.java:264)
E/GeckoCrashHandler(16760): at org.mozilla.gecko.GeckoNetworkManager.handleManagerEvent(GeckoNetworkManager.java:183)
E/GeckoCrashHandler(16760): at org.mozilla.gecko.GeckoNetworkManager.enableNotifications(GeckoNetworkManager.java:141)
E/GeckoCrashHandler(16760): at org.mozilla.gecko.GeckoAppShell$2.run(GeckoAppShell.java:1659)

It's calling getSystemService(Context.CONNECTIVITY_SERVICE);

All the things it listens to will have to be done in the main process.

Blocks: 1498614
Priority: -- → P3
Whiteboard: [geckoview:m85]
Assignee: nobody → bugzeeeeee
Whiteboard: [geckoview:m85] → [geckoview:m85][geckoview:m87]
Priority: P3 → P1
Assignee: bugzeeeeee → nobody
Priority: P1 → P2
Whiteboard: [geckoview:m85][geckoview:m87] → [geckoview:m85]
Assignee: nobody → bugzeeeeee
Status: NEW → ASSIGNED
Pushed by istorozhko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cd5376dec81c Don't initialize GeckoViewStateListener in GeckoThread if on a child process r=geckoview-reviewers,aklotz

That patch^ is actually for this bug https://bugzilla.mozilla.org/show_bug.cgi?id=1522890

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

Reopening as the patch above actually fixed this bug https://bugzilla.mozilla.org/show_bug.cgi?id=1522890 <--- I updated its status

This one still needs work to do

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 87 Branch → ---
Whiteboard: [geckoview:m85] → [geckoview:m88]
Whiteboard: [geckoview:m88] → [geckoview:m89]
Priority: P2 → P1
Status: REOPENED → ASSIGNED

Depends on D108267

Pushed by istorozhko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e03b68ff607d Make sure we don't initialize tickler on child processes r=necko-reviewers,valentin
Pushed by istorozhko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/30a34933ceae Clean up dead fennec code r=geckoview-reviewers,agi
Status: ASSIGNED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
Whiteboard: [geckoview:m89] → [geckoview:m88]
Whiteboard: [geckoview:m88] → [geckoview:m89][geckoview:m88]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: