mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 11:27:55 +00:00
Bug 666869 - Crash [@ nsGlobalWindow::GetPerformance]. r=smaug
This commit is contained in:
parent
9e6735ba79
commit
ce91f8d4ca
17
dom/base/crashtests/666869.html
Normal file
17
dom/base/crashtests/666869.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
var f = document.getElementById("f");
|
||||
var frameWin = f.contentWindow;
|
||||
document.body.removeChild(f);
|
||||
frameWin.performance;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="boom();"><iframe id="f" src="data:text/html,1"></iframe></body>
|
||||
</html>
|
@ -27,3 +27,4 @@ load 601247.html
|
||||
load 609560-1.xhtml
|
||||
load 612018-1.html
|
||||
load 637116.html
|
||||
load 666869.html
|
||||
|
@ -2987,6 +2987,9 @@ nsGlobalWindow::GetPerformance(nsIDOMPerformance** aPerformance)
|
||||
|
||||
if (nsGlobalWindow::HasPerformanceSupport()) {
|
||||
if (!mPerformance) {
|
||||
if (!mDoc) {
|
||||
return NS_OK;
|
||||
}
|
||||
nsRefPtr<nsDOMNavigationTiming> timing = mDoc->GetNavigationTiming();
|
||||
if (timing) {
|
||||
mPerformance = new nsPerformance(timing);
|
||||
|
Loading…
x
Reference in New Issue
Block a user