Some of the Iframe sandbox mochitests crash on b2g

RESOLVED WORKSFORME

Status

()

Core
Security
--
critical
RESOLVED WORKSFORME
4 years ago
4 years ago

People

(Reporter: Martijn Wargers (dead), Unassigned)

Tracking

({crash})

Trunk
x86
Mac OS X
crash
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
These mochitests are crashing in the b2g emulator:
http://mxr.mozilla.org/mozilla-central/source/content/html/content/test/test_iframe_sandbox_inheritance.html?force=1
http://mxr.mozilla.org/mozilla-central/source/content/html/content/test/test_iframe_sandbox_navigation.html?force=1
http://mxr.mozilla.org/mozilla-central/source/content/html/content/test/test_iframe_sandbox_navigation2.html?force=1

With the url, I can see the crash also occuring when using the browser on b2g.

Updated

4 years ago
Keywords: crash

Comment 1

4 years ago
The easiest fix is to disable these tests on B2G.

The downside is that some B2G apps use iframe sandbox to provide security guarantees.

I won't have any spare time to look into these for at least a few weeks, I'm afraid.
(Reporter)

Comment 2

4 years ago
These tests are currently disabled on B2G, the point is to get them enabled.
Is there breakpad on b2g or some other way to get the stack for these crashes?
Flags: needinfo?(martijn.martijn)
(Reporter)

Comment 4

4 years ago
You should be able to get breakpad crashes, like described here: https://wiki.mozilla.org/B2G/QA/Tips_And_Tricks#Getting_crashes_off_the_Device
I tried to get stacktraces for browser crashes in the b2g emulator, but failed, see bug 902271, comment 2.

Comment 5

4 years ago
I thought that for these tests the main problem with B2G was that they open multiple new browsing contexts at once (using window.open), which causes problems on B2G ... is this a different problem?
(Reporter)

Comment 6

4 years ago
Created attachment 8454906 [details] [diff] [review]
904659.diff

Ok, it seems like these tests don't crash anymore on b2g, this patch would enable those tests: https://tbpl.mozilla.org/?tree=Try&rev=2992a3a6648b
Flags: needinfo?(martijn.martijn)
(Reporter)

Comment 7

4 years ago
I've filed bug 1037976 for enabling those tests on b2g emulator, I'm going to mark this bug as worksforme.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.