You cannot access chrome://extensions from a content script.  You will
need to sniff either the profile extensions directory or the
preferences file for your extension, as mentioned above

On Mon, Jan 4, 2010 at 1:41 PM, Aris <alexey.s.shish...@gmail.com> wrote:
> I have a problem accessing chrome://extensions/ page from content
> script. It seems that content script is not loaded for that page. Does
> anybody know can we run extension's content script on the chrome://extensions/
> page?
>
> In accordance with "Match patterns" (http://code.google.com/chrome/
> extensions/match_patterns.html) page URL can begin with http, https,
> file, or ftp. So it seems that we really can not run content script on
> the chrome://extensions/. If so then is it possible to access
> chrome://extensions/ from background page?
>
> Thank you.
>
> On Jan 4, 5:37 pm, PhistucK <phist...@gmail.com> wrote:
>> Without the minus\dash sing, that is supposed to mean that it will be fixed
>> for Chrome 4. But in this case, in means it is not a requirement for any
>> release. It is simply on the board for someone to take on.
>>
>> And you are right, I was not thinking when I suggested it.
>>
>> ☆PhistucK
>>
>> On Mon, Jan 4, 2010 at 13:23, Aris <alexey.s.shish...@gmail.com> wrote:
>> > Mohamed, Finnur, PhistucK, thank you for your answers!
>>
>> > Yes, it is for Uninstaller\Repair Installation\Reinstallation program
>> > to check or not check a checkbox.
>>
>> > PhistucK, I didn't understand what you suggest... My Chrome extension
>> > is NPAPI extension. It seems that uninstalling extension (clicking
>> > 'Uninstall' button) doesn't kill dll immediately and it can do some
>> > kind of shutdown instructions indeed (although I'm not 100% sure). But
>> > how do I know that user has clicked 'Uninstall' ? Do you mean that I
>> > have to write some javascript listener for user's click on 'Uninstall'
>> > button and that will trigger some uninstallation code in my dll ? Or
>> > do you mean something different?
>>
>> > By the way, I have found “install and un-install hooks” discussion and
>> > issuehttp://code.google.com/p/chromium/issues/detail?id=19383.
>> > I'm new to this issue tracking system... what does “-Mstone-4 -Channel-
>> > Beta” mean?  Looks like it will be fixed in Chrome 4?
>>
>> > On 4 янв, 11:58, PhistucK <phist...@gmail.com> wrote:
>> > > As far as I understand, Alexey has an installer for a multi browser
>> > > extension\add on.
>> > > He wants the Uninstaller\Repair Installation\Reinstallation program to
>> > check
>> > > or not check a check box when a certain edition of the extension (for
>> > > example, the Chrome edition) is not installed (whether it was never
>> > > installed in the first place, or manually uninstalled).
>>
>> > > So, no, there is no way to do that, but there was a discussion about
>> > > something like that.
>> > > If you add an NPAPI plugin that will work in the background (there will
>> > be
>> > > call to it in the background page, for example, assuming that works),
>> > will
>> > > uninstalling the extension kill it immediately, or let it execute some
>> > kind
>> > > of shutdown instructions?
>> > > If so, perhaps that is the way to go. It would require some C++
>> > > knowledge\programming and messing around and an approval from the team
>> > when
>> > > you upload to the gallery, but if that check box means a lot to you - I
>> > am
>> > > sure you can handle it. ;)
>>
>> > > ☆PhistucK
>>
>> > > On Mon, Jan 4, 2010 at 01:43, Finnur Thorarinsson <fin...@chromium.org
>> > >wrote:
>>
>> > > > I think Alexey is asking for an event that gets triggered when the user
>> > > > manually installs an extension that was installed by Alexey's
>> > installer. The
>> > > > event would trigger the Alexey's uninstaller to do some housekeeping.
>>
>> > > > However, we don't have such an event to my knowledge.
>>
>> > > > From the outside, I can only think of two indicators of an extension
>> > being
>> > > > uninstalled. I'm not at my desk, so this is from memory:
>>
>> > > > 1) The user's preferences file in the Chrome profile will either remove
>> > the
>> > > > entry for the extension or mark it as uninstalled
>> > > > 2) The extension directory (see Mohamed's email) will get removed
>> > (don't
>> > > > remember if this happens immediately)
>>
>> > > > Both of these are easy to test.
>>
>> > > > The question in my mind is why you'd need to do this? Extensions don't
>> > need
>> > > > to write to the Windows Installer database as a part of their
>> > installation
>> > > > and as such don't need to cleanup after themselves.
>>
>> > > > Is this so that a manual uninstall removes the extension Add/Remove
>> > > > Programs entry (that you added during install) -- or is there another
>> > > > purpose?
>>
>> > > > On Sun, Jan 3, 2010 at 14:40, Mohamed Mansour <m...@chromium.org>
>> > wrote:
>>
>> > > >> Perhaps you can inform the user that they must close chrome browser
>> > before
>> > > >> uninstalling. And your uninstall script will actually goto the users
>> > "User
>> > > >> Data" directory and delete the extension folder which is just your
>> > extension
>> > > >> id.
>>
>> > > >> C:\Users\[user]\AppData\Local\Google\Chrome\User
>> > > >> Data\Default\Extensions\[extension-id]
>>
>> > > >> -Mohamed Mansour
>>
>> > > >> On Mon, Dec 28, 2009 at 7:52 AM, Aris <alexey.s.shish...@gmail.com
>> > >wrote:
>>
>> > > >>> Hello, All!
>> > > >>> We now distribute bunch of extensions for popular browsers, including
>> > > >>> Chrome, as part of Windows Installer package. A question that worries
>> > > >>> me is about our Chrome  extension manual uninstalling - how can
>> > > >>> Windows installer be notified of uninstalling Chrome exetnsion
>> > > >>> manually from  [Wrench menu] > Extensions?
>>
>> > > >>> Details:
>> > > >>> What we need is a call to msiexec.exe with some parameters (stored in
>> > > >>> Windows registry upon installing; something like  “msiexec /i
>> > > >>> [ProductCode] REMOVE=ChromePlugin /qb”) when user clicks button
>> > > >>> “Uninstall” on the chrome://extensions/ page – this removes Chrome
>> > > >>> extension entries from Windows Installer database.
>>
>> > > >>> Google Chrome version: 4.0.266.0
>> > > >>> Operating System: Windows XP Professional
>>
>> > > >>> Thanks in advance!
>>
>> > > >>> --
>>
>> > > >>> You received this message because you are subscribed to the Google
>> > Groups
>> > > >>> "Chromium-extensions" group.
>> > > >>> To post to this group, send email to
>> > > >>> chromium-extensi...@googlegroups.com.
>> > > >>> To unsubscribe from this group, send email to
>> > > >>> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com><chromium-extensions%2Bunsu
>> > bscr...@googlegroups.com>
>> > > >>> .
>> > > >>> For more options, visit this group at
>> > > >>>http://groups.google.com/group/chromium-extensions?hl=en.
>>
>> > > >>  --
>> > > >> You received this message because you are subscribed to the Google
>> > Groups
>> > > >> "Chromium-extensions" group.
>> > > >> To post to this group, send email to
>> > chromium-extensions@googlegroups.com
>> > > >> .
>> > > >> To unsubscribe from this group, send email to
>> > > >> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com><chromium-extensions%2Bunsu
>> > bscr...@googlegroups.com>
>> > > >> .
>> > > >> For more options, visit this group at
>> > > >>http://groups.google.com/group/chromium-extensions?hl=en.
>>
>> > > >  --
>> > > > You received this message because you are subscribed to the Google
>> > Groups
>> > > > "Chromium-extensions" group.
>> > > > To post to this group, send email to
>> > chromium-extensi...@googlegroups.com.
>> > > > To unsubscribe from this group, send email to
>> > > > chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com><chromium-extensions%2Bunsu
>> > bscr...@googlegroups.com>
>> > > > .
>> > > > For more options, visit this group at
>> > > >http://groups.google.com/group/chromium-extensions?hl=en.
>>
>> > --
>>
>> > You received this message because you are subscribed to the Google Groups
>> > "Chromium-extensions" group.
>> > To post to this group, send email to chromium-extensi...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com>
>> > .
>> > For more options, visit this group at
>> >http://groups.google.com/group/chromium-extensions?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Chromium-extensions" group.
> To post to this group, send email to chromium-extensi...@googlegroups.com.
> To unsubscribe from this group, send email to 
> chromium-extensions+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/chromium-extensions?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to