Bug 1669473 - [devtools] Fix a typo around event timings. r=Honza

Differential Revision: https://phabricator.services.mozilla.com/D92605
This commit is contained in:
Alexandre Poirot 2020-10-07 08:24:51 +00:00
parent 73a6605181
commit 434bebe5da
3 changed files with 3 additions and 3 deletions

View File

@ -534,7 +534,7 @@ const NetworkEventActor = protocol.ActorClassWithSpec(networkEventSpec, {
* @param object serverTimings
* Timing details extracted from the Server-Timing header.
*/
addSeverTimings(serverTimings) {
addServerTimings(serverTimings) {
if (serverTimings) {
this._serverTimings = serverTimings;
}

View File

@ -567,7 +567,7 @@ const NetworkEventActor = protocol.ActorClassWithSpec(networkEventSpec, {
* @param object serverTimings
* Timing details extracted from the Server-Timing header.
*/
addSeverTimings(serverTimings) {
addServerTimings(serverTimings) {
if (serverTimings) {
this._serverTimings = serverTimings;
}

View File

@ -390,7 +390,7 @@ NetworkObserver.prototype = {
if (httpActivity.owner) {
// Try extracting server timings. Note that they will be sent to the client
// in the `_onTransactionClose` method together with network event timings.
httpActivity.owner.addSeverTimings(serverTimings);
httpActivity.owner.addServerTimings(serverTimings);
} else {
// If the owner isn't set we need to create the network event and send
// it to the client. This happens in case where the request has been