Closed Bug 680528 Opened 13 years ago Closed 13 years ago

Make use of the cached value for user agent in PluginModuleChild

Categories

(Core Graveyard :: Plug-ins, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla9

People

(Reporter: jimm, Assigned: jimm)

Details

Attachments

(1 file, 1 obsolete file)

Flash makes this call fairly often during startup. Since we currently cache this in a member variable we might as well make use of it. Granted the value could change while the browser is running, but I don't think we should worry about that with plugins instances.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → jmathies
Attachment #554509 - Flags: review?(bent.mozilla)
Comment on attachment 554509 [details] [diff] [review]
patch

I'd prefer to set mUserAgent as a void string in the constructor, then only call if the string remains void (I think you can override the useragent string with anything, even the empty string).
Attachment #554509 - Flags: review?(bent.mozilla) → review-
Attached patch patchSplinter Review
nice catch.
Attachment #554509 - Attachment is obsolete: true
Attachment #554517 - Flags: review?(bent.mozilla)
Comment on attachment 554517 [details] [diff] [review]
patch

Thanks, looks good!
Attachment #554517 - Flags: review?(bent.mozilla) → review+
http://hg.mozilla.org/mozilla-central/rev/008e94e45b29
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: