Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix performance interface timing member #25205
Conversation
highfive
commented
Dec 7, 2019
|
Heads up! This PR modifies the following files:
|
|
When I run
I'm trying to find out the cause of this error. |
|
@jdm impl PerformanceMethods for Performance {
// FIXME(avada): this should be deprecated in the future, but some sites still use it
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html#performance-timing-attribute
fn Timing(&self) -> DomRoot<PerformanceNavigationTiming> {
debug!("#25205 call Timing function");
let entries = self.GetEntriesByType(DOMString::from("navigation"));
....And, I investigated when each function was called.
From the above results, it seems that there is a timing when Is there a way to investigate the cause of the problem? |
|
Yes, this is #24468. I believe I have described the solution I have in mind that in that issue; let me know if it is unclear at all! |
|
Oh, sorry, I didn't read your last message closely enough. I'll try and figure out what to do. |
|
@shnmorimoto Do either of the following trigger the problem? <iframe src="javascript:console.log(performance.timing)"></iframe><iframe srcdoc="<script>console.log(performance.timing)</script>"></iframe> |
|
@jdm Thanks! Neither way caused problems. <!DOCTYPE html>
<html>
<head>
<title>iframe 1</title>
</head>
<body>
Hello World.
<iframe src="javascript:console.log(performance.timing)"></iframe>
</body>
</html><!DOCTYPE html>
<html>
<head>
<title>iframe 2</title>
</head>
<body>
Hello World.
<iframe srcdoc="<script>console.log(performance.timing)</script>"></iframe>
</body>
</html> |
|
@shnmorimoto I ended up using a debugger to figure out what was going on - I set a breakpoint in |
|
@jdm Thank you for finding the cause and explaining how to way to find out. I understand the cause. I'll try to fix it. |
2e91f26
to
b0cabb7
|
I've fixed the |
b0cabb7
to
aba4f0e
|
@bors-servo try=wpt |
…ember, r=<try> Fix performance interface timing member <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23330 and #24468 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
@bors-servo r+ |
|
|
…ember, r=jdm Fix performance interface timing member <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23330 and #24468 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
@bors-servo retry |
…ember, r=jdm Fix performance interface timing member <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23330 and #24468 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
@bors-servo retry |
…ember, r=jdm Fix performance interface timing member <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23330 and #24468 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
shnmorimoto commentedDec 7, 2019
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors