Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-reese84
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
lcc-reese84
Commits
22d82751
Commit
22d82751
authored
Oct 11, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
a55a4649
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7142 additions
and
713 deletions
+7142
-713
Window.js
src/jsdom/lib/jsdom/browser/Window.js
+84
-1
HTMLMediaElement.js
src/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js
+1
-1
Navigator.js
src/jsdom/lib/jsdom/living/generated/Navigator.js
+28
-16
HTMLCanvasElement-impl.js
src/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
+22
-19
History-impl.js
src/jsdom/lib/jsdom/living/window/History-impl.js
+1
-1
reese84_bypass.py
src/reese84_bypass.py
+124
-118
run.js
src/run.js
+6811
-473
test.py
test.py
+71
-84
No files found.
src/jsdom/lib/jsdom/browser/Window.js
View file @
22d82751
...
@@ -395,7 +395,7 @@ function Window(options) {
...
@@ -395,7 +395,7 @@ function Window(options) {
const
statusbar
=
BarProp
.
create
(
window
);
const
statusbar
=
BarProp
.
create
(
window
);
const
toolbar
=
BarProp
.
create
(
window
);
const
toolbar
=
BarProp
.
create
(
window
);
const
external
=
External
.
create
(
window
);
const
external
=
External
.
create
(
window
);
cons
t
navigator
=
Navigator
.
create
(
window
,
[],
{
userAgent
:
this
.
_resourceLoader
.
_userAgent
});
le
t
navigator
=
Navigator
.
create
(
window
,
[],
{
userAgent
:
this
.
_resourceLoader
.
_userAgent
});
const
performance
=
Performance
.
create
(
window
,
[],
{
rawPerformance
});
const
performance
=
Performance
.
create
(
window
,
[],
{
rawPerformance
});
const
screen
=
Screen
.
create
(
window
);
const
screen
=
Screen
.
create
(
window
);
const
customElementRegistry
=
CustomElementRegistry
.
create
(
window
);
const
customElementRegistry
=
CustomElementRegistry
.
create
(
window
);
...
@@ -440,6 +440,89 @@ function Window(options) {
...
@@ -440,6 +440,89 @@ function Window(options) {
return
idlUtils
.
wrapperForImpl
(
idlUtils
.
implForWrapper
(
window
.
_document
).
_history
);
return
idlUtils
.
wrapperForImpl
(
idlUtils
.
implForWrapper
(
window
.
_document
).
_history
);
},
},
get
navigator
()
{
get
navigator
()
{
navigator
=
new
Proxy
(
navigator
,
{
ownKeys
(
t
){
return
[
"vendorSub"
,
"productSub"
,
"vendor"
,
"maxTouchPoints"
,
"scheduling"
,
"userActivation"
,
"doNotTrack"
,
"geolocation"
,
"connection"
,
"plugins"
,
"mimeTypes"
,
"pdfViewerEnabled"
,
"webkitTemporaryStorage"
,
"webkitPersistentStorage"
,
"hardwareConcurrency"
,
"cookieEnabled"
,
"appCodeName"
,
"appName"
,
"appVersion"
,
"platform"
,
"product"
,
"userAgent"
,
"language"
,
"languages"
,
"onLine"
,
"webdriver"
,
"getGamepads"
,
"javaEnabled"
,
"sendBeacon"
,
"vibrate"
,
"deprecatedRunAdAuctionEnforcesKAnonymity"
,
"bluetooth"
,
"clipboard"
,
"credentials"
,
"keyboard"
,
"managed"
,
"mediaDevices"
,
"storage"
,
"serviceWorker"
,
"virtualKeyboard"
,
"wakeLock"
,
"deviceMemory"
,
"login"
,
"ink"
,
"hid"
,
"locks"
,
"gpu"
,
"mediaCapabilities"
,
"mediaSession"
,
"permissions"
,
"presentation"
,
"usb"
,
"xr"
,
"serial"
,
"windowControlsOverlay"
,
"userAgentData"
,
"adAuctionComponents"
,
"runAdAuction"
,
"canLoadAdAuctionFencedFrame"
,
"clearAppBadge"
,
"getBattery"
,
"getUserMedia"
,
"requestMIDIAccess"
,
"requestMediaKeySystemAccess"
,
"setAppBadge"
,
"webkitGetUserMedia"
,
"clearOriginJoinedAdInterestGroups"
,
"createAuctionNonce"
,
"deprecatedReplaceInURN"
,
"deprecatedURNToURL"
,
"getInstalledRelatedApps"
,
"joinAdInterestGroup"
,
"leaveAdInterestGroup"
,
"updateAdInterestGroups"
,
"registerProtocolHandler"
,
"unregisterProtocolHandler"
]
}
})
return
navigator
;
return
navigator
;
},
},
get
locationbar
()
{
get
locationbar
()
{
...
...
src/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js
View file @
22d82751
...
@@ -102,7 +102,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -102,7 +102,7 @@ exports.install = (globalObject, globalNames) => {
"video/mp4; codecs=
\"
avc1.42E01E
\"
"
:
"probably"
,
"video/mp4; codecs=
\"
avc1.42E01E
\"
"
:
"probably"
,
"video/webm; codecs=
\"
vp8, vorbis
\"
"
:
"probably"
,
"video/webm; codecs=
\"
vp8, vorbis
\"
"
:
"probably"
,
"video/ogg; codecs=
\"
theora
\"
"
:
"probably"
,
"video/ogg; codecs=
\"
theora
\"
"
:
undefined
,
"audio/x-m4a;"
:
"maybe"
,
"audio/x-m4a;"
:
"maybe"
,
...
...
src/jsdom/lib/jsdom/living/generated/Navigator.js
View file @
22d82751
...
@@ -147,9 +147,9 @@ exports.install = (globalObject, globalNames) => {
...
@@ -147,9 +147,9 @@ exports.install = (globalObject, globalNames) => {
// })
// })
class
Navigator
{
class
Navigator
{
constructor
()
{
//
constructor() {
throw
new
TypeError
(
"Illegal constructor"
);
//
throw new TypeError("Illegal constructor");
}
//
}
javaEnabled
()
{
javaEnabled
()
{
...
@@ -363,7 +363,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -363,7 +363,7 @@ exports.install = (globalObject, globalNames) => {
}
}
return
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
(
r
)
resolve
(
r
)
});
});
...
@@ -371,6 +371,9 @@ exports.install = (globalObject, globalNames) => {
...
@@ -371,6 +371,9 @@ exports.install = (globalObject, globalNames) => {
}
}
}
}
adAuctionComponents
(){}
runAdAuction
(){}
canLoadAdAuctionFencedFrame
(){}
get
userAgent
()
{
get
userAgent
()
{
// return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36';
// return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36';
return
window
.
ENV
.
navigatorparams
.
useragent
return
window
.
ENV
.
navigatorparams
.
useragent
...
@@ -424,8 +427,9 @@ exports.install = (globalObject, globalNames) => {
...
@@ -424,8 +427,9 @@ exports.install = (globalObject, globalNames) => {
get
languages
()
{
get
languages
()
{
return
window
.
ENV
.
navigatorparams
.
languages
||
[
return
window
.
ENV
.
navigatorparams
.
languages
||
[
"en-US"
,
"en"
,
"en"
,
"en-US"
,
"zh-CN"
,
"zh-CN"
,
"ru"
]
"ru"
]
...
@@ -508,7 +512,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -508,7 +512,7 @@ exports.install = (globalObject, globalNames) => {
get
connection
()
{
get
connection
()
{
console
.
log
(
'navigator.connection.object'
)
console
.
log
(
'navigator.connection.object'
)
return
proxy
({
return
proxy
({
rtt
:
1
00
rtt
:
3
00
},
'connection'
)
},
'connection'
)
}
}
...
@@ -541,7 +545,9 @@ exports.install = (globalObject, globalNames) => {
...
@@ -541,7 +545,9 @@ exports.install = (globalObject, globalNames) => {
vibrate
()
{
vibrate
()
{
console
.
log
(
'navigator.vibrate'
)
console
.
log
(
'navigator.vibrate'
)
}
}
get
deprecatedRunAdAuctionEnforcesKAnonymity
(){
return
false
}
bluetooth
()
{
bluetooth
()
{
console
.
log
(
'navigator.bluetooth.object'
)
console
.
log
(
'navigator.bluetooth.object'
)
return
proxy
({},
'bluetooth'
)
return
proxy
({},
'bluetooth'
)
...
@@ -595,7 +601,9 @@ exports.install = (globalObject, globalNames) => {
...
@@ -595,7 +601,9 @@ exports.install = (globalObject, globalNames) => {
get
deviceMemory
()
{
get
deviceMemory
()
{
console
.
log
(
'navigator.deviceMemory.get'
)
console
.
log
(
'navigator.deviceMemory.get'
)
}
}
get
login
(){
return
proxy
({},
'login'
)
}
ink
()
{
ink
()
{
console
.
log
(
'navigator.ink.object'
)
console
.
log
(
'navigator.ink.object'
)
return
proxy
({},
'ink'
)
return
proxy
({},
'ink'
)
...
@@ -656,10 +664,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -656,10 +664,7 @@ exports.install = (globalObject, globalNames) => {
return
proxy
({},
'xr'
)
return
proxy
({},
'xr'
)
}
}
userAgentData
()
{
console
.
log
(
'navigator.userAgentData.object'
)
return
proxy
({},
'userAgentData'
)
}
clearAppBadge
()
{
clearAppBadge
()
{
console
.
log
(
'navigator.clearAppBadge'
)
console
.
log
(
'navigator.clearAppBadge'
)
...
@@ -684,14 +689,21 @@ exports.install = (globalObject, globalNames) => {
...
@@ -684,14 +689,21 @@ exports.install = (globalObject, globalNames) => {
webkitGetUserMedia
()
{
webkitGetUserMedia
()
{
console
.
log
(
'navigator.webkitGetUserMedia'
)
console
.
log
(
'navigator.webkitGetUserMedia'
)
}
}
clearOriginJoinedAdInterestGroups
(){}
createAuctionNonce
(){}
deprecatedReplaceInURN
(){}
deprecatedURNToURL
(){}
joinAdInterestGroup
(){}
leaveAdInterestGroup
(){}
updateAdInterestGroups
(){}
getInstalledRelatedApps
()
{
getInstalledRelatedApps
()
{
console
.
log
(
'navigator.getInstalledRelatedApps'
)
console
.
log
(
'navigator.getInstalledRelatedApps'
)
}
}
registerProtocolHandler
()
{
//
registerProtocolHandler() {
console
.
log
(
'navigator.registerProtocolHandler'
)
//
console.log('navigator.registerProtocolHandler')
}
//
}
unregisterProtocolHandler
()
{
unregisterProtocolHandler
()
{
console
.
log
(
'navigator.unregisterProtocolHandler'
)
console
.
log
(
'navigator.unregisterProtocolHandler'
)
...
@@ -757,7 +769,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -757,7 +769,7 @@ exports.install = (globalObject, globalNames) => {
r
[
e
][
'enumerable'
]
=
true
r
[
e
][
'enumerable'
]
=
true
})
})
Object
.
defineProperties
(
Navigator
.
prototype
,
r
)
Object
.
defineProperties
(
Navigator
.
prototype
,
r
)
delete
Navigator
.
prototype
.
constructor
Object
.
defineProperties
(
Navigator
.
prototype
,
{
Object
.
defineProperties
(
Navigator
.
prototype
,
{
javaEnabled
:
{
enumerable
:
true
},
javaEnabled
:
{
enumerable
:
true
},
appCodeName
:
{
enumerable
:
true
},
appCodeName
:
{
enumerable
:
true
},
...
...
src/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
View file @
22d82751
This diff is collapsed.
Click to expand it.
src/jsdom/lib/jsdom/living/window/History-impl.js
View file @
22d82751
...
@@ -24,7 +24,7 @@ exports.implementation = class HistoryImpl {
...
@@ -24,7 +24,7 @@ exports.implementation = class HistoryImpl {
get
length
()
{
get
length
()
{
this
.
_guardAgainstInactiveDocuments
();
this
.
_guardAgainstInactiveDocuments
();
return
2
return
this
.
_window
.
_sessionHistory
.
length
;
return
this
.
_window
.
_sessionHistory
.
length
;
}
}
...
...
src/reese84_bypass.py
View file @
22d82751
This diff is collapsed.
Click to expand it.
src/run.js
View file @
22d82751
This diff is collapsed.
Click to expand it.
test.py
View file @
22d82751
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment