Socket
Socket
Sign inDemoInstall

xfc

Package Overview
Dependencies
6
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.8.0 to 1.8.1

5

CHANGELOG.md
Next Release
-------------
1.8.1
------
* Conditionally remove hasAttribute so it doesn't break on non-elements in IE10. #44
1.8.0

@@ -4,0 +9,0 @@ ------

2

lib/provider/application.js

@@ -379,3 +379,3 @@ 'use strict';

if (!element || !(element.hasAttribute('download') || protocols.test(element.href))) {
if (!element || !(element.hasAttribute && element.hasAttribute('download') || protocols.test(element.href))) {
this.JSONRPC.notification('unload');

@@ -382,0 +382,0 @@ this.trigger('xfc.unload');

@@ -38,3 +38,3 @@ 'use strict';

// Set hidden attribute with script if not present and security is being enforced
if (enforceSecurity && window.self !== window.top && !document.documentElement.hasAttribute('hidden')) {
if (enforceSecurity && window.self !== window.top && !(document.documentElement.hasAttribute && document.documentElement.hasAttribute('hidden'))) {
document.documentElement.setAttribute('hidden', null);

@@ -41,0 +41,0 @@

{
"name": "xfc",
"version": "1.8.0",
"version": "1.8.1",
"description": "A Cross Frame Container that handles securely embedding web content into a 3rd party domain",

@@ -20,2 +20,3 @@ "author": "Cerner Corporation",

"lint-js": "eslint 'src/**/*.js' --fix",
"prepare": "npm run build-es5 && npm run build-webpack",
"test": "mocha --compilers js:babel-core/register --recursive"

@@ -22,0 +23,0 @@ },

@@ -9,3 +9,2 @@ import JSONRPC from 'jsonrpc-dispatch';

/** Application class which represents an embedded application. */

@@ -277,3 +276,3 @@ class Application extends EventEmitter {

if (!element || !(element.hasAttribute('download') || protocols.test(element.href))) {
if (!element || !(element.hasAttribute && element.hasAttribute('download') || protocols.test(element.href))) {
this.JSONRPC.notification('unload');

@@ -280,0 +279,0 @@ this.trigger('xfc.unload');

@@ -9,3 +9,3 @@ import Application from './application';

// Set hidden attribute with script if not present and security is being enforced
if (enforceSecurity && window.self !== window.top && !document.documentElement.hasAttribute('hidden')) {
if (enforceSecurity && window.self !== window.top && !(document.documentElement.hasAttribute && document.documentElement.hasAttribute('hidden'))) {
document.documentElement.setAttribute('hidden', null);

@@ -12,0 +12,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc