Check document.domain

Can document.domain be overridden?

By
Anonymous 1 Seen 480 times
Tags
sop domain
Run this test now.

Results


Tested on
Chrome - 67 - Windows
Yes / No
null

Tested on
Chrome Mobile - 41 - Android
Yes / No
Yes

Tested on
Firefox - 49 - Windows 10
Yes / No
null

Tested on
Unknown Browser - Unknown Version - Unknown OS
Yes / No
No

Tested on
Googlebot - 2.1 - undefined
Yes / No
Yes

Tested on
Iceweasel - 38.7.1 - Linux
Yes / No
null

Tested on
Safari - 7 - Mac OS X
Yes / No
No

Tested on
Opera - 38 - Windows
Yes / No
null

Tested on
Mobile Safari - 7 - iOS
Yes / No
No

User Script (ENUM_FUNCTION)

					
function test(data){
	// We need to separate properties and access one by one.
try{
    
    var prop = Object.getOwnPropertyDescriptor(document, 'domain');
    
	if(	prop.configurable === true ){
       addError('Yes');
	} else {
       addSuccess('No');
	}
}

catch(err){
	addInfo(prop);
}
}



					
				

Enum Data (ENUM_FUNCTION)

					
var data = [1];