Google Chrome file system api: bug in sample code? - api

I am trying to run this example code:
https://github.com/GoogleChrome/chrome-app-samples/tree/master/filesystem-access
as well as this:
https://github.com/GoogleChrome/chrome-app-samples/tree/master/storage
I am not able to get either of them to run in my browser: Chrome 26.0.1410.65 Mac Lion 10.7.5
(to see it run, download it and click on html page included with each of the examples)
If you can confirm this is a bug in the sample code (it doesn't run in your system as well) please let me know where I should file this bug report. (https://code.google.com/p/chromium/ or https://github.com/GoogleChrome/chrome-app-samples/issues?)
many thanks in advance.

You need to use the Load unpacked extension button found on the chrome://extensions page and then launch the app in order for it to use chrome.* API's.

Related

Pptxgenjs appears to not work in IE11 even with jszip#3.1.5

Having read the previous versions of this question from 2020 this issue appears to have reared it's head again. I have tried these demos with my current jszip#3.7.0 and with jszip 3.1.5 using it as my application jszip and overwriting the jszip within pptxgenjs.
When using pptxgenjs in IE11 (Windows 10) it appears to work in that no errors are reported, what does happen is the browser alerts the user that: "You'll need a new app to open this blob link". The only option that is available at this point is then to go to "Look for an app in the Microsoft Store" of which no apps are available.
What this says to me is that pptxgenjs has done its job and has passed the blob link to the browser and the browser has said I have no clue you'll need to find something to open this.
I've attempted to run the demos in the same Windows 10/IE11 setup and they seem to do worse. the live demo doesn't error or offer the ability to download an app to support opening the blob link. The react demo errors to the console: SCRIPT438: Object doesn't support property or method 'endsWith'. The Basic Demo in the complete library of demos fails like the live demo not returning an error or acknowledging anything.
Is this a known issue? Is there another step to help IE11 with the blob link? Can anyone else get the demos to work and I should be looking at something else? Any thoughts would be appreciated.
Edit:
Apologies if this wasn't clear, but the demos I was referring to were the pptxgenjs demos found here: https://gitbrent.github.io/PptxGenJS/demos/ so focusing on the initial demo named 'Live Demo' the code that is being run is here: https://gist.github.com/gitbrent/84acbcaab54be0eba83f5206ef6ddd95#file-pptxgenjs_demo-js
Running this with all other key browsers such as edge, firefox and chrome all 'download' the generated file whereas running the same demo in IE11 fails silently.

Can we customize Chrome browser launch with different options using Chrome Java API? [duplicate]

I am using the Karate framework to do the API testing. As part of CI efforts, we send an email at the end of test execution listing the summary of test results. There is a need to include the screeshot of the test execution counts from 'overview-feature.html' file.
I did so through the TestRunner.java file - launched Chrome using Chrome.start() and then using it to take screenshot. It all works well locally on Windows.
However when executing on CI server which is a Unix box, the chrome executable is not present in the default location (usr/bin/google-chrome) and hence the connection for the localhost fails.
Is there a way we can change the default location of the chrome executable?
PS: Apologies if this was too trivial to be asked.
Yes Chrome on CI is hard to get right, refer: https://stackoverflow.com/a/62325328/143475 - note that CI boxes typically are "headless" a browser may not be even installed.
I think the best thing for you is to ZIP the HTML and send it. But I really think you need to work with some CI experts, because the report generation and e-mailing business is normally done by things like Jenkins. What you are doing is certainly not normal or best-practice.
If you really want, there is a Karate Docker container that can give you a proper Chrome instance (see docs) but that is overkill for what you need.
EDIT: The Chrome Java API allows for customization of the executable path and this is in the docs: https://github.com/intuit/karate/tree/master/karate-core#chrome-java-api
It should be something like this:
Chrome.start("/opt/blah/chrome");

Cannot select latest uploaded version to add to testflight

I cannot select the latest version I have uploaded to seed to beta in external testing. First of all whenever I upload a build two version appearing, that have upload time difference of 5 to 15 minutes between them. One of them gets changed from processing to normal available state, but other does not. But now selecting the available build also selects the processing one and my selection is blocked and I cannot select the OK button because probably my selection is blocked by the processing one. I think it is UI frontend issue at itunesconnect side but it could be something I am doing wrong. Please help me if anyone has been able to tackle this issue if they faced. Please see checkout the attached image.
Update:
I Included <key>ITSAppUsesNonExemptEncryption</key><false/> in my subsequent builds that I uploaded according to the new Export compliance message on the iTunes Connect home page. I am still facing the issue. I have contacted Apple Dev support, will keep you updated if I find a solution.
The issue has been mysteriously solved by uploading the application from Application Loader with Aspera turned off instead of using Xcode's organizer window as suggested by Apple Developer support. Make sure you add: <key>ITSAppUsesNonExemptEncryption</key><false/> in your info.plist file before archiving the build. Although mysteriously my previously uploaded builds have also become available for external testing.
Body of email that helped solve the issue:
After further research, it looks like their may be an issue from your
end with your network while trying to upload to this app record in
iTunes Connect.
First, for the best upload experience make sure that all ports and IP
addresses are accessible. Additionally, it’s important to make sure
the internet connection is very good, and that there are no firewalls
blocking the uploads. More information can be found here:
http://help.apple.com/itc/apploader/#/itc8e7ec5a60
Second, it may be beneficial to try using the latest version of
Application Loader. Please note that you can export your project from
Xcode to upload through Application Loader. As a temporary workaround,
once you have Application Loader open, you can go to the File menus
and select the following:
Application Loader > Preferences
Then, select Advanced, and as a temporary workaround you can try
deselecting Aspera and upload the build again. You can follow the
steps below to use the latest version of Application Loader.
Download the latest version of Xcode from the Mac App Store:
-http://help.apple.com/itc/apploader/#/itc8e7ec5a60
Open the latest version of Xcode
Go to the File menu and select Xcode > Open Developer Tool > Application Loader
Lastly, try uploading again to see if the issue persists.
Hello my dear friend there,
I am also having your issue yesterday, I have this similar screen with yours:
The build is duplicated which one of them are processing forever until today.
My personal problem solving was:
Increase my build number in Xcode so that I can reupload my build
Rearchive the build then export for iOS App Store Deployment in Xcode Organizer
Reupload the build using Application Loader
Then try to reconfigure the build in iTunes Connect. For a while it is processing like usual, but it will not take forever, after one hour, the build will be available for testing.
Hope my personal troubleshooting can be applied to your issue too.

How to build chromium as official?

I was trying to build the chromium browser as official but I am not confirmed which files i have to change. On chrome discussion someone told me to just set GYP_DEFINES=buildtype=Official u can see the discussion : https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-discuss/rendering$20in$20chrome$20slow/chromium-discuss/d4INNgunYtU/9OnP-VMKC10J
I tried a lot editing many files but I haven't get any positive result. PLs help
As far as I know it's not possible to build Chrome as official build. Chrome uses Chromium, but it's a little bit different. For example Chrome has PDF Viewer when Chromium project doesn't contain it. The list of changes between Chromium and Chrome you can find at https://code.google.com/p/chromium/wiki/ChromiumBrowserVsGoogleChrome

What is a xul runner?

The reason I ask is because every e-mail that I get with a link attached I keep getting " Platform Version 1.9.0.4 not compatible with min version>=1.9.0.5 max version<=1.9.0.5.
I don't have a clue how to get rid of xul runner or what I need to do in order for my computer to accept xul or whatever I need to do. Can someone please provide me with step by step (and I mean very explicit step by step) directions on how to do whatever it is I need to do to get this fixed?
XUL is a tool created by Mozilla Corporation (the folks that made Firefox and Thunderbird) to make writing their applications more like writing applications for the web.
With that said, if you're using Firefox to view webmail when you're having this issue or using Thunderbird and having this issue, I would uninstall any plugins you have installed and check it then. If that still doesn't resolve the problem, try uninstalling and reinstalling the application you're using to view the message in.
While this is the wrong place for this question, you could try asking in mozilla support:
http://support.mozilla.com/en-US/kb/Ask+a+question