1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-21 03:02:09 +01:00

203 Commits

Author SHA1 Message Date
Ilya Kreymer
1fb631870b wb_frame: fix extra slash typo in replaced frame url 2015-03-05 17:04:44 -08:00
Ilya Kreymer
1d4c54deaa frames ui: update frames to use <!DOCTYPE html>, improved css and html5 compatibility 2015-02-25 13:25:05 -08:00
Ilya Kreymer
9f838241c7 wb.js bug fix: use only window.__orig_parent and not window.parent, as window.parent overriden. window instead of window.self 2015-02-21 12:34:35 -08:00
Ilya Kreymer
26df8d7784 remove debug logging and spaces 2015-02-19 01:17:31 -08:00
Ilya Kreymer
80dcb6ff27 rewrite: improvements to non-exact replay mode, redir_to_exact option set to false
frames: add request_ts to wbinfo and use that as the timestamp in the top-frame. for exact replay, request_ts == timestamp
for latest replay / no timestamp / memento timegate, redirect to current time instead of time of last capture, while serving
last capture.
timeutils: add timestamp_now() function to return timestamp of current datetime
Add extra tests for this mode
Tracked via #72
2015-02-17 17:51:45 -08:00
Ilya Kreymer
f9452bf48e rewrite: refactor IDN support: instead of returning IRI, return utf-8 %-encoded url
remove support for  returning IRI, as that requires detecting charset, instead just use %-encoded form
and let browser decode. Should address #66

Add rewrite option 'punycode_links_only' (default to false) to skip the %-encoded conversion of host, and just return punycode.

wombat: use getAttribute('href') on <a> tag to get original url, not punycode version

replay: add extra sanity check on Location header to ensure utf-8
2015-02-14 17:26:39 -08:00
Ilya Kreymer
dcf3688dc3 wombat: also override frameElement when changing window.parent for top-level replay frame 2015-02-11 19:26:45 -08:00
Ilya Kreymer
f068186e37 wombat: replace window.self -> window for clarity 2015-02-11 15:01:04 -08:00
Ilya Kreymer
148651680a wombat fix: use __orig_parent when referencing top-frame, since window.parent is being overriden 2015-02-10 15:02:08 -08:00
Ilya Kreymer
78ae86b6b6 Merge branch 'master' for 0.7.8 into develop 2015-02-05 08:45:55 -08:00
Ilya Kreymer
c47d3ca925 wombat: add mutation observers, addressing #71 and maybe #67
rules: fix regex for yt, add rx for wikimedia
2015-02-03 11:19:41 -08:00
Ilya Kreymer
734ee4471b frame ui: pass timestamp to frame banner, fix typo in html
banner: allow overriding of banner id by returning custom id
2015-02-02 09:41:49 -08:00
Ilya Kreymer
7e017fd85e rewrite fixes: don't rewrite window.parent as it is overridable directly
html rewriter: ensure style is rewritten for all elements, add test!
wombat: cleanup and additional checks for assign(), setAttribute()
2015-01-29 20:08:00 -08:00
Ilya Kreymer
043ad5c860 wombat: improve createElementNS override to set prototype, just assign
window.parent directly
2015-01-29 10:13:32 -08:00
Ilya Kreymer
ccedb2d60e regex_rewrite: add 'parent' rewrite in addition to 'top' for frames, add
WB_wombat_parent to wombat, add test for WB_wombat_parent
2015-01-27 19:57:56 -08:00
Ilya Kreymer
976decb3f1 wombat: ensure document.write override handles elements that go into
head as well as body
2015-01-27 18:02:14 -08:00
Ilya Kreymer
695245d9e8 wburl idn: more complete support for idn urls (#66)
add distinct to_iri() and to_uri() functions in WbUrl
internal representation is always as ascii uri
for rewriting, defaults to iri representation unless
'rewrite_ascii_only_urls' is set to true per collection
add wbrequest.get_url() to get url as either iri or uri to be passed
to templates
2015-01-26 11:07:59 -08:00
Ilya Kreymer
c9b2e3e69e wombat 2.2 improvements:
* for postMessage, add receive message overrides which uses original origin
to fix message passing tests that check for origin

* for createElementNS, ensure that the namespace url is not rewritten

* add equals_any() method, add "poster" attr to attr rewriting list

(solves several issues for vine replay, #62)
2015-01-22 16:43:52 -05:00
Ilya Kreymer
06b2ea498e setup: set zipSafe to true to allow bundling egg in installer 2015-01-09 22:57:21 -08:00
Ilya Kreymer
205aeca4a1 bump version to 0.7.3
rewrite: add additional tags for client side src rewrite, add missing
tags to server-side html rewrite
2015-01-04 17:32:58 -08:00
Ilya Kreymer
df94e17305 video: yt: switch on timeout only if not started.. 2014-12-28 23:29:13 -08:00
Ilya Kreymer
ffb702ce03 rewrite: content detection for specific case: if content type is html and mod type is css
or js, peek stream to determine actual type. Addresses #31 in part.
Fix typo in wb_frame.js
2014-12-26 13:08:35 -08:00
Ilya Kreymer
4c08a6a064 video work: improved yt handling:
- disable yt using yt api, for forced html/flash, diable on load
- use yt error event to detect error
- better fallback on recorded video
use seperate cache for range and video info tracking
fix yt rules query to account for & and ?
2014-12-26 13:02:47 -08:00
Ilya Kreymer
ca17410056 video: better extension extraction for explicit video info (use format
if ext is unknown)
improved support for _pywbvid=html, forces generic html player over yt
player, better deletion of ytplayer
2014-12-24 18:13:12 -08:00
Ilya Kreymer
4aabba559c vidrw: refactor object/embed adding code into seperate functions for
iterating over tags, allows for reuse with setInterval (not yet added)
2014-12-18 13:22:03 -08:00
Ilya Kreymer
f3dc256503 wombat: also rewrite src= in video and audio tags 2014-12-18 13:18:22 -08:00
Ilya Kreymer
0de76189a7 Merge branch 0.6.6 into video 2014-12-14 15:36:37 -08:00
Ilya Kreymer
09861ada2c wb.js: preserve anchor in location redirect
update CHANGELIST
2014-12-13 23:19:04 -08:00
Ilya Kreymer
80c5b45178 wb.js: don't include anchor when comparing current url with expected top
url
2014-12-13 23:12:42 -08:00
Ilya Kreymer
3b14e1ad40 video: add support for experimental 'pywbvid=' selector to force video
type
add optional YT original player rewrite
fix non-local vars in flash player
wb.js: remove hash when doing location check
2014-12-12 09:07:58 -08:00
Ilya Kreymer
8090bf9a9a video: skip videoinfo responses that have no formats, and fallback to
retry handler
remove extra log
2014-12-09 10:48:08 -08:00
Ilya Kreymer
336289b337 Merge branch 'develop' into video, merge wb.js
Add double init check for wombat
2014-12-07 23:54:20 -08:00
Ilya Kreymer
6d5592f890 wb js: add guard around wb js to prevent double-inits (such as from
fragments!)
2014-12-07 23:33:21 -08:00
Ilya Kreymer
d45a23e07b vidrw: client rewrite: use client width/height if available, otherwise
use 100% to allow replacement in dynamic containers
2014-12-07 19:59:42 -08:00
Ilya Kreymer
7251c37c08 video: load flashembed dynamically only when there are videos 2014-12-04 10:48:50 -08:00
Ilya Kreymer
8a87966ebd video fixes: disable adding a fixed buffer on unbounded range requests,
as that messes up FF html5 player.. (it assumes a full stream)
video response: ensure Accept-Ranges: bytes is being added on 206
responses
2014-12-03 21:59:03 -08:00
Ilya Kreymer
7f93e858ee video: skip all DASH format sources, also sort sources from highest
preference to lowest (if available)
2014-12-03 12:55:18 -08:00
Ilya Kreymer
f59cd6c6b4 video: add special case iframe, fix flash insert missing prefix 2014-12-02 12:39:54 -08:00
Ilya Kreymer
dffa0bcbad video work: vidrw fixes to support object, fallback to flash
rangecache: create dir on first use only
2014-12-01 09:09:23 -08:00
Ilya Kreymer
2f5be9ed9f video: work on extracting video from <object> tags, fallback to
flowplayer if html5 player fails
2014-11-29 11:04:18 -08:00
Ilya Kreymer
3e3a74619f various fixes: wombat: add Date.UTC and Date.parse
rewrite: support vi_ https -> metadata
video: fallback to vi_ call on current page
remove debug logging
2014-11-25 00:21:28 -08:00
Ilya Kreymer
4b7186a62e wombat: adjust date for timezone! 2014-11-24 13:46:50 -08:00
Ilya Kreymer
f4431c0872 wombat: add extra check for correct scheme for ajax open 2014-11-23 18:44:11 -08:00
Ilya Kreymer
36887f565a video: more rewriting work, support: html audio if audio format,
fallback to flash (flowplayer) if html video/audio playback has failed
update setup.py to support nested include structure
2014-11-22 18:39:30 -08:00
Ilya Kreymer
550d78a181 add flowplayer 3.2 for flash fallback 2014-11-22 18:37:52 -08:00
Ilya Kreymer
c6a2c83b66 rangecache: always bound range, set default bound of 16384
wombat: work on date override, disable for now
head_insert: check for wombat not being inited to avoid undef error
2014-11-05 10:55:46 -08:00
Ilya Kreymer
88f553dce7 video work: live rewrite pings proxy with full rewrite, proxies direct
range request
reorg rangecache to support is_range() check, yt-specific logic
(experimental)
wombat: add date override (experimental)
bump tentative version to 0.7.0!
yt replays work with native player! (though still issues remain)
2014-11-04 22:11:25 -08:00
Ilya Kreymer
703ec0eb5e banner insert: extra check for document.body before adding banner 2014-11-02 16:11:03 -08:00
Ilya Kreymer
ced94d289d wombat: add generic setAttribute override for href and src, Image object
override, src prop rewrite
2014-11-02 16:09:56 -08:00
Ilya Kreymer
07bcf9fbfe vidrw: work on yt rewrite 2014-11-01 15:41:01 -07:00