New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 643185 link

Starred by 1 user

Issue metadata

Status: ExternalDependency
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 2
Type: Feature



Sign in to add a comment

Unlike Safari, Support for iOS app action extension to modify the webpage contents is not available in Chrome

Reported by saransiv...@gmail.com, Sep 1 2016

Issue description

Steps to reproduce the problem:
I am an iOS developer. In our app action extension we are trying to modify the webpage contents in browser (chrome). This can be accomplished in Safari via javascript file provided in NSExtensionJavaScriptPreprocessingFile (plist). I can understand that chrome will not have access to that javascript file. Any other mechanism, to replace the same is expected. In chrome, webpage URL and title are only provided as inputs to extension. 
 Steps :
1.  Have any app extension that modifies the web page content via  NSExtensionJavaScriptPreprocessingFile, following the mechanism proposed by Apple for Safari
2. In chrome app's Activity view controller , trigger the above mentioned app action extension.
3. Webpage is not modified. (Javascript file is ignored)

What is the expected behavior?
Chrome should also have an option via action extension to modify the webpage contents. Safari like mechanism using NSExtensionJavaScriptPreprocessingFile javascript file cannot be accomplished in chrome. 
This can accomplished by the following mechanism ( which I could think of)
 Chrome can provide the webpage contents via action extension inputs to activities. The extension can generate the javascript to modify the webpage content and provide it to chrome(host application) to inject the same on the webpage.
Any other solution to solve the same would be fine.

What went wrong?
Safari's feature is missed out here. Chrome users not restricted from app extensions which modifies the webpage.

Did this work before? No 

Chrome version: 52.0.2743.84  Channel: stable
OS Version: iOS 9
Flash Version: Shockwave Flash 22.0 r0
 
Cc: jasonkliu@chromium.org pinkerton@chromium.org pkl@chromium.org eugene...@chromium.org
Components: Mobile>WebView>Glue
Owner: mard...@chromium.org
Status: Assigned (was: Unconfirmed)
+Mardini for feature request.
If we don't have access to the JS file, what else can we do?

Pkl: how is this similar to the password fill work we're doing for 3rd party extensions? Can we re-use anything at all there?

Comment 3 by pkl@chromium.org, Sep 16 2016

I found my feasibility research document from late 2014 and determined that it is technically not feasible for a non-Safari app to use a Safari Custom Action extension as is.

Can you share what specific function your Safari Custom Action extension does? The protocol for Safari Custom Action extension is very flexible but relies on the ability to fetch the javascript extension code from the AppEx bundle. Chrome cannot do that. I can't make any promises, but if you can share what specific function your extension does, may be there is an alternative way.

Comment 4 by pkl@chromium.org, Sep 16 2016

Labels: Needs-Feedback
Status: ExternalDependency (was: Assigned)

Comment 6 by pkl@chromium.org, Feb 7 2017

I have also filed radar 30397321
I pinged the radar (no activity since Feb 2017)
Components: -Mobile>WebView>Glue Platform>Extensions

Sign in to add a comment