Skip to content
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

Bug 1401783 - Use simple matching for extensions. #3203

Merged
merged 1 commit into from Sep 21, 2017

Conversation

rnewman
Copy link
Contributor

@rnewman rnewman commented Sep 20, 2017

No description provided.

@rnewman rnewman self-assigned this Sep 20, 2017
<string>SUBQUERY ( extensionItems, $extensionItem, SUBQUERY ( $extensionItem.attachments, $attachment, ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO &quot;public.url&quot;).@count &gt; 0 ).@count == 1</string>
<dict>
<key>NSExtensionActivationDictionaryVersion</key>
<integer>2</integer>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This basically means "match this against any attachment". The v1 behavior was "pass if this matches every attachment".

@st3fan
Copy link
Contributor

st3fan commented Sep 21, 2017

It would be really nice if this worked well. Before we land this we just need to make sure our extensions work correctly from Firefox, Safari, Chrome, Twitter & a few other that share URL data. Specially make sure the behaviour is the same - that we get both title and url.

@garvankeeley
Copy link
Contributor

garvankeeley commented Sep 21, 2017

FYI, the 'compiled' query in the failing case looks like this:

`SUBQUERY ( extensionItems, , SUBQUERY ( , , ANY  UTI-CONFORMS-TO "public.url").@count == 1 ).@count == 1`

Those empty parameters look like the problem.

I found an older Client.app in the build folder, and it looks like this is what a working compiled PlugIns/<extension>/Info.plist would have:

SUBQUERY ( extensionItems, $extensionItem, SUBQUERY ( $extensionItem.attachments, $attachment, ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url").@count > 0 ).@count == 1

The former instance is Xcode 9 release, the latter I believe was compiled on Xcode 9 GM, which leads me to believe there was a change between GM and release.

@garvankeeley
Copy link
Contributor

garvankeeley commented Sep 21, 2017

@st3fan can we land on master and ask QA to run through this extensively?

edit: just now saw your comment to land and then QA it, sgtm.

@garvankeeley garvankeeley merged commit d6e8f86 into master Sep 21, 2017
@farhanpatel farhanpatel deleted the rnewman/fix-extensions branch October 5, 2017 22:21
jhreis pushed a commit to jhreis/firefox-ios that referenced this pull request Oct 23, 2017
jjSDET pushed a commit to jjSDET/firefox-ios that referenced this pull request Feb 13, 2024
isabelrios pushed a commit to isabelrios/firefox-ios that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants