-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ios): allow changing WebView read access when loading local file #11431
Conversation
/* eslint no-unused-expressions: "off" */ | ||
'use strict'; | ||
var should = require('./utilities/assertions'), | ||
utilities = require('./utilities/utilities'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ tests/Resources/ti.ui.webview.addontest.js line 11 – 'utilities' is assigned a value but never used. (no-unused-vars)
Tests:
|
@vijaysingh-axway I was wondering, how does the Unit test verify the new property? I don't see any test HTML files or anything that actually try to load something from a parent directory for example that require |
@janvennemann Updated unit test. |
var resourceDir = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory); | ||
|
||
var htmlFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'html', 'example.html'); | ||
var cssFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'folder with spaces', 'comingSoon.html'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a CSS file, update the variable name to avoid confusion.
var cssFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'folder with spaces', 'comingSoon.html'); | ||
|
||
var htmlInCache = Ti.Filesystem.getFile(cacheDir.nativePath, 'html', 'example.html'); | ||
var cssInCache = Ti.Filesystem.getFile(cacheDir.nativePath, 'folder with spaces', 'comingSoon.html'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also not a CSS file, update the variable name to avoid confusion.
/* eslint-env mocha */ | ||
/* eslint no-unused-expressions: "off" */ | ||
'use strict'; | ||
var should = require('./utilities/assertions'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ tests/Resources/ti.ui.webview.addontest.js line 10 – 'should' is assigned a value but never used. (no-unused-vars)
FR Passed. Studio Ver: 6.0.0.201911251516 |
https://jira.appcelerator.org/browse/TIMOB-27159