Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocked script execution #70

Closed
callmesoul opened this issue May 5, 2019 · 11 comments
Closed

Blocked script execution #70

callmesoul opened this issue May 5, 2019 · 11 comments

Comments

@callmesoul
Copy link

import { Replayer } from 'rrweb'
const replayer = new Replayer(this.error.records);
replayer.play();

报错:

Blocked script execution in 'http://localhost:8080/error/57' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

用的vue框架

@Yuyz0112
Copy link
Member

Yuyz0112 commented May 5, 2019

Hi @callmesoul, this is the expected behavior of the replay sandbox. The design doc explained why we are not going to execute scripts, there is also a Chinese version of the design doc.

If your replayer is not working correctly, there may be some other bugs which are not related to this error message, you can provide the events log and I will try to debug it:)

@callmesoul
Copy link
Author

my event log:

[{"type":0,"data":{},"timestamp":1557039017570},{"type":1,"data":{},"timestamp":1557039017894},{"type":4,"data":{"href":"http://localhost:63342/frontend-sniper-explorer/dist/index.html?_ijt=kr3a109m4fkjpc8fua9b5itbb3","width":844,"height":937},"timestamp":1557039017894},{"type":2,"data":{"node":{"type":0,"childNodes":[{"type":1,"name":"html","publicId":"","systemId":"","id":2},{"type":2,"tagName":"html","attributes":{"lang":"en"},"childNodes":[{"type":2,"tagName":"head","attributes":{},"childNodes":[{"type":2,"tagName":"meta","attributes":{"charset":"UTF-8"},"childNodes":[],"id":5},{"type":2,"tagName":"title","attributes":{},"childNodes":[{"type":3,"textContent":"Title","id":7}],"id":6},{"type":2,"tagName":"script","attributes":{"type":"text/javascript","src":"http://localhost:63342/frontend-sniper-explorer/dist/frontend-sniper-explorer.js"},"childNodes":[],"id":8}],"id":4},{"type":2,"tagName":"body","attributes":{},"childNodes":[{"type":2,"tagName":"img","attributes":{"src":"http://localhost:63342/frontend-sniper-explorer/sdsda/asdsd.jpg"},"childNodes":[],"id":10},{"type":3,"textContent":" ","id":11},{"type":2,"tagName":"button","attributes":{},"childNodes":[{"type":3,"textContent":"123","id":13}],"id":12},{"type":3,"textContent":" ","id":14},{"type":2,"tagName":"button","attributes":{"onclick":"test()"},"childNodes":[{"type":3,"textContent":"456","id":16}],"id":15},{"type":2,"tagName":"script","attributes":{},"childNodes":[{"type":3,"textContent":"SCRIPT_PLACEHOLDER","id":18}],"id":17}],"id":9}],"id":3}],"id":1},"initialOffset":{"left":0,"top":0}},"timestamp":1557039017896},{"type":3,"data":{"source":1,"positions":[{"x":654,"y":172,"id":3,"timeOffset":0}]},"timestamp":1557039017899},{"type":3,"data":{"source":1,"positions":[{"x":815,"y":147,"id":3,"timeOffset":-446}]},"timestamp":1557039018399},{"type":3,"data":{"source":1,"positions":[{"x":821,"y":238,"id":3,"timeOffset":0}]},"timestamp":1557039024465},{"type":3,"data":{"source":1,"positions":[{"x":592,"y":297,"id":3,"timeOffset":-445},{"x":473,"y":313,"id":3,"timeOffset":-389},{"x":435,"y":313,"id":3,"timeOffset":-333},{"x":371,"y":310,"id":3,"timeOffset":-277},{"x":360,"y":305,"id":3,"timeOffset":-221},{"x":353,"y":300,"id":3,"timeOffset":-165},{"x":341,"y":297,"id":3,"timeOffset":-109},{"x":328,"y":297,"id":3,"timeOffset":-53}]},"timestamp":1557039024966},{"type":3,"data":{"source":2,"type":1,"id":3,"x":319,"y":303},"timestamp":1557039025106},{"type":3,"data":{"source":2,"type":0,"id":3,"x":319,"y":305},"timestamp":1557039025225},{"type":3,"data":{"source":2,"type":2,"id":3,"x":319,"y":305},"timestamp":1557039025225},{"type":3,"data":{"source":2,"type":1,"id":3,"x":331,"y":336},"timestamp":1557039025377},{"type":3,"data":{"source":1,"positions":[{"x":321,"y":298,"id":3,"timeOffset":-499},{"x":319,"y":300,"id":3,"timeOffset":-387},{"x":319,"y":304,"id":3,"timeOffset":-283},{"x":319,"y":307,"id":3,"timeOffset":-179},{"x":327,"y":326,"id":3,"timeOffset":-123},{"x":334,"y":345,"id":3,"timeOffset":-67},{"x":342,"y":355,"id":3,"timeOffset":-12}]},"timestamp":1557039025468},{"type":3,"data":{"source":2,"type":0,"id":3,"x":344,"y":358},"timestamp":1557039025513},{"type":3,"data":{"source":2,"type":2,"id":3,"x":344,"y":358},"timestamp":1557039025513},{"type":3,"data":{"source":1,"positions":[{"x":345,"y":360,"id":3,"timeOffset":-448},{"x":347,"y":362,"id":3,"timeOffset":-392},{"x":373,"y":360,"id":3,"timeOffset":-87},{"x":277,"y":292,"id":3,"timeOffset":-32}]},"timestamp":1557039025969},{"type":3,"data":{"source":1,"positions":[{"x":229,"y":252,"id":3,"timeOffset":-477},{"x":143,"y":176,"id":3,"timeOffset":-421},{"x":127,"y":155,"id":3,"timeOffset":-357},{"x":115,"y":125,"id":3,"timeOffset":-276},{"x":98,"y":107,"id":3,"timeOffset":-218},{"x":85,"y":92,"id":3,"timeOffset":-165},{"x":71,"y":81,"id":3,"timeOffset":-109},{"x":64,"y":73,"id":3,"timeOffset":-51}]},"timestamp":1557039026470},{"type":3,"data":{"source":2,"type":1,"id":12,"x":47,"y":26},"timestamp":1557039026970},{"type":3,"data":{"source":2,"type":5,"id":12},"timestamp":1557039026970},{"type":3,"data":{"source":1,"positions":[{"x":62,"y":64,"id":3,"timeOffset":-498},{"x":60,"y":56,"id":3,"timeOffset":-426},{"x":53,"y":46,"id":3,"timeOffset":-370},{"x":52,"y":37,"id":3,"timeOffset":-314},{"x":50,"y":33,"id":3,"timeOffset":-258},{"x":49,"y":31,"id":3,"timeOffset":-186},{"x":49,"y":29,"id":12,"timeOffset":-135}]},"timestamp":1557039026971},{"type":3,"data":{"source":2,"type":0,"id":12,"x":47,"y":26},"timestamp":1557039027081},{"type":3,"data":{"source":2,"type":2,"id":12,"x":47,"y":26},"timestamp":1557039027082},{"type":3,"data":{"source":1,"positions":[{"x":48,"y":26,"id":12,"timeOffset":-255},{"x":89,"y":72,"id":3,"timeOffset":-198},{"x":99,"y":83,"id":3,"timeOffset":-127},{"x":116,"y":113,"id":3,"timeOffset":-71}]},"timestamp":1557039027472},{"type":3,"data":{"source":2,"type":1,"id":3,"x":136,"y":136},"timestamp":1557039027636},{"type":3,"data":{"source":2,"type":6,"id":12},"timestamp":1557039027636},{"type":3,"data":{"source":2,"type":0,"id":3,"x":136,"y":136},"timestamp":1557039027737},{"type":3,"data":{"source":2,"type":2,"id":3,"x":136,"y":136},"timestamp":1557039027737},{"type":3,"data":{"source":1,"positions":[{"x":127,"y":130,"id":3,"timeOffset":-479},{"x":137,"y":136,"id":3,"timeOffset":-178},{"x":122,"y":89,"id":3,"timeOffset":-123},{"x":114,"y":69,"id":3,"timeOffset":-59},{"x":114,"y":64,"id":3,"timeOffset":-3}]},"timestamp":1557039027972},{"type":3,"data":{"source":1,"positions":[{"x":111,"y":36,"id":3,"timeOffset":-448},{"x":109,"y":29,"id":15,"timeOffset":-392},{"x":109,"y":25,"id":15,"timeOffset":-336},{"x":109,"y":22,"id":15,"timeOffset":-280},{"x":107,"y":19,"id":15,"timeOffset":-224},{"x":105,"y":18,"id":15,"timeOffset":-168},{"x":96,"y":16,"id":15,"timeOffset":-112},{"x":90,"y":15,"id":15,"timeOffset":-16}]},"timestamp":1557039028473},{"type":3,"data":{"source":2,"type":1,"id":15,"x":90,"y":15},"timestamp":1557039028578},{"type":3,"data":{"source":2,"type":5,"id":15},"timestamp":1557039028578},{"type":3,"data":{"source":2,"type":0,"id":15,"x":90,"y":15},"timestamp":1557039028681},{"type":3,"data":{"source":2,"type":2,"id":15,"x":90,"y":15},"timestamp":1557039028681}]

@Yuyz0112
Copy link
Member

Yuyz0112 commented Jun 5, 2019

@callmesoul I've tried to replay the events and looks like it can show your interactions.

debug

@callmesoul
Copy link
Author

i think becase i use Vue .
how you add iframe?
in vue page,i only import and use.
i can't see how to add iframe
@Yuyz0112

@callmesoul
Copy link
Author

i try it again.
it can throw error and is run normal

@MSohailMemon
Copy link

Hi @Yuyz0112, I need your help. My website is build on Angular 6 and I am creating an extension to record and replay testruns on my website. I am able to record events but I am not able to play them. When I inject the rrwebPlayer script it gives this error:
"Blocked script execution in 'about:blank' because the document's frame is sandboxed and the 'allow-scripts' permission is not set."

Can you please help me out?

Thanks

@Yuyz0112
Copy link
Member

@MSohailMemon could you share your recorded events for debugging?

@MSohailMemon
Copy link

events-data.txt
Hi @Yuyz0112 please see the events-data.txt file attached. Now I am receiving different error. I have attached screenshot of errors too.
image

I am bit confused about why the recorded events are being played in iframe with blocked scripts? By this, it not performing automation instead, it is just behaving like playing a video we have recorded. What I am looking for is that we can record a scenario/testrun once then play it back anytime as automation. Does it seem achievable?

@Yuyz0112
Copy link
Member

@MSohailMemon The warning message may point to some bug of recording, are you trying with the latest release(0.7.16)? If so, I will try to reproduce the bug.

BTW, you are right. rrweb was designed to playing like a video, not an automation tool. You may check this doc if you want to know it more.
With this strategy, we can safely replay the recorded scene, not actions.

For example, if you have a TODO list. When you are recording there is one TODO item, and you resolved it. And when you replay, if we are really visiting the website again, you may found there is no TODO item and everything failed.

@Yuyz0112 Yuyz0112 closed this as completed Aug 4, 2019
@AjkP AjkP mentioned this issue Oct 1, 2019
@shekharsom
Copy link

Is there a way to not show these messages? some kind of option parameter?

@nfrederick023
Copy link

nfrederick023 commented Jul 11, 2023

Here's a workaround.

const rrwebPlayer = new rrwebPlayer({ ...parameters }); 
const iframe = document.getElementsByTagName("iframe")[0];
iframe.removeAttribute("sandbox");
iframe.contentWindow.location.reload();
  1. Create the rrweb player.
  2. Immediately grab the iframe element created by the rrweb player.
  3. Remove the sandbox attribute (ie allow script execution)
  4. Reload the iframe page for the changes to take effect.

Note, you can keep the sandbox attribute, while enabling script execution, if you do this instead of removeAttribute:

iframe.sandbox = iframe.sandbox + " allow-scripts");

PRO-TIP:

If you need to do anything else after reloading the iframe (eg injecting fonts), you can do this:

iframe.addEventListener("load", () => {
    // ...do something
    // fires when the iframe is finished reloading
})

To rrweb devs: please add an option to enable script execution!!

benjackwhite pushed a commit to PostHog/rrweb that referenced this issue Jul 25, 2023
parent 5992f03
author Jay Khatri <[email protected]> 1608000413 -0500
committer Vadim Korolik <[email protected]> 1666033419 -0700
gpgsig -----BEGIN PGP SIGNATURE-----

 iQIyBAABCgAdFiEE5qJt+0KcVgDpzp9NmG2rb3pHHDQFAmNNpwsACgkQmG2rb3pH
 HDT+Qg/2Lwz671fehqmv/yC4LksqoSVdFH1JG0e61qKEaUqaCGST/c0GqUpHiI7D
 Y3yFTlhatbWqaDV+bpJ/9KzB3cRtOhV6URbw5xLrhsR3pGEzNqv4c+ZkaWR2U32k
 pSFidY7MZTJURbEosOR0cXc+WhHfiVEgzJ6/ny6e4r7zY6gBbE66DLVRNelhMwW7
 wdpwzh4KcfLroOecA49skgvTj7xO3Bv3B5X2Ok2Rch18WzWiFDDVYFdIiArf7Kua
 /gIn1AybT6B6nb4kl99H763zATHLXKdWeLS9nFySGG73ILVpaefMS5cHZnmvmw10
 6hltrcYpcZTbPJCV9npFUS+1ViSTK8FpegBVtlUZj5+ZhL3I+McBYyzjgrv/67vc
 fJKkVCgtgkEgbHHwouw4KnsyRZLcb4/0krOhyqdEKHxmEy+nNvIQ6OVyw4+vYW5B
 DN84bQ9wWC/p5wEdhJoEz7o42o2UYboGW9Gmzpsef7NaK0MUZr/XHMonOvwL9Yd+
 STe9WjkVgWs3Ah6WQrXyYHDsxyn/PXCquSQK1qfnj5qSa3Aajrn1MHVYwNN1IdmL
 4+Yn+JQe43Ahb3BEUVuD1w0V3cZs15UoHfKbNuc1VGKfmbvztu/48gwvUCE/BgkG
 E33iWf+6LcSjQJvEM8HHsBmMq64QOP2Tnsklfn/WJMZF41Pvbg==
 =P0Tg
 -----END PGP SIGNATURE-----

add typings

change

change

more changes to release

change

change

try again

try again

try again

try again

change

change

change

v0.9.12

change

change

added npm ignore

change

change

chagne

change

change

change

change

change

Preprocess inactive segments

Cleaned up code

Renamed, and removed generated file changes

change

change

change

bump version

delete old files

change

add typings

change

try again

change

another change

change

change

change

change

Undef handling for intervals

Another check

Add custom build command (rrweb-io#21)

Switch to version `1.0.4` of `rrweb-snapshot` (rrweb-io#23)

Added support for inactive threshold (rrweb-io#20)

* Added support for inactive threshold

* Updated version num

* Prettified

* Fixed names

* Fixed name

* Renamed

Missed an edge case where the last part of a session is inactive, and  counted that as active.  (rrweb-io#24)

* Added support for inactive threshold

* Updated version num

* Prettified

* Fixed names

* Fixed name

* Renamed

* Cleaned code and added handling for edge cases

* Updated package num

Anthony/hig 156 change the color style of the cursor to (rrweb-io#25)

* Added support for inactive threshold

* Updated version num

* Prettified

* Fixed names

* Fixed name

* Renamed

* Cleaned code and added handling for edge cases

* Updated package num

* More skip customize, changed cursor

* Update package version

* Changed to use webpack instead of rollup

Co-authored-by: Jay Khatri <[email protected]>

* Fixed files

* Added missing styles from CDN

Co-authored-by: Jay Khatri <[email protected]>

Anthony/hig 190 move rrweb getactivityinterval logic (rrweb-io#27)

* Added support for inactive threshold

* Updated version num

* Prettified

* Fixed names

* Fixed name

* Renamed

* Cleaned code and added handling for edge cases

* Updated package num

* More skip customize, changed cursor

* Update package version

* Changed to use webpack instead of rollup

Co-authored-by: Jay Khatri <[email protected]>

* Fixed files

* Added missing styles from CDN

* Moved activity intervals calculation

* Updated version

Co-authored-by: Jay Khatri <[email protected]>

Anthony/hig 190 move rrweb getactivityinterval logic (rrweb-io#28)

* Added support for inactive threshold

* Updated version num

* Prettified

* Fixed names

* Fixed name

* Renamed

* Cleaned code and added handling for edge cases

* Updated package num

* More skip customize, changed cursor

* Update package version

* Changed to use webpack instead of rollup

Co-authored-by: Jay Khatri <[email protected]>

* Fixed files

* Added missing styles from CDN

* Moved activity intervals calculation

* Updated version

* Only calculate intervals once

* Updated version

Co-authored-by: Jay Khatri <[email protected]>

john/hig-231-block-recording-on-all-text-nodes (rrweb-io#30)

* Adds text randomization

* Update blocked styles

* Add privacy mode

* Don't record images

* v0.10.0

* Rename flag to enableStrictPrivacy

* Set redacted style on replayer side

Consider allevents for inactivity (rrweb-io#31)

* Consider allevents for inactivity

* Remove log

* skip inactive

Don't record value attribute on password inputs (rrweb-io#32)

* Don't record password

* v0.10.2

Redact the value attribute on mutations (rrweb-io#33)

* Redact the value attribute on mutations

* v0.10.3

Added 2s delay (rrweb-io#34)

* Added 2s delay

* updated version

* Changed back to fast_forwarding

Update rrweb (rrweb-io#35)

* fix: sometimes currentTime is smaller than the totalTime when player is finished (rrweb-io#445)

plus: fix the problem that sometimes return value of getCurrentTime() is negative

* Fix broken link to design docs

* Update to fflate (rrweb-io#448)

* Update to fflate

* Update docs, bundler config

* Scroll replayer iframe on firstFullsnapshot (rrweb-io#451)

* upgrade snapshot

* Release 0.9.12

* Protect against generation of no-change viewport resize events. (rrweb-io#454)

I noticed 8 or 10 of these events being generated in a multi-tab browsing session on Chrome 87.0 on Win10.  I'm speculating they were generated as a side effect of changing tabs but I can't recreate

* fix rrweb-io#452 check isBlocked on add mutation's target

* Release 0.9.13

* let mouse tail duration respect timer speed

* clean addList when meet a corner case

* fix rrweb-io#460 ignore added node that are not in document anymore

* upgrade 0.9.14

* Release 0.9.14

* Tweaks to timings to get tests passing on my dev laptop (rrweb-io#466)

* Tweaks to timings to get tests passing on my dev laptop - hopefully this makes tests more deterministic

* Okay understand what's going on now that the test has run in the travis environment

* fix rrweb-io#469 try to get original MutationObserver
We found Angular's zone module will patch MutationObserver which
make the browser hang in some scenarios.
Reference: angular/angular#26948

* Discovered that the common case of mouse movement or scrolling happening during `takeFullSnapshot` was causing mutations to be immediately emitted, contrary to the goal of rrweb-io#385 (rrweb-io#470)

* Don't remove the style attributes altogether from tests; they are an important part of the mutations (rrweb-io#468)

These were removed in rrweb-io@8ed1c99 in order to smooth over differences in test environments
so have maintained that by converting pixel values to 'Npx' (could also try rounding, but didn't attempt that)

* read __rrMutationObserver from window

* update guide (rrweb-io#483)

* Fix RangeError: Maximum call stack size exceeded (rrweb-io#479)

Saw this line cause issues in production, causing the following error:

```
RangeError Maximum call stack size exceeded
```

I believe this is caused by javascript engine max argument length - see note from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply#using_apply_and_built-in_functions

> The consequences of applying a function with too many arguments (that is, more than tens of thousands of arguments) varies across engines. (The JavaScriptCore engine has hard-coded argument limit of 65536.

* Impl record iframe (rrweb-io#481)

* Impl record iframe

* iframe observe

* temp: add bundle file to git

* update bundle

* update with pick

* update bundle

* fix fragment map remove

* feat: add an option to determine whether to pause CSS animation when playback is paused (rrweb-io#428)

set pauseAnimation to true by default

* fix: elements would lose some states like scroll position because of "virtual parent" optimization (rrweb-io#427)

* fix: elements would lose some state like scroll position because of "virtual parent" optimization

* refactor: the bugfix code

bug: elements would lose some state like scroll position because of "virtual parent" optimization

* fix: an error occured at applyMutation(remove nodes part)

error message:
Uncaught (in promise) DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node

* pick fixes

* revert ignore file

* re-impl iframe record

* re-impl iframe replay

* code housekeeping

* move multi layer dimension calculation to replay side

* update test cases

* teardown test server

* upgrade rrweb-snapshot with iframe load timeout

Co-authored-by: Lucky Feng <[email protected]>

* remove debugging warning (rrweb-io#486)

I can't see a reason for the warning here so believe it's a debugging statement that crept in?

* Add prettier as a dependency (rrweb-io#487)

* start impl rrdom

* upgrade rrweb-snapshot to 1.0.7

* Adding prepare npm statement (rrweb-io#490)

* added prepare statement

* using master rrweb snapshot

Co-authored-by: filip slatinac <[email protected]>

* Added mousemoveCallback threshold option to sampling config. (rrweb-io#492)

* Added mousemoveCallback threshold option to sampling config.

* Added mousemoveCallback to definitions file.

* Add yarn support for installing unreleased rrweb as a dependency  (rrweb-io#497)

* Use prepack instead of prepare for yarn support

* add prepare and prepack

for yarn v1 & v2 compatibility

* Create .npmignore

* update guide

* close rrweb-io#501 do not count attach iframe event in checkout

* close rrweb-io#491 check whether link node is head

* update test snapshot

* fix lint errors

* add hiring link

* impl rrweb-io#507 export takeFullSnapshot as a public API

* Update observer.md (rrweb-io#504)

Fixed some grammatical errors

* add an experiment config to set max speed in fast forward

* Handle event undefined in initMoveObserver (rrweb-io#515)

* fix: errors of replaying iframe records (rrweb-io#520)

* fix: errors of replaying iframe records

error1:
HierarchyRequestError: Failed to execute 'appendChild' on 'Node': Nodes of type '#document' may not be inserted inside nodes of type '#document-fragment'.
code: parent.appendChild(target)

error2:
Uncaught DOMException: Failed to execute 'appendChild' on 'Node': Only one element on document allowed.
code: parent.appendChild(target);

* improve the comment for bugfix

* rename node_modules in es bundle to ext

* fix: inaccurate mouse position (rrweb-io#522)

1. Position of mouse was inaccurate when replaying and this PR will fix it.
2. Fix the bug that if one nested iframe has a scale transform and the position of mouse was inaccurate as well.

* impl shadow DOM manager
part of rrweb-io#38
1. observe DOM mutations in shadow DOM
2. rebuild DOM mutations in shadow DOM

* Fix docs to point to correct event format (rrweb-io#523)

* Fix docs to point to correct event attribute

* Update customize-replayer.zh_CN.md

* correct event object in guide

* Update guide.zh_CN.md

* Update snapshot to Release 1.1.1

Co-authored-by: Lucky Feng <[email protected]>
Co-authored-by: Fanis Katsimpas <[email protected]>
Co-authored-by: Lucky Feng <[email protected]>
Co-authored-by: 101arrowz <[email protected]>
Co-authored-by: Jarosław Salwa <[email protected]>
Co-authored-by: Yanzhen Yu <[email protected]>
Co-authored-by: Eoghan Murray <[email protected]>
Co-authored-by: zzq0826 <[email protected]>
Co-authored-by: Karl-Aksel Puulmann <[email protected]>
Co-authored-by: Moji Izadmehr <[email protected]>
Co-authored-by: Filip Slatinac <[email protected]>
Co-authored-by: filip slatinac <[email protected]>
Co-authored-by: Province Innovation <[email protected]>
Co-authored-by: Justin Halsall <[email protected]>
Co-authored-by: Season <[email protected]>
Co-authored-by: arshabh-copods <[email protected]>
Co-authored-by: Yakko Majuri <[email protected]>

Disable onAddHoverClass and duplicate full snapshot (rrweb-io#36)

* Don't rebuild full snapshot

* Add config for hover class

* Revert "Update rrweb (rrweb-io#35)"

This reverts commit 5dc4ca2.

* Bump version

fix-rrweb-patch (rrweb-io#37)

* Make check conditional

* Update to 0.11.0

Bump (rrweb-io#38)

Skip the first fullSnapshotBuild (rrweb-io#39)

User events for inactivity calculation (rrweb-io#40)

Make sure we publish a production build (rrweb-io#41)

Pull in fix for rrweb-io#528 from rrweb (rrweb-io#42)

Buffer modifications to virtual stylesheets (rrweb-io#43)

Test rrweb 1.0.1

Co-authored-by: Lucky Feng <[email protected]>
Co-authored-by: filip slatinac <[email protected]>
Co-authored-by: zhaoziqiu <[email protected]>
Co-authored-by: yz-yu <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yash Kumar <[email protected]>
Co-authored-by: Lucky Feng <[email protected]>
Co-authored-by: Vladimir Milenko <[email protected]>
Co-authored-by: Eoghan Murray <[email protected]>
Co-authored-by: Fanis Katsimpas <[email protected]>
Co-authored-by: Lucky Feng <[email protected]>
Co-authored-by: 101arrowz <[email protected]>
Co-authored-by: Jarosław Salwa <[email protected]>
Co-authored-by: Yanzhen Yu <[email protected]>
Co-authored-by: zzq0826 <[email protected]>
Co-authored-by: Karl-Aksel Puulmann <[email protected]>
Co-authored-by: Moji Izadmehr <[email protected]>
Co-authored-by: Filip Slatinac <[email protected]>
Co-authored-by: Province Innovation <[email protected]>
Co-authored-by: Justin Halsall <[email protected]>
Co-authored-by: Season <[email protected]>
Co-authored-by: arshabh-copods <[email protected]>
Co-authored-by: Yakko Majuri <[email protected]>
Co-authored-by: re-fort <[email protected]>
Co-authored-by: Ziqiu Zhao <[email protected]>
Co-authored-by: yashkumar18 <[email protected]>
Co-authored-by: bachmanity1 <[email protected]>
Co-authored-by: Omair Nabiel <[email protected]>

Copy rrweb-io#630 for DragEvent errors (rrweb-io#45)

Record and replay nested stylesheet rules (rrweb-io#46)

john/hig-1014-2nd-attempt-at-stitches-fix-in-rrweb (rrweb-io#47)

Apply nested styles refactor https://github.com/rrweb-io/rrweb/pull/667/files

john/hig-1046-apply-rrweb-css-change (rrweb-io#48)

Update Mirror to support null IDs

John/hig-1121-add-rrweb-patch-for-element-blocking (rrweb-io#49)

Set the blockClass background color to the same as the color (rrweb-io#51)

John/hig-1053-strictprivacy-mode-is-injecting-random (rrweb-io#52)

gc virtual style map when DOM has been removed (rrweb-io#53)

Monkeypatch each iframe (rrweb-io#54)

Update rrweb to 1.0.7 (rrweb-io#55)

Pause animations on pseudo elements (rrweb-io#56)

Add webgl recording and playback (rrweb-io#57)

Webgl-patches (rrweb-io#58)

* Add diffs

* Add missing changes

* Bump version

Patch webgl support for older Safari browsers

Make sure WebGL instance exists before saving

More patches for webgl recording

Update mouse cursor to make it visible on dark and light backgrounds

Bump version

Support loading CORS fonts through our proxy (rrweb-io#59)

John/hig-1919-update-rrweb (rrweb-io#60)

* Port over remaining webgl changes

* More updates

* https://github.com/rrweb-io/rrweb/pull/810/files

* https://github.com/rrweb-io/rrweb/pull/720/files

* Update package version

Make sure text mutations respect strict privacy mode (rrweb-io#61)

John/hig-1930-sync-rrweb-changes (rrweb-io#62)

* Sync change

* Port fix: an error when I stop the recording process

Change click behavior/visual (rrweb-io#63)

Silence the "please add custom even after start recording" (rrweb-io#64)

John/hig-1984-pull-in-rrweb-sequential-id-pr (rrweb-io#65)

* Add sequential IDs

* rrweb-io#840

* bump version

Export sequential ID plugin

Ignore recording rrweb internal click events for canvas elements

John/hig-1998-apply-rrweb-commits (rrweb-io#66)

[HIG-2114] add replace events function for use by chunking (rrweb-io#67)

bump version (rrweb-io#68)

https://github.com/rrweb-io/rrweb/pull/866/files (rrweb-io#69)

remove promise to resolve immediately (rrweb-io#70)

baseline time check should include offset to avoid replaying past events (rrweb-io#71)

v1.1.20

fix rollup config (rrweb-io#72)

fix the bundle script so that we can use rrweb directly from a <script/> tag for use in server-side rrweb rendering (HIG-2197).

[HIG-2269] ensure invalid DOM nesting doesn't crash rrweb (rrweb-io#73)

Replaying an app with invalid DOM nesting may crash rrweb.
Print console warning instead of crashing.

highlight: merge rrweb (rrweb-io#74)

Update our fork based on [email protected] April 2022 Release
https://github.com/rrweb-io/rrweb/releases/tag/rrdom%400.1.2

highlight: merge rrweb (rrweb-io#74)

Update our fork based on [email protected] April 2022 Release
https://github.com/rrweb-io/rrweb/releases/tag/rrdom%400.1.2

merge rrweb rrweb-io#903 performance improvements (rrweb-io#75)

primarily to bring in Speed up snapshotting of many new dom nodes (rrweb-io#903)

Co-authored-by: Yun Feng <[email protected]>
Co-authored-by: Justin Halsall <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yz-yu <[email protected]>
Co-authored-by: Rahul Lingala <[email protected]>
Co-authored-by: Dmytro Kozlovskyi <[email protected]>

remove testing from github actions

fix lerna publish step

improve error handling in rrdom (rrweb-io#76)

During live mode, we encounter rrdom errors related to
the replay of iframes. Ensure we handle these errors correctly rather
than crashing.

integrate fix for live mode rrweb-io#923 (rrweb-io#77)

[rrweb PR 923](rrweb-io#923)

revert error catching code

merge rrweb PR rrweb-io#909 (rrweb-io#78)

rrweb-io#909 with follow-up fix rrweb-io#926

set empty link elements to loaded by default

Clean up stylesheet manager

Remove attribute mutation code

Update packages/rrweb/test/record.test.ts

Update packages/rrweb/test/record.test.ts

Update packages/rrweb/test/record.test.ts

Bump minimist from 1.2.5 to 1.2.6 (rrweb-io#902)

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](substack/[email protected])

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Speed up snapshotting of many new dom nodes (rrweb-io#903)

* Speed up snapshotting of many new dom nodes

By avoiding reflow we shave about 15-25% off our snapshotting time

* Improve newlyAddedElement docs

* Optimize needMaskingText by using el.closest and less recursion

* Serve all rrweb dist files

* Split serializeNode into smaller functions

Makes it easier to profile

* Slow down cpu enhance tracing on fast machines

* Increase timeout

* Perf: only loop through ancestors when they have something to compare to

* Perf: `hasNode` is cheaper than `getMeta`

* Perf: If parents where already checked, no need to do it again

* Perf: reverse for loops are faster

Because they only do the .lenght check once. In this case I don't think we'll see much performance gains if any

* Clean up code

* Perf: check ancestors once with isBlocked

* guessing this might fixes canvas test

* Update packages/rrweb/src/record/observers/canvas/webgl.ts

Co-authored-by: yz-yu <[email protected]>

* Fix rrweb-io#904 (rrweb-io#906)

Properly remove crossorigin attribute

* Bump minimist from 1.2.5 to 1.2.6 (rrweb-io#902)

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](substack/[email protected])

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: yz-yu <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Move require out of time sensitive assert

Update packages/rrweb/scripts/repl.js

Update packages/rrweb/test/record.test.ts

Update packages/rrweb/src/record/index.ts

Add todo

Add waitForRAF, its more reliable than waitForTimeout

Remove flaky tests

Add recording stylesheets in iframes

Remove variability from flaky test

Make test more robust

Fix naming

Update dive-into-event.md (rrweb-io#914)

move browser-only rrdom features to the new rrdom package (rrweb-io#913)

integrate turborepo in monorepo (rrweb-io#918)

* integrate turborepo in monorepo

* integrate turborepo in monorepo

unify typescript version and rollup plugins (rrweb-io#921)

Add test cases for inlineImages

Add test cases for inlineImages

Record iframe mutations cross page

Test: should record images inside iframe with blob url after iframe was reloaded

update rrweb-snapshot

Handle negative ids in rrdom correctly

When iframes get inserted they create untracked elements, both on the dom and rrdom side.
Because they are untracked they generate negative numbers when fetching the id from mirror.
This creates a problem when comparing and fetching ids across mirrors.
This commit tries to get away from using negative ids as much as possible in rrdom's comparisons

remove rrdom diff debug log statements

fix rrweb canvas recording crash (rrweb-io#79)

slow canvas loading can cause the canvas manager worker to crash.
also fix a merge conflict in rrweb styles file.

obfuscate text for highlight-mask class (rrweb-io#84)

Use the `obfuscateText` function as a default masking transform for the `highlight-mask` css class.

update versions

update rrweb to rrweb-io#947 (rrweb-io#83)

merge up to rrweb-io#947

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Halsall <[email protected]>
Co-authored-by: Yun Feng <[email protected]>
Co-authored-by: Yanzhen Yu <[email protected]>
Co-authored-by: Jimmy Liu <[email protected]>
Co-authored-by: Eoghan Murray <[email protected]>

[HIG-2525] ensure highlight-mask blocks image src (rrweb-io#85)

`highlight-mask` class should be evaluated during image snapshotting to drop the image src.

publish rrweb

[HIG-2525] v2.1.4 make highlight-mask obfuscate images (rrweb-io#86)

`highlight-mask` class should hide images.

remove accidental console log (rrweb-io#87)

adds eslint rule to error on console logs

fix highlight-mask image obfuscation (rrweb-io#88)

fix how `highlight-mask` class obfuscates images
ensure image obfuscation works for `inline-images` enabled.

support canvas downsampling configuration (rrweb-io#89)

canvas recording takes snapshots at full canvas resolution
this is too slow to record at higher fps.
allow specifying canvas manager ratio and quality so that
the canvas can be imaged at lower quality and resolution to allow higher FPS recording

we now support the following `record` parameters for canvas settings:
* sampling.canvas.fps
* sampling.canvas.resizeQuality
* sampling.canvas.resizeFactor
* sampling.canvas.maxSnapshotDimension

sample recording @ 0.2 factor, low quality, 15 fps
https://app.highlight.run/1/sessions/KnAGq8rRSnafG7zXwp8ahpzFAqFd

fix client mutation observer check (rrweb-io#90)

ensure the element on which `.contains()` is called is a node.

Sort attributes to make `rr_*` attributes handled last

`rr_dataURL` overwrites `src` attribute, because of this we need to evaluate `rr_dataURL` last so it doesn't accidentally get overwritten again.

[HIG-2649] use yarn v3 workspace dependencies (rrweb-io#91)

allows us to only publish `@highlight-run/rrweb` while using the rest of the workspace packages as internal dependencies.
makes it easier to manage versions because it allows versioning `@highlight-run/rrweb` alone.

fix rrweb publishing (rrweb-io#92)

remove lerna since we only need to publish one package: `@highlight-run/rrweb`

support for highlight yarn workspaces monorepo

Apply formatting changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants