Skip to content

Commit 77e80f1

Browse files
committed
fix: Support b64 encoded iframe contents
1 parent c5d6a8d commit 77e80f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

har2tree/har2tree.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,10 @@ def _load_iframes(self, current: URLNode, frames: FramesResponse) -> None:
437437
self.logger.info('Got a frame, but no content.')
438438
return
439439

440-
if frames.get('url') and not (frames['url'] in ['about:blank']):
440+
if (frames.get('url')
441+
and not (frames['url'] in ['about:blank'] # not loading anything, same as empty
442+
or frames['url'].startswith('data') # base64 encoded content
443+
)):
441444
u = unquote_plus(frames['url'])
442445
# this url should be in a node directly attached to that one
443446
# we need to find that node

0 commit comments

Comments
 (0)