| Index: third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp b/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp
|
| index 4ade71c32b6a51501765b9c4dc4f732300d27c9d..407b0f1037288ce90b63036f5736fbab111afa11 100644
|
| --- a/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp
|
| @@ -49,6 +49,15 @@ String IdentifiersFactory::createIdentifier() {
|
|
|
| // static
|
| String IdentifiersFactory::requestId(unsigned long identifier) {
|
| + // Odd request Ids are set by the browser. For those we use a PID of 0
|
| + // because for browser side navigations the PID may not be known when an event
|
| + // is sent because the renderer hasn't been created yet.
|
| + if (identifier & 1) {
|
| + StringBuilder builder;
|
| + builder.append("0.");
|
| + builder.appendNumber(identifier);
|
| + return builder.toString();
|
| + }
|
| return identifier ? addProcessIdPrefixTo(identifier) : String();
|
| }
|
|
|
|
|