@@ -198,28 +198,28 @@ private void initPluginsAndMimeTypes() {
198198 return ;
199199 }
200200 plugins_ = new PluginArray ();
201- plugins_ .setParentScope (this );
201+ plugins_ .setParentScope (getParentScope () );
202202 plugins_ .setPrototype (getPrototype (PluginArray .class ));
203203
204204 Plugin plugin = new Plugin ("PDF Viewer" , "Portable Document Format" , "internal-pdf-viewer" );
205- plugin .setParentScope (this );
205+ plugin .setParentScope (getParentScope () );
206206 plugin .setPrototype (getPrototype (Plugin .class ));
207207
208208 // https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mimeTypes
209209 // Recent versions of the specification hard-code the returned set of MIME types.
210210 // If PDF files can be displayed inline then application/pdf and text/pdf are listed,
211211 // otherwise an empty list is returned.
212212 mimeTypes_ = new MimeTypeArray ();
213- mimeTypes_ .setParentScope (this );
213+ mimeTypes_ .setParentScope (getParentScope () );
214214 mimeTypes_ .setPrototype (getPrototype (MimeTypeArray .class ));
215215
216216 final MimeType mimeTypeAppPdf = new MimeType ("application/pdf" , "Portable Document Format" , "pdf" , plugin );
217- mimeTypeAppPdf .setParentScope (this );
217+ mimeTypeAppPdf .setParentScope (getParentScope () );
218218 mimeTypeAppPdf .setPrototype (getPrototype (MimeType .class ));
219219 mimeTypes_ .add (mimeTypeAppPdf );
220220
221221 final MimeType mimeTypeTxtPdf = new MimeType ("text/pdf" , "Portable Document Format" , "pdf" , plugin );
222- mimeTypeTxtPdf .setParentScope (this );
222+ mimeTypeTxtPdf .setParentScope (getParentScope () );
223223 mimeTypeTxtPdf .setPrototype (getPrototype (MimeType .class ));
224224 mimeTypes_ .add (mimeTypeTxtPdf );
225225
@@ -229,28 +229,28 @@ private void initPluginsAndMimeTypes() {
229229
230230 // all the others
231231 plugin = new Plugin ("Chrome PDF Viewer" , "Portable Document Format" , "internal-pdf-viewer" );
232- plugin .setParentScope (this );
232+ plugin .setParentScope (getParentScope () );
233233 plugin .setPrototype (getPrototype (Plugin .class ));
234234 plugin .add (mimeTypeAppPdf );
235235 plugin .add (mimeTypeTxtPdf );
236236 plugins_ .add (plugin );
237237
238238 plugin = new Plugin ("Chromium PDF Viewer" , "Portable Document Format" , "internal-pdf-viewer" );
239- plugin .setParentScope (this );
239+ plugin .setParentScope (getParentScope () );
240240 plugin .setPrototype (getPrototype (Plugin .class ));
241241 plugin .add (mimeTypeAppPdf );
242242 plugin .add (mimeTypeTxtPdf );
243243 plugins_ .add (plugin );
244244
245245 plugin = new Plugin ("Microsoft Edge PDF Viewer" , "Portable Document Format" , "internal-pdf-viewer" );
246- plugin .setParentScope (this );
246+ plugin .setParentScope (getParentScope () );
247247 plugin .setPrototype (getPrototype (Plugin .class ));
248248 plugin .add (mimeTypeAppPdf );
249249 plugin .add (mimeTypeTxtPdf );
250250 plugins_ .add (plugin );
251251
252252 plugin = new Plugin ("WebKit built-in PDF" , "Portable Document Format" , "internal-pdf-viewer" );
253- plugin .setParentScope (this );
253+ plugin .setParentScope (getParentScope () );
254254 plugin .setPrototype (getPrototype (Plugin .class ));
255255 plugin .add (mimeTypeAppPdf );
256256 plugin .add (mimeTypeTxtPdf );
0 commit comments