| Index: telemetry/third_party/snap-it/content_script.js
|
| diff --git a/telemetry/third_party/snap-it/content_script.js b/telemetry/third_party/snap-it/content_script.js
|
| index 1abfc1f5bcf61c6adeda10a6df6d49a81b763420..7164164ce79235f9d3dfc8799acb746308c91852 100644
|
| --- a/telemetry/third_party/snap-it/content_script.js
|
| +++ b/telemetry/third_party/snap-it/content_script.js
|
| @@ -4,26 +4,7 @@
|
| * @param {HTMLSerializer} htmlSerializer The HTMLSerializer.
|
| */
|
| function sendHTMLSerializerToExtension(htmlSerializer) {
|
| - var result = {
|
| - 'html': htmlSerializer.html,
|
| - 'frameHoles': htmlSerializer.frameHoles,
|
| - 'idToStyleIndex': htmlSerializer.idToStyleIndex,
|
| - 'idToStyleMap': htmlSerializer.idToStyleMap,
|
| - 'windowHeight': htmlSerializer.windowHeight,
|
| - 'windowWidth': htmlSerializer.windowWidth,
|
| - 'rootId': htmlSerializer.rootId,
|
| - 'rootStyleIndex': htmlSerializer.rootStyleIndex,
|
| - 'pseudoElementSelectorToCSSMap':
|
| - htmlSerializer.pseudoElementSelectorToCSSMap,
|
| - 'pseudoElementPlaceHolderIndex':
|
| - htmlSerializer.pseudoElementPlaceHolderIndex,
|
| - 'pseudoElementTestingStyleIndex':
|
| - htmlSerializer.pseudoElementStyleTestingIndex,
|
| - 'pseudoElementTestingStyleId': htmlSerializer.pseudoElementTestingStyleId,
|
| - 'unusedId': htmlSerializer.generateId(document),
|
| - 'frameIndex': htmlSerializer.iframeFullyQualifiedName(window)
|
| - };
|
| - chrome.runtime.sendMessage(result);
|
| + chrome.runtime.sendMessage(htmlSerializer.asDict());
|
| }
|
|
|
| var htmlSerializer = new HTMLSerializer();
|
|
|