Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 3 of 3

This is a discussion on Context menus for file:/// urls within the Plugins Development section, part of the Chrome Plugins category: I updated to Chrome 6.0.472.14, which has moved the context menu API out of the experimental. I ported my experimental ...


  1. #1
    twinsen is offline Member
    Join Date
    Aug 2009
    Posts
    31

    Default Context menus for file:/// urls

    I updated to Chrome 6.0.472.14, which has moved the context menu API out of the experimental. I ported my experimental context menus to the new API, but now my context menus wont appear on any "file:///" urls.
    Any idea how to give permission for the context menus to work for file:/// urls?
    This does not seem to work as a parameter to chrome.contextMenus.create:
    Code:
    documentUrlPatterns: ["file:///*"]

  2. #2
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    The scheme is technically file:// though I'm not sure if stating that instead will make a difference. (The third slash is to represent the root directory.)
    It's worth a try.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  3. #3
    twinsen is offline Member
    Join Date
    Aug 2009
    Posts
    31

    Default

    Looks like it is no longer possible:
    "Sorry, I should have given a heads up about this change. We decided to restrict context menu items to appearing on http/https pages only for now, but are considering widening that in Chrome 7 to allow file:// and chrome-extension:// (at least for an extension's own pages)." -Antony Sargent

Similar Threads

  1. Extensions Context Menus API available in Dev 6.0.472.0
    By sarjoor in forum Chrome Plugins
    Replies: 1
    Last Post: 07-22-2010, 04:04 PM
  2. about: chrome: and more internal urls
    By Waha in forum Chrome Tips & Tricks
    Replies: 14
    Last Post: 03-29-2010, 12:01 PM
  3. Replies: 0
    Last Post: 12-13-2009, 09:59 PM
  4. Drop-down menus not working using keyboard
    By Rashkaar in forum Bugs and Vulnerabilities
    Replies: 2
    Last Post: 09-17-2009, 11:57 AM
  5. Must have 15 posts to post URLs?
    By vietnam in forum General Chat
    Replies: 5
    Last Post: 03-05-2009, 02:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •